Part::BezierCurvePy Class Reference

The python export class for GeomBezierCurve. More...

#include <BezierCurvePy.h>

Inheritance diagram for Part::BezierCurvePy:
Part::GeometryCurvePy Part::GeometryPy Base::PyObjectBase

List of all members.

Public Types

typedef GeomBezierCurvePointerType

Public Member Functions

PyObject_getattr (char *attr)
 GetAttribute implementation This method implements the retriavel of object attributes.
virtual PyObject_repr (void)
 _repr method Overide this method to return a string object with some invormation about the object.
int _setattr (char *attr, PyObject *value)
 SetAttribute implementation This method implements the seting of object attributes.
 BezierCurvePy (GeomBezierCurve *pcObject, PyTypeObject *T=&Type)
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones)
GeomBezierCurvegetGeomBezierCurvePtr (void) const
 getter for the object handled by this class
virtual PyParentObjectGetParents (void)
virtual PyTypeObject * GetType (void)
virtual int PyInit (PyObject *args, PyObject *k)
 PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).
std::string representation (void) const
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. dynamic ones)
 ~BezierCurvePy ()

Static Public Member Functions

static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)

Static Public Attributes

static PyGetSetDef GetterSetter []
 Attribute structure of BezierCurvePy.
static PyMethodDef Methods []
 Methods structure of BezierCurvePy.
static PyParentObject Parents [] = { PARENTSPartBezierCurvePy }
static PyTypeObject Type
 Type structure of BezierCurvePy.

callbacks and implementers for the python object attributes



Py::Int getDegree (void) const
 getter for the Degree attribute
Py::Object getEndPoint (void) const
 getter for the EndPoint attribute
Py::Int getMaxDegree (void) const
 getter for the MaxDegree attribute
Py::Int getNbPoles (void) const
 getter for the NbPoles attribute
Py::Object getStartPoint (void) const
 getter for the StartPoint attribute
static PyObjectstaticCallback_getDegree (PyObject *self, void *closure)
 getter callback for the Degree attribute
static PyObjectstaticCallback_getEndPoint (PyObject *self, void *closure)
 getter callback for the EndPoint attribute
static PyObjectstaticCallback_getMaxDegree (PyObject *self, void *closure)
 getter callback for the MaxDegree attribute
static PyObjectstaticCallback_getNbPoles (PyObject *self, void *closure)
 getter callback for the NbPoles attribute
static PyObjectstaticCallback_getStartPoint (PyObject *self, void *closure)
 getter callback for the StartPoint attribute
static int staticCallback_setDegree (PyObject *self, PyObject *value, void *closure)
 setter callback for the Degree attribute
static int staticCallback_setEndPoint (PyObject *self, PyObject *value, void *closure)
 setter callback for the EndPoint attribute
static int staticCallback_setMaxDegree (PyObject *self, PyObject *value, void *closure)
 setter callback for the MaxDegree attribute
static int staticCallback_setNbPoles (PyObject *self, PyObject *value, void *closure)
 setter callback for the NbPoles attribute
static int staticCallback_setStartPoint (PyObject *self, PyObject *value, void *closure)
 setter callback for the StartPoint attribute

callbacks and implementers for the python object methods



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

Detailed Description

The python export class for GeomBezierCurve.

Definition at line 20 of file BezierCurvePy.h.


Member Typedef Documentation

Reimplemented from Part::GeometryCurvePy.

Definition at line 36 of file BezierCurvePy.h.


Constructor & Destructor Documentation

