The python export class for Geometry2d. More...

#include <Geometry2dPy.h>

Public Types

typedef Geometry2dPointerType
 
- Public Types inherited from Base::PyObjectBase
typedef void * PointerType
 
enum  Status { Valid = 0 , Immutable = 1 , Notify = 2 , NoTrack = 3 }
 

Public Member Functions

 Geometry2dPy (Geometry2d *pcObject, PyTypeObject *T=&Type)
 
virtual PyTypeObject * GetType (void)
 
virtual int PyInit (PyObject *args, PyObject *k)
 PyInit method Override this method to initialize a newly created instance of the class (Constructor) More...
 
std::string representation (void) const
 
callbacks and implementers for the python object attributes
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
Geometry2dgetGeometry2dPtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from Base::PyObjectBase
PyObjectBaseDecRef (void)
 decref method wrapper (see python extending manual) More...
 
PyObjectBaseIncRef (void)
 incref method wrapper (see python extending manual) More...
 
bool isConst ()
 
bool isNotTracking () const
 
bool isValid ()
 
 PyObjectBase (void *, PyTypeObject *T)
 Constructor Sets the Type of the object (for inheritance) and decrease the the reference count of the PyObject. More...
 
void setConst ()
 
void setInvalid ()
 
void setNotTracking (bool on=true)
 
void setShouldNotify (bool on)
 
bool shouldNotify () const
 
void startNotify ()
 

Static Public Member Functions

static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
- Static Public Member Functions inherited from Base::PyObjectBase
static void PyDestructor (PyObject *P)
 Wrapper for the Python destructor. More...
 

Static Public Attributes

static PyGetSetDef GetterSetter []
 Attribute structure of Geometry2dPy. More...
 
static PyMethodDef Methods []
 Methods structure of Geometry2dPy. More...
 
static PyTypeObject Type
 Type structure of Geometry2dPy. More...
 
- Static Public Attributes inherited from Base::PyObjectBase
static PyMethodDef Methods []
 
static PyTypeObject Type
 Py_Header struct from python.h. More...
 

Protected Member Functions

 ~Geometry2dPy ()
 
- Protected Member Functions inherited from Base::PyObjectBase
void setTwinPointer (void *ptr)
 Overrides the pointer to the twin object. More...
 
virtual ~PyObjectBase ()
 destructor More...
 

callbacks and implementers for the python object methods

PyObjectmirror (PyObject *args)
 implementer for the mirror() method More...
 
PyObjectrotate (PyObject *args)
 implementer for the rotate() method More...
 
PyObjectscale (PyObject *args)
 implementer for the scale() method More...
 
PyObjecttransform (PyObject *args)
 implementer for the transform() method More...
 
PyObjecttranslate (PyObject *args)
 implementer for the translate() method More...
 
PyObjectcopy (PyObject *args)
 implementer for the copy() method More...
 
static PyObjectstaticCallback_mirror (PyObject *self, PyObject *args)
 callback for the mirror() method More...
 
static PyObjectstaticCallback_rotate (PyObject *self, PyObject *args)
 callback for the rotate() method More...
 
static PyObjectstaticCallback_scale (PyObject *self, PyObject *args)
 callback for the scale() method More...
 
static PyObjectstaticCallback_transform (PyObject *self, PyObject *args)
 callback for the transform() method More...
 
static PyObjectstaticCallback_translate (PyObject *self, PyObject *args)
 callback for the translate() method More...
 
static PyObjectstaticCallback_copy (PyObject *self, PyObject *args)
 callback for the copy() method More...
 

Additional Inherited Members

- Protected Attributes inherited from Base::PyObjectBase
std::bitset< 32 > StatusBits
 

Detailed Description

The python export class for Geometry2d.

Member Typedef Documentation

◆ PointerType

Constructor & Destructor Documentation

◆ ~Geometry2dPy()

Geometry2dPy::~Geometry2dPy ( )
protected

◆ Geometry2dPy()

Geometry2dPy::Geometry2dPy ( Geometry2d pcObject,
PyTypeObject *  T = &Type 
)

Member Function Documentation

◆ copy()

PyObject * Geometry2dPy::copy ( PyObject args)

◆ getCustomAttributes()

PyObject * Geometry2dPy::getCustomAttributes ( const char *  attr) const

getter method for special attributes (e.g. dynamic ones)

◆ getGeometry2dPtr()

Geometry2d * Geometry2dPy::getGeometry2dPtr ( void  ) const

getter for the object handled by this class

