The python export class for Geom2dBezierCurve. More...

#include <BezierCurve2dPy.h>

Public Types

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

Public Member Functions

 BezierCurve2dPy (Geom2dBezierCurve *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
 
- Public Member Functions inherited from Part::Curve2dPy
 Curve2dPy (Geom2dCurve *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
PyObjectreverse (PyObject *args)
 implementer for the reverse() method More...
 
PyObjecttoShape (PyObject *args)
 implementer for the toShape() method More...
 
PyObjectdiscretize (PyObject *args, PyObject *kwd)
 implementer for the discretize() method More...
 
PyObjectlength (PyObject *args)
 implementer for the length() method More...
 
PyObjectparameterAtDistance (PyObject *args)
 implementer for the parameterAtDistance() method More...
 
PyObjectvalue (PyObject *args)
 implementer for the value() method More...
 
PyObjecttangent (PyObject *args)
 implementer for the tangent() method More...
 
PyObjectparameter (PyObject *args)
 implementer for the parameter() method More...
 
PyObjectnormal (PyObject *args)
 implementer for the normal() method More...
 
PyObjectcurvature (PyObject *args)
 implementer for the curvature() method More...
 
PyObjectcenterOfCurvature (PyObject *args)
 implementer for the centerOfCurvature() method More...
 
PyObjectintersectCC (PyObject *args)
 implementer for the intersectCC() method More...
 
PyObjecttoBSpline (PyObject *args)
 implementer for the toBSpline() method More...
 
PyObjectapproximateBSpline (PyObject *args)
 implementer for the approximateBSpline() method More...
 
Py::String getContinuity (void) const
 getter for the Continuity attribute More...
 
Py::Boolean getClosed (void) const
 getter for the Closed attribute More...
 
Py::Boolean getPeriodic (void) const
 getter for the Periodic attribute More...
 
Py::Float getFirstParameter (void) const
 getter for the FirstParameter attribute More...
 
Py::Float getLastParameter (void) const
 getter for the LastParameter attribute More...
 
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...
 
Geom2dCurvegetGeom2dCurvePtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from Part::Geometry2dPy
 Geometry2dPy (Geometry2d *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
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...
 
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...
 
- 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 Part::Curve2dPy
static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObjectstaticCallback_reverse (PyObject *self, PyObject *args)
 callback for the reverse() method More...
 
static PyObjectstaticCallback_toShape (PyObject *self, PyObject *args)
 callback for the toShape() method More...
 
static PyObjectstaticCallback_discretize (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the discretize() method More...
 
static PyObjectstaticCallback_length (PyObject *self, PyObject *args)
 callback for the length() method More...
 
static PyObjectstaticCallback_parameterAtDistance (PyObject *self, PyObject *args)
 callback for the parameterAtDistance() method More...
 
static PyObjectstaticCallback_value (PyObject *self, PyObject *args)
 callback for the value() method More...
 
static PyObjectstaticCallback_tangent (PyObject *self, PyObject *args)
 callback for the tangent() method More...
 
static PyObjectstaticCallback_parameter (PyObject *self, PyObject *args)
 callback for the parameter() method More...
 
static PyObjectstaticCallback_normal (PyObject *self, PyObject *args)
 callback for the normal() method More...
 
static PyObjectstaticCallback_curvature (PyObject *self, PyObject *args)
 callback for the curvature() method More...
 
static PyObjectstaticCallback_centerOfCurvature (PyObject *self, PyObject *args)
 callback for the centerOfCurvature() method More...
 
static PyObjectstaticCallback_intersectCC (PyObject *self, PyObject *args)
 callback for the intersectCC() method More...
 
static PyObjectstaticCallback_toBSpline (PyObject *self, PyObject *args)
 callback for the toBSpline() method More...
 
static PyObjectstaticCallback_approximateBSpline (PyObject *self, PyObject *args)
 callback for the approximateBSpline() method More...
 
static PyObjectstaticCallback_getContinuity (PyObject *self, void *closure)
 getter callback for the Continuity attribute More...
 
static int staticCallback_setContinuity (PyObject *self, PyObject *value, void *closure)
 setter callback for the Continuity attribute More...
 
static PyObjectstaticCallback_getClosed (PyObject *self, void *closure)
 getter callback for the Closed attribute More...
 
static int staticCallback_setClosed (PyObject *self, PyObject *value, void *closure)
 setter callback for the Closed attribute More...
 
static PyObjectstaticCallback_getPeriodic (PyObject *self, void *closure)
 getter callback for the Periodic attribute More...
 
static int staticCallback_setPeriodic (PyObject *self, PyObject *value, void *closure)
 setter callback for the Periodic attribute More...
 
static PyObjectstaticCallback_getFirstParameter (PyObject *self, void *closure)
 getter callback for the FirstParameter attribute More...
 
static int staticCallback_setFirstParameter (PyObject *self, PyObject *value, void *closure)
 setter callback for the FirstParameter attribute More...
 
static PyObjectstaticCallback_getLastParameter (PyObject *self, void *closure)
 getter callback for the LastParameter attribute More...
 
static int staticCallback_setLastParameter (PyObject *self, PyObject *value, void *closure)
 setter callback for the LastParameter attribute More...
 
- Static Public Member Functions inherited from Part::Geometry2dPy
static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
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...
 
- 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 BezierCurve2dPy. More...
 
static PyMethodDef Methods []
 Methods structure of BezierCurve2dPy. More...
 
static PyTypeObject Type
 Type structure of BezierCurve2dPy. More...
 
- Static Public Attributes inherited from Part::Curve2dPy
static PyGetSetDef GetterSetter []
 Attribute structure of Curve2dPy. More...
 
static PyMethodDef Methods []
 Methods structure of Curve2dPy. More...
 
static PyTypeObject Type
 Type structure of Curve2dPy. More...
 
- Static Public Attributes inherited from Part::Geometry2dPy
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

 ~BezierCurve2dPy ()
 
- Protected Member Functions inherited from Part::Curve2dPy
 ~Curve2dPy ()
 
- Protected Member Functions inherited from Part::Geometry2dPy
 ~Geometry2dPy ()
 
- Protected Member Functions inherited from Base::PyObjectBase
virtual ~PyObjectBase ()
 destructor More...
 

callbacks and implementers for the python object methods

PyObjectisRational (PyObject *args)
 implementer for the isRational() method More...
 
PyObjectisPeriodic (PyObject *args)
 implementer for the isPeriodic() method More...
 
PyObjectisClosed (PyObject *args)
 implementer for the isClosed() method More...
 
PyObjectincrease (PyObject *args)
 implementer for the increase() method More...
 
PyObjectinsertPoleAfter (PyObject *args)
 implementer for the insertPoleAfter() method More...
 
PyObjectinsertPoleBefore (PyObject *args)
 implementer for the insertPoleBefore() method More...
 
PyObjectremovePole (PyObject *args)
 implementer for the removePole() method More...
 
PyObjectsegment (PyObject *args)
 implementer for the segment() method More...
 
PyObjectsetPole (PyObject *args)
 implementer for the setPole() method More...
 
PyObjectgetPole (PyObject *args)
 implementer for the getPole() method More...
 
PyObjectgetPoles (PyObject *args)
 implementer for the getPoles() method More...
 
PyObjectsetPoles (PyObject *args)
 implementer for the setPoles() method More...
 
PyObjectsetWeight (PyObject *args)
 implementer for the setWeight() method More...
 
PyObjectgetWeight (PyObject *args)
 implementer for the getWeight() method More...
 
PyObjectgetWeights (PyObject *args)
 implementer for the getWeights() method More...
 
PyObjectgetResolution (PyObject *args)
 implementer for the getResolution() method More...
 
static PyObjectstaticCallback_isRational (PyObject *self, PyObject *args)
 callback for the isRational() method More...
 
static PyObjectstaticCallback_isPeriodic (PyObject *self, PyObject *args)
 callback for the isPeriodic() method More...
 
static PyObjectstaticCallback_isClosed (PyObject *self, PyObject *args)
 callback for the isClosed() method More...
 
static PyObjectstaticCallback_increase (PyObject *self, PyObject *args)
 callback for the increase() method More...
 
static PyObjectstaticCallback_insertPoleAfter (PyObject *self, PyObject *args)
 callback for the insertPoleAfter() method More...
 
static PyObjectstaticCallback_insertPoleBefore (PyObject *self, PyObject *args)
 callback for the insertPoleBefore() method More...
 
static PyObjectstaticCallback_removePole (PyObject *self, PyObject *args)
 callback for the removePole() method More...
 
static PyObjectstaticCallback_segment (PyObject *self, PyObject *args)
 callback for the segment() method More...
 
static PyObjectstaticCallback_setPole (PyObject *self, PyObject *args)
 callback for the setPole() method More...
 
static PyObjectstaticCallback_getPole (PyObject *self, PyObject *args)
 callback for the getPole() method More...
 
static PyObjectstaticCallback_getPoles (PyObject *self, PyObject *args)
 callback for the getPoles() method More...
 
static PyObjectstaticCallback_setPoles (PyObject *self, PyObject *args)
 callback for the setPoles() method More...
 
static PyObjectstaticCallback_setWeight (PyObject *self, PyObject *args)
 callback for the setWeight() method More...
 
static PyObjectstaticCallback_getWeight (PyObject *self, PyObject *args)
 callback for the getWeight() method More...
 
static PyObjectstaticCallback_getWeights (PyObject *self, PyObject *args)
 callback for the getWeights() method More...
 
static PyObjectstaticCallback_getResolution (PyObject *self, PyObject *args)
 callback for the getResolution() method More...
 

callbacks and implementers for the python object attributes

Py::Long getDegree (void) const
 getter for the Degree attribute More...
 
Py::Long getMaxDegree (void) const
 getter for the MaxDegree attribute More...
 
Py::Long getNbPoles (void) const
 getter for the NbPoles attribute More...
 
Py::Object getStartPoint (void) const
 getter for the StartPoint attribute More...
 
Py::Object getEndPoint (void) const
 getter for the EndPoint attribute More...
 
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...
 
Geom2dBezierCurvegetGeom2dBezierCurvePtr (void) const
 getter for the object handled by this class More...
 
static PyObjectstaticCallback_getDegree (PyObject *self, void *closure)
 getter callback for the Degree attribute More...
 
static int staticCallback_setDegree (PyObject *self, PyObject *value, void *closure)
 setter callback for the Degree attribute More...
 
static PyObjectstaticCallback_getMaxDegree (PyObject *self, void *closure)
 getter callback for the MaxDegree attribute More...
 
static int staticCallback_setMaxDegree (PyObject *self, PyObject *value, void *closure)
 setter callback for the MaxDegree attribute More...
 
static PyObjectstaticCallback_getNbPoles (PyObject *self, void *closure)
 getter callback for the NbPoles attribute More...
 
static int staticCallback_setNbPoles (PyObject *self, PyObject *value, void *closure)
 setter callback for the NbPoles attribute More...
 
static PyObjectstaticCallback_getStartPoint (PyObject *self, void *closure)
 getter callback for the StartPoint attribute More...
 
static int staticCallback_setStartPoint (PyObject *self, PyObject *value, void *closure)
 setter callback for the StartPoint attribute More...
 
static PyObjectstaticCallback_getEndPoint (PyObject *self, void *closure)
 getter callback for the EndPoint attribute More...
 
static int staticCallback_setEndPoint (PyObject *self, PyObject *value, void *closure)
 setter callback for the EndPoint attribute More...
 

Additional Inherited Members

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

Detailed Description

The python export class for Geom2dBezierCurve.

Member Typedef Documentation

◆ PointerType

Constructor & Destructor Documentation

◆ ~BezierCurve2dPy()

BezierCurve2dPy::~BezierCurve2dPy ( )
protected

◆ BezierCurve2dPy()

BezierCurve2dPy::BezierCurve2dPy ( Geom2dBezierCurve pcObject,
PyTypeObject *  T = &Type 
)

Referenced by PyMake().

Member Function Documentation

◆ getCustomAttributes()

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

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

◆ getDegree()

Py::Long BezierCurve2dPy::getDegree ( void  ) const

getter for the Degree attribute

References Part::Geometry2dPy::getGeometry2dPtr().

Referenced by staticCallback_getDegree().

◆ getEndPoint()

Py::Object BezierCurve2dPy::getEndPoint ( void  ) const

getter for the EndPoint attribute

References Part::Geometry2dPy::getGeometry2dPtr().

Referenced by staticCallback_getEndPoint().

◆ getGeom2dBezierCurvePtr()

Geom2dBezierCurve * BezierCurve2dPy::getGeom2dBezierCurvePtr ( void  ) const

getter for the object handled by this class

Referenced by setPoles().

◆ getMaxDegree()

Py::Long BezierCurve2dPy::getMaxDegree ( void  ) const

getter for the MaxDegree attribute

References Part::Geometry2dPy::getGeometry2dPtr().

Referenced by staticCallback_getMaxDegree().

◆ getNbPoles()

Py::Long BezierCurve2dPy::getNbPoles ( void  ) const

getter for the NbPoles attribute

References Part::Geometry2dPy::getGeometry2dPtr().

Referenced by staticCallback_getNbPoles().

◆ getPole()

PyObject * BezierCurve2dPy::getPole ( PyObject args)

◆ getPoles()

PyObject * BezierCurve2dPy::getPoles ( PyObject args)

◆ getResolution()

PyObject * BezierCurve2dPy::getResolution ( PyObject args)

◆ getStartPoint()

Py::Object BezierCurve2dPy::getStartPoint ( void  ) const

getter for the StartPoint attribute

References Part::Geometry2dPy::getGeometry2dPtr().

Referenced by staticCallback_getStartPoint().

◆ GetType()

virtual PyTypeObject* Part::BezierCurve2dPy::GetType ( void  )
virtual

Reimplemented from Part::Curve2dPy.

◆ getWeight()

PyObject * BezierCurve2dPy::getWeight ( PyObject args)

◆ getWeights()

PyObject * BezierCurve2dPy::getWeights ( PyObject args)

◆ increase()

PyObject * BezierCurve2dPy::increase ( PyObject args)

implementer for the increase() method

References Part::Geometry2dPy::getGeometry2dPtr().

Referenced by staticCallback_increase().

◆ insertPoleAfter()

PyObject * BezierCurve2dPy::insertPoleAfter ( PyObject args)

◆ insertPoleBefore()

PyObject * BezierCurve2dPy::insertPoleBefore ( PyObject args)

◆ isClosed()

PyObject * BezierCurve2dPy::isClosed ( PyObject args)

implementer for the isClosed() method

References Part::Geometry2dPy::getGeometry2dPtr().

Referenced by staticCallback_isClosed().

◆ isPeriodic()

PyObject * BezierCurve2dPy::isPeriodic ( PyObject args)

implementer for the isPeriodic() method

References Part::Geometry2dPy::getGeometry2dPtr().

Referenced by staticCallback_isPeriodic().

◆ isRational()

PyObject * BezierCurve2dPy::isRational ( PyObject args)

implementer for the isRational() method

References Part::Geometry2dPy::getGeometry2dPtr().

Referenced by staticCallback_isRational().

◆ PyInit()

int BezierCurve2dPy::PyInit ( PyObject ,
PyObject  
)
virtual

PyInit method Override this method to initialize a newly created instance of the class (Constructor)

Reimplemented from Part::Curve2dPy.

◆ PyMake()

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

References BezierCurve2dPy().

◆ removePole()

PyObject * BezierCurve2dPy::removePole ( PyObject args)

◆ representation()

◆ segment()

PyObject * BezierCurve2dPy::segment ( PyObject args)

◆ setCustomAttributes()

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

setter for special attributes (e.g.

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

◆ setPole()

PyObject * BezierCurve2dPy::setPole ( PyObject args)

◆ setPoles()

◆ setWeight()

PyObject * BezierCurve2dPy::setWeight ( PyObject args)

◆ staticCallback_getDegree()

PyObject * BezierCurve2dPy::staticCallback_getDegree ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getEndPoint()

PyObject * BezierCurve2dPy::staticCallback_getEndPoint ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getMaxDegree()

PyObject * BezierCurve2dPy::staticCallback_getMaxDegree ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getNbPoles()

PyObject * BezierCurve2dPy::staticCallback_getNbPoles ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getPole()

◆ staticCallback_getPoles()

◆ staticCallback_getResolution()

PyObject * BezierCurve2dPy::staticCallback_getResolution ( PyObject self,
PyObject args 
)
static

◆ staticCallback_getStartPoint()

PyObject * BezierCurve2dPy::staticCallback_getStartPoint ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getWeight()

◆ staticCallback_getWeights()

◆ staticCallback_increase()

◆ staticCallback_insertPoleAfter()

◆ staticCallback_insertPoleBefore()

◆ staticCallback_isClosed()

◆ staticCallback_isPeriodic()

◆ staticCallback_isRational()

◆ staticCallback_removePole()

◆ staticCallback_segment()

◆ staticCallback_setDegree()

int BezierCurve2dPy::staticCallback_setDegree ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Degree attribute

References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().

◆ staticCallback_setEndPoint()

int BezierCurve2dPy::staticCallback_setEndPoint ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the EndPoint attribute

References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().

◆ staticCallback_setMaxDegree()

int BezierCurve2dPy::staticCallback_setMaxDegree ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the MaxDegree attribute

References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().

◆ staticCallback_setNbPoles()

int BezierCurve2dPy::staticCallback_setNbPoles ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the NbPoles attribute

References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().

◆ staticCallback_setPole()

◆ staticCallback_setPoles()

◆ staticCallback_setStartPoint()

int BezierCurve2dPy::staticCallback_setStartPoint ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the StartPoint attribute

References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().

◆ staticCallback_setWeight()

Member Data Documentation

◆ GetterSetter

PyGetSetDef BezierCurve2dPy::GetterSetter
static

Attribute structure of BezierCurve2dPy.

◆ Methods

PyMethodDef BezierCurve2dPy::Methods
static

Methods structure of BezierCurve2dPy.

◆ Type


The documentation for this class was generated from the following files:
  • build/webdoc/src/Mod/Part/App/Geom2d/BezierCurve2dPy.h
  • src/Mod/Part/App/Geom2d/BezierCurve2dPyImp.cpp
  • build/webdoc/src/Mod/Part/App/Geom2d/BezierCurve2dPy.cpp