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