Referenced by Part::Curve2dPy::approximateBSpline(), Part::Curve2dPy::centerOfCurvature(), copy(), Part::Curve2dPy::curvature(), Part::Curve2dPy::discretize(), Part::OffsetCurve2dPy::getBasisCurve(), Part::Curve2dPy::getClosed(), Part::Curve2dPy::getContinuity(), Part::BezierCurve2dPy::getDegree(), Part::BSplineCurve2dPy::getDegree(), Part::BezierCurve2dPy::getEndPoint(), Part::BSplineCurve2dPy::getEndPoint(), Part::Curve2dPy::getFirstParameter(), Part::BSplineCurve2dPy::getFirstUKnotIndex(), Part::Parabola2dPy::getFocal(), Part::Parabola2dPy::getFocus(), Part::BSplineCurve2dPy::getKnot(), Part::BSplineCurve2dPy::getKnots(), Part::BSplineCurve2dPy::getKnotSequence(), Part::Curve2dPy::getLastParameter(), Part::BSplineCurve2dPy::getLastUKnotIndex(), Part::BezierCurve2dPy::getMaxDegree(), Part::BSplineCurve2dPy::getMaxDegree(), Part::BSplineCurve2dPy::getMultiplicities(), Part::BSplineCurve2dPy::getMultiplicity(), Part::BSplineCurve2dPy::getNbKnots(), Part::BezierCurve2dPy::getNbPoles(), Part::BSplineCurve2dPy::getNbPoles(), Part::OffsetCurve2dPy::getOffsetValue(), Part::Parabola2dPy::getParameter(), Part::Curve2dPy::getPeriodic(), Part::BezierCurve2dPy::getPole(), Part::BSplineCurve2dPy::getPole(), Part::BezierCurve2dPy::getPoles(), Part::BSplineCurve2dPy::getPoles(), Part::BSplineCurve2dPy::getPolesAndWeights(), Part::BezierCurve2dPy::getResolution(), Part::BSplineCurve2dPy::getResolution(), Part::BezierCurve2dPy::getStartPoint(), Part::BSplineCurve2dPy::getStartPoint(), Part::BezierCurve2dPy::getWeight(), Part::BSplineCurve2dPy::getWeight(), Part::BezierCurve2dPy::getWeights(), Part::BSplineCurve2dPy::getWeights(), Part::BezierCurve2dPy::increase(), Part::BSplineCurve2dPy::increaseDegree(), Part::BSplineCurve2dPy::increaseMultiplicity(), Part::BSplineCurve2dPy::incrementMultiplicity(), Part::BSplineCurve2dPy::insertKnot(), Part::BSplineCurve2dPy::insertKnots(), Part::BezierCurve2dPy::insertPoleAfter(), Part::BezierCurve2dPy::insertPoleBefore(), Part::Curve2dPy::intersectCC(), Part::BezierCurve2dPy::isClosed(), Part::BSplineCurve2dPy::isClosed(), Part::BezierCurve2dPy::isPeriodic(), Part::BSplineCurve2dPy::isPeriodic(), Part::BezierCurve2dPy::isRational(), Part::BSplineCurve2dPy::isRational(), Part::Curve2dPy::length(), mirror(), Part::BSplineCurve2dPy::movePoint(), Part::Curve2dPy::normal(), Part::Curve2dPy::parameter(), Part::Curve2dPy::parameterAtDistance(), Part::OffsetCurve2dPy::PyInit(), Part::Parabola2dPy::PyInit(), Part::BSplineCurve2dPy::removeKnot(), Part::BezierCurve2dPy::removePole(), rotate(), scale(), Part::BezierCurve2dPy::segment(), Part::BSplineCurve2dPy::segment(), Part::OffsetCurve2dPy::setBasisCurve(), Part::Parabola2dPy::setFocal(), Part::BSplineCurve2dPy::setKnot(), Part::BSplineCurve2dPy::setKnots(), Part::BSplineCurve2dPy::setNotPeriodic(), Part::OffsetCurve2dPy::setOffsetValue(), Part::BSplineCurve2dPy::setOrigin(), Part::BSplineCurve2dPy::setPeriodic(), Part::BezierCurve2dPy::setPole(), Part::BSplineCurve2dPy::setPole(), Part::BezierCurve2dPy::setWeight(), Part::BSplineCurve2dPy::setWeight(), Part::Curve2dPy::tangent(), Part::Curve2dPy::toBSpline(), Part::Curve2dPy::toShape(), transform(), translate(), and Part::Curve2dPy::value().

◆ GetType()

◆ mirror()

PyObject * Geometry2dPy::mirror ( PyObject args)

◆ PyInit()

◆ PyMake()

PyObject * Geometry2dPy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
)
static

◆ representation()

◆ rotate()

◆ scale()

◆ setCustomAttributes()

int Geometry2dPy::setCustomAttributes ( const char *  attr,
PyObject obj 
)

setter for special attributes (e.g.

dynamic ones) Output: Success=1, Failure=-1, Ignore=0

◆ staticCallback_copy()

PyObject * Geometry2dPy::staticCallback_copy ( PyObject self,
PyObject args 
)
static

◆ staticCallback_mirror()

◆ staticCallback_rotate()

◆ staticCallback_scale()

◆ staticCallback_transform()

◆ staticCallback_translate()

◆ transform()

◆ translate()

PyObject * Geometry2dPy::translate ( PyObject args)

Member Data Documentation

◆ GetterSetter

PyGetSetDef Geometry2dPy::GetterSetter
static
Initial value:
= {
{NULL, NULL, NULL, NULL, NULL}
}

Attribute structure of Geometry2dPy.

◆ Methods

PyMethodDef Geometry2dPy::Methods
static

Methods structure of Geometry2dPy.

◆ Type


The documentation for this class was generated from the following files:
  • Sources/FreeCAD-SourceDocs/src/Mod/Part/App/Geom2d/Geometry2dPy.h
  • Sources/FreeCAD/src/Mod/Part/App/Geom2d/Geometry2dPyImp.cpp
  • Sources/FreeCAD-SourceDocs/src/Mod/Part/App/Geom2d/Geometry2dPy.cpp