BezierCurvePy::BezierCurvePy ( GeomBezierCurve pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 1578 of file BezierCurvePy.cpp.

Referenced by PyMake().

BezierCurvePy::~BezierCurvePy (  ) 

Definition at line 1587 of file BezierCurvePy.cpp.


Member Function Documentation

PyObject * BezierCurvePy::_getattr ( char *  attr  )  [virtual]

GetAttribute implementation This method implements the retriavel of object attributes.

If you want to implement attributes in your class, reimplement this method. You have to call the method of the base class. Note: if you reimplement _gettattr() in a inheriting class you need to call the method of the base class! Otherwise even the methods of the object will disapiear!

Reimplemented from Part::GeometryCurvePy.

Definition at line 1602 of file BezierCurvePy.cpp.

References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().

PyObject * BezierCurvePy::_repr ( void   )  [virtual]

_repr method Overide this method to return a string object with some invormation about the object.

 PyObject *MeshFeaturePy::_repr(void)
 {
   std::stringstream a;
   a << "MeshFeature: [ ";
   a << "some realy important info about the object!";
   a << "]" << std::endl;
   return Py_BuildValue("s", a.str().c_str());
 }

Reimplemented from Part::GeometryCurvePy.

Definition at line 1594 of file BezierCurvePy.cpp.

References representation().

int BezierCurvePy::_setattr ( char *  attr,
PyObject value 
) [virtual]

SetAttribute implementation This method implements the seting of object attributes.

If you want to implement attributes in your class, reimplement this method. You have to call the method of the base class.

Reimplemented from Part::GeometryCurvePy.

Definition at line 1670 of file BezierCurvePy.cpp.

References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().

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

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 412 of file BezierCurvePyImp.cpp.

Referenced by _getattr().

Py::Int BezierCurvePy::getDegree ( void   )  const

getter for the Degree attribute

Definition at line 375 of file BezierCurvePyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().

Referenced by staticCallback_getDegree().

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

getter for the EndPoint attribute

Definition at line 404 of file BezierCurvePyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().

Referenced by staticCallback_getEndPoint().

GeomBezierCurve * BezierCurvePy::getGeomBezierCurvePtr ( void   )  const

getter for the object handled by this class

Definition at line 1729 of file BezierCurvePy.cpp.

References Base::PyObjectBase::_pcTwinPointer.

Referenced by setPoles().

Py::Int BezierCurvePy::getMaxDegree ( void   )  const

getter for the MaxDegree attribute

Definition at line 382 of file BezierCurvePyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().

Referenced by staticCallback_getMaxDegree().

Py::Int BezierCurvePy::getNbPoles ( void   )  const

getter for the NbPoles attribute

Definition at line 389 of file BezierCurvePyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().

Referenced by staticCallback_getNbPoles().

virtual PyParentObject* Part::BezierCurvePy::GetParents ( void   )  [inline, virtual]

Reimplemented from Part::GeometryCurvePy.

Definition at line 28 of file BezierCurvePy.h.

PyObject * BezierCurvePy::getPole ( PyObject args  ) 

implementer for the getPole() method

Definition at line 226 of file BezierCurvePyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), StartPage::StartPage::handle(), and draftlibs::fcgeo::vec().

PyObject * BezierCurvePy::getPoles ( PyObject args  ) 
PyObject * BezierCurvePy::getResolution ( PyObject args  ) 

implementer for the getResolution() method

Definition at line 356 of file BezierCurvePyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().

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

getter for the StartPoint attribute

Definition at line 396 of file BezierCurvePyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().

Referenced by staticCallback_getStartPoint().

virtual PyTypeObject* Part::BezierCurvePy::GetType ( void   )  [inline, virtual]

Reimplemented from Part::GeometryCurvePy.

Definition at line 27 of file BezierCurvePy.h.

PyObject * BezierCurvePy::getWeight ( PyObject args  ) 

implementer for the getWeight() method

Definition at line 316 of file BezierCurvePyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().

PyObject * BezierCurvePy::getWeights ( PyObject args  ) 
PyObject * BezierCurvePy::increase ( PyObject args  ) 

implementer for the increase() method

Definition at line 110 of file BezierCurvePyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), StartPage::StartPage::handle(), and Py_Return.

PyObject * BezierCurvePy::insertPoleAfter ( PyObject args  ) 
PyObject * BezierCurvePy::insertPoleBefore ( PyObject args  ) 
PyObject * BezierCurvePy::isClosed ( PyObject args  ) 

implementer for the isClosed() method

Definition at line 93 of file BezierCurvePyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().

PyObject * BezierCurvePy::isPeriodic ( PyObject args  ) 

implementer for the isPeriodic() method

Definition at line 76 of file BezierCurvePyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().

PyObject * BezierCurvePy::isRational ( PyObject args  ) 

implementer for the isRational() method

Definition at line 59 of file BezierCurvePyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().

int BezierCurvePy::PyInit ( PyObject ,
PyObject  
) [virtual]

PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).

Reimplemented from Part::GeometryCurvePy.

Definition at line 54 of file BezierCurvePyImp.cpp.

PyObject * BezierCurvePy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
) [static]

Reimplemented from Part::GeometryCurvePy.

Definition at line 47 of file BezierCurvePyImp.cpp.

References BezierCurvePy().

PyObject * BezierCurvePy::removePole ( PyObject args  ) 

implementer for the removePole() method

Definition at line 165 of file BezierCurvePyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), StartPage::StartPage::handle(), and Py_Return.

std::string BezierCurvePy::representation ( void   )  const

Reimplemented from Part::GeometryCurvePy.

Definition at line 42 of file BezierCurvePyImp.cpp.

Referenced by _repr().

PyObject * BezierCurvePy::segment ( PyObject args  ) 

implementer for the segment() method

Definition at line 183 of file BezierCurvePyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), StartPage::StartPage::handle(), and Py_Return.

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

setter for special attributes (e.g. dynamic ones)

Reimplemented from Part::GeometryCurvePy.

Definition at line 417 of file BezierCurvePyImp.cpp.

Referenced by _setattr().

