The python export class for Part2DObject. More...
#include <Part2DObjectPy.h>
Public Types | |
typedef Part2DObject * | PointerType |
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. | |
PyObject * | getCustomAttributes (const char *attr) const |
getter method for special attributes (e.g. dynamic ones) | |
virtual PyParentObject * | GetParents (void) |
Part2DObject * | getPart2DObjectPtr (void) const |
getter for the object handled by this class | |
virtual PyTypeObject * | GetType (void) |
Part2DObjectPy (Part2DObject *pcObject, PyTypeObject *T=&Type) | |
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) | |
~Part2DObjectPy () | |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of Part2DObjectPy. | |
static PyMethodDef | Methods [] |
Methods structure of Part2DObjectPy. | |
static PyParentObject | Parents [] = { PARENTSPartPart2DObjectPy } |
static PyTypeObject | Type |
Type structure of Part2DObjectPy. |
The python export class for Part2DObject.
Definition at line 20 of file Part2DObjectPy.h.
Reimplemented from Part::PartFeaturePy.
Reimplemented in Sketcher::SketchObjectPy, and Sketcher::SketchObjectSFPy.
Definition at line 36 of file Part2DObjectPy.h.
Part2DObjectPy::Part2DObjectPy | ( | Part2DObject * | pcObject, | |
PyTypeObject * | T = &Type | |||
) |
Definition at line 95 of file Part2DObjectPy.cpp.
Part2DObjectPy::~Part2DObjectPy | ( | ) |
Definition at line 116 of file Part2DObjectPy.cpp.
PyObject * Part2DObjectPy::_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::PartFeaturePy.
Reimplemented in Sketcher::SketchObjectPy, and Sketcher::SketchObjectSFPy.
Definition at line 131 of file Part2DObjectPy.cpp.
References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().
PyObject * Part2DObjectPy::_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::PartFeaturePy.
Reimplemented in Sketcher::SketchObjectPy, and Sketcher::SketchObjectSFPy.
Definition at line 123 of file Part2DObjectPy.cpp.
References representation().
int Part2DObjectPy::_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::PartFeaturePy.
Reimplemented in Sketcher::SketchObjectPy, and Sketcher::SketchObjectSFPy.
Definition at line 199 of file Part2DObjectPy.cpp.
References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().
PyObject * Part2DObjectPy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
Reimplemented from Part::PartFeaturePy.
Reimplemented in Sketcher::SketchObjectPy, and Sketcher::SketchObjectSFPy.
Definition at line 20 of file Part2DObjectPyImp.cpp.
Referenced by _getattr().
virtual PyParentObject* Part::Part2DObjectPy::GetParents | ( | void | ) | [inline, virtual] |
Reimplemented from Part::PartFeaturePy.
Reimplemented in Sketcher::SketchObjectPy, and Sketcher::SketchObjectSFPy.
Definition at line 28 of file Part2DObjectPy.h.
Part2DObject * Part2DObjectPy::getPart2DObjectPtr | ( | void | ) | const |
getter for the object handled by this class
Definition at line 258 of file Part2DObjectPy.cpp.
References Base::PyObjectBase::_pcTwinPointer.
virtual PyTypeObject* Part::Part2DObjectPy::GetType | ( | void | ) | [inline, virtual] |
Reimplemented from Part::PartFeaturePy.
Reimplemented in Sketcher::SketchObjectPy, and Sketcher::SketchObjectSFPy.
Definition at line 27 of file Part2DObjectPy.h.
PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).
Reimplemented from Part::PartFeaturePy.
Reimplemented in Sketcher::SketchObjectPy, and Sketcher::SketchObjectSFPy.
Definition at line 108 of file Part2DObjectPy.cpp.
Reimplemented from Part::PartFeaturePy.
Reimplemented in Sketcher::SketchObjectPy, and Sketcher::SketchObjectSFPy.
Definition at line 100 of file Part2DObjectPy.cpp.
std::string Part2DObjectPy::representation | ( | void | ) | const |
Reimplemented from Part::PartFeaturePy.
Reimplemented in Sketcher::SketchObjectPy, and Sketcher::SketchObjectSFPy.
Definition at line 13 of file Part2DObjectPyImp.cpp.
Referenced by _repr().
int Part2DObjectPy::setCustomAttributes | ( | const char * | attr, | |
PyObject * | obj | |||
) |
setter for special attributes (e.g. dynamic ones)
Reimplemented from Part::PartFeaturePy.
Reimplemented in Sketcher::SketchObjectPy, and Sketcher::SketchObjectSFPy.
Definition at line 25 of file Part2DObjectPyImp.cpp.
Referenced by _setattr().
PyGetSetDef Part2DObjectPy::GetterSetter [static] |
{ {NULL, NULL, NULL, NULL, NULL} }
Attribute structure of Part2DObjectPy.
Reimplemented from Part::PartFeaturePy.
Reimplemented in Sketcher::SketchObjectPy, and Sketcher::SketchObjectSFPy.
Definition at line 25 of file Part2DObjectPy.h.
PyMethodDef Part2DObjectPy::Methods [static] |
{ {NULL, NULL, 0, NULL} }
Methods structure of Part2DObjectPy.
Reimplemented from Part::PartFeaturePy.
Reimplemented in Sketcher::SketchObjectPy, and Sketcher::SketchObjectSFPy.
Definition at line 24 of file Part2DObjectPy.h.
Referenced by _getattr().
PyParentObject Part2DObjectPy::Parents = { PARENTSPartPart2DObjectPy } [static] |
Reimplemented from Part::PartFeaturePy.
Reimplemented in Sketcher::SketchObjectPy, and Sketcher::SketchObjectSFPy.
Definition at line 26 of file Part2DObjectPy.h.
PyTypeObject Part2DObjectPy::Type [static] |
Type structure of Part2DObjectPy.
Reimplemented from Part::PartFeaturePy.
Reimplemented in Sketcher::SketchObjectPy, and Sketcher::SketchObjectSFPy.
Definition at line 23 of file Part2DObjectPy.h.