PyObject * BezierCurvePy::setPole ( PyObject args  ) 
PyObject * BezierCurvePy::setPoles ( PyObject args  ) 
PyObject * BezierCurvePy::setWeight ( PyObject args  ) 

implementer for the setWeight() method

Definition at line 297 of file BezierCurvePyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), StartPage::StartPage::handle(), and Py_Return.

PyObject * BezierCurvePy::staticCallback_getDegree ( PyObject self,
void *  closure 
) [static]

getter callback for the Degree attribute

Definition at line 1411 of file BezierCurvePy.cpp.

References getDegree(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().

PyObject * BezierCurvePy::staticCallback_getEndPoint ( PyObject self,
void *  closure 
) [static]

getter callback for the EndPoint attribute

Definition at line 1539 of file BezierCurvePy.cpp.

References getEndPoint(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().

PyObject * BezierCurvePy::staticCallback_getMaxDegree ( PyObject self,
void *  closure 
) [static]

getter callback for the MaxDegree attribute

Definition at line 1443 of file BezierCurvePy.cpp.

References getMaxDegree(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().

PyObject * BezierCurvePy::staticCallback_getNbPoles ( PyObject self,
void *  closure 
) [static]

getter callback for the NbPoles attribute

Definition at line 1475 of file BezierCurvePy.cpp.

References getNbPoles(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().

PyObject * BezierCurvePy::staticCallback_getPole ( PyObject self,
PyObject args 
) [static]
PyObject * BezierCurvePy::staticCallback_getPoles ( PyObject self,
PyObject args 
) [static]
PyObject * BezierCurvePy::staticCallback_getResolution ( PyObject self,
PyObject args 
) [static]
PyObject * BezierCurvePy::staticCallback_getStartPoint ( PyObject self,
void *  closure 
) [static]

getter callback for the StartPoint attribute

Definition at line 1507 of file BezierCurvePy.cpp.

References getStartPoint(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().

PyObject * BezierCurvePy::staticCallback_getWeight ( PyObject self,
PyObject args 
) [static]
PyObject * BezierCurvePy::staticCallback_getWeights ( PyObject self,
PyObject args 
) [static]
PyObject * BezierCurvePy::staticCallback_increase ( PyObject self,
PyObject args 
) [static]
PyObject * BezierCurvePy::staticCallback_insertPoleAfter ( PyObject self,
PyObject args 
) [static]
PyObject * BezierCurvePy::staticCallback_insertPoleBefore ( PyObject self,
PyObject args 
) [static]
PyObject * BezierCurvePy::staticCallback_isClosed ( PyObject self,
PyObject args 
) [static]
PyObject * BezierCurvePy::staticCallback_isPeriodic ( PyObject self,
PyObject args 
) [static]
PyObject * BezierCurvePy::staticCallback_isRational ( PyObject self,
PyObject args 
) [static]
PyObject * BezierCurvePy::staticCallback_removePole ( PyObject self,
PyObject args 
) [static]
PyObject * BezierCurvePy::staticCallback_segment ( PyObject self,
PyObject args 
) [static]
int BezierCurvePy::staticCallback_setDegree ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Degree attribute

Definition at line 1429 of file BezierCurvePy.cpp.

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

int BezierCurvePy::staticCallback_setEndPoint ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the EndPoint attribute

Definition at line 1557 of file BezierCurvePy.cpp.

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

int BezierCurvePy::staticCallback_setMaxDegree ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the MaxDegree attribute

Definition at line 1461 of file BezierCurvePy.cpp.

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

int BezierCurvePy::staticCallback_setNbPoles ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the NbPoles attribute

Definition at line 1493 of file BezierCurvePy.cpp.

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

PyObject * BezierCurvePy::staticCallback_setPole ( PyObject self,
PyObject args 
) [static]
PyObject * BezierCurvePy::staticCallback_setPoles ( PyObject self,
PyObject args 
) [static]
int BezierCurvePy::staticCallback_setStartPoint ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the StartPoint attribute

Definition at line 1525 of file BezierCurvePy.cpp.

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

PyObject * BezierCurvePy::staticCallback_setWeight ( PyObject self,
PyObject args 
) [static]

Member Data Documentation

PyGetSetDef BezierCurvePy::GetterSetter [static]

Attribute structure of BezierCurvePy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 25 of file BezierCurvePy.h.

PyMethodDef BezierCurvePy::Methods [static]

Methods structure of BezierCurvePy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 24 of file BezierCurvePy.h.

Referenced by _getattr().

PyParentObject BezierCurvePy::Parents = { PARENTSPartBezierCurvePy } [static]

Reimplemented from Part::GeometryCurvePy.

Definition at line 26 of file BezierCurvePy.h.

PyTypeObject BezierCurvePy::Type [static]

Type structure of BezierCurvePy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 23 of file BezierCurvePy.h.

Referenced by initPart().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:30 2011 for FreeCAD by  doxygen 1.6.1