The python export class for ComplexGeoData. More...
#include <ComplexGeoDataPy.h>
Public Types | |
typedef ComplexGeoData * | 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. | |
ComplexGeoDataPy (ComplexGeoData *pcObject, PyTypeObject *T=&Type) | |
ComplexGeoData * | getComplexGeoDataPtr (void) const |
getter for the object handled by this class | |
PyObject * | getCustomAttributes (const char *attr) const |
getter method for special attributes (e.g. dynamic ones) | |
virtual PyParentObject * | GetParents (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) | |
~ComplexGeoDataPy () | |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of ComplexGeoDataPy. | |
static PyMethodDef | Methods [] |
Methods structure of ComplexGeoDataPy. | |
static PyParentObject | Parents [] = { PARENTSDataComplexGeoDataPy } |
static PyTypeObject | Type |
Type structure of ComplexGeoDataPy. | |
callbacks and implementers for the python object attributes | |
| |
Py::Object | getBoundBox (void) const |
getter for the BoundBox attribute | |
Py::Object | getMatrix (void) const |
getter for the Matrix attribute | |
Py::Object | getPlacement (void) const |
getter for the Placement attribute | |
void | setMatrix (Py::Object arg) |
setter for the Matrix attribute | |
void | setPlacement (Py::Object arg) |
setter for the Placement attribute | |
static PyObject * | staticCallback_getBoundBox (PyObject *self, void *closure) |
getter callback for the BoundBox attribute | |
static PyObject * | staticCallback_getMatrix (PyObject *self, void *closure) |
getter callback for the Matrix attribute | |
static PyObject * | staticCallback_getPlacement (PyObject *self, void *closure) |
getter callback for the Placement attribute | |
static int | staticCallback_setBoundBox (PyObject *self, PyObject *value, void *closure) |
setter callback for the BoundBox attribute | |
static int | staticCallback_setMatrix (PyObject *self, PyObject *value, void *closure) |
setter callback for the Matrix attribute | |
static int | staticCallback_setPlacement (PyObject *self, PyObject *value, void *closure) |
setter callback for the Placement attribute |
The python export class for ComplexGeoData.
Definition at line 20 of file ComplexGeoDataPy.h.
Reimplemented from Base::PersistencePy.
Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.
Definition at line 36 of file ComplexGeoDataPy.h.
ComplexGeoDataPy::ComplexGeoDataPy | ( | ComplexGeoData * | pcObject, | |
PyTypeObject * | T = &Type | |||
) |
Definition at line 233 of file ComplexGeoDataPy.cpp.
References Base::Handled::ref().
ComplexGeoDataPy::~ComplexGeoDataPy | ( | ) |
Definition at line 255 of file ComplexGeoDataPy.cpp.
References getComplexGeoDataPtr(), and Base::Handled::unref().
PyObject * ComplexGeoDataPy::_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 Base::PersistencePy.
Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.
Definition at line 271 of file ComplexGeoDataPy.cpp.
References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().
PyObject * ComplexGeoDataPy::_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 Base::PersistencePy.
Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.
Definition at line 263 of file ComplexGeoDataPy.cpp.
References representation().
int ComplexGeoDataPy::_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 Base::PersistencePy.
Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.
Definition at line 339 of file ComplexGeoDataPy.cpp.
References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().
Py::Object ComplexGeoDataPy::getBoundBox | ( | void | ) | const |
getter for the BoundBox attribute
Definition at line 45 of file ComplexGeoDataPyImp.cpp.
References getComplexGeoDataPtr().
Referenced by staticCallback_getBoundBox().
ComplexGeoData * ComplexGeoDataPy::getComplexGeoDataPtr | ( | void | ) | const |
getter for the object handled by this class
Definition at line 398 of file ComplexGeoDataPy.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Referenced by getBoundBox(), getMatrix(), getPlacement(), setMatrix(), setPlacement(), and ~ComplexGeoDataPy().
PyObject * ComplexGeoDataPy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
Reimplemented from Base::PersistencePy.
Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.
Definition at line 88 of file ComplexGeoDataPyImp.cpp.
Referenced by _getattr().
Py::Object ComplexGeoDataPy::getMatrix | ( | void | ) | const |
getter for the Matrix attribute
Definition at line 69 of file ComplexGeoDataPyImp.cpp.
References getComplexGeoDataPtr().
Referenced by staticCallback_getMatrix().
virtual PyParentObject* Data::ComplexGeoDataPy::GetParents | ( | void | ) | [inline, virtual] |
Reimplemented from Base::PersistencePy.
Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.
Definition at line 28 of file ComplexGeoDataPy.h.
Py::Object ComplexGeoDataPy::getPlacement | ( | void | ) | const |
getter for the Placement attribute
Definition at line 50 of file ComplexGeoDataPyImp.cpp.
References getComplexGeoDataPtr().
Referenced by staticCallback_getPlacement().
virtual PyTypeObject* Data::ComplexGeoDataPy::GetType | ( | void | ) | [inline, virtual] |
Reimplemented from Base::PersistencePy.
Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.
Definition at line 27 of file ComplexGeoDataPy.h.
PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).
Reimplemented from Base::PersistencePy.
Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.
Definition at line 247 of file ComplexGeoDataPy.cpp.
Reimplemented from Base::PersistencePy.
Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.
Definition at line 239 of file ComplexGeoDataPy.cpp.
std::string ComplexGeoDataPy::representation | ( | void | ) | const |
Reimplemented from Base::PersistencePy.
Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.
Definition at line 40 of file ComplexGeoDataPyImp.cpp.
Referenced by _repr().
int ComplexGeoDataPy::setCustomAttributes | ( | const char * | attr, | |
PyObject * | obj | |||
) |
setter for special attributes (e.g. dynamic ones)
Reimplemented from Base::PersistencePy.
Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.
Definition at line 93 of file ComplexGeoDataPyImp.cpp.
Referenced by _setattr().
void ComplexGeoDataPy::setMatrix | ( | Py::Object | arg | ) |
setter for the Matrix attribute
Definition at line 74 of file ComplexGeoDataPyImp.cpp.
References draftlibs::dxfReader::error(), getComplexGeoDataPtr(), draftTools::p, Py::Object::ptr(), Data::ComplexGeoData::setTransform(), Base::MatrixPy::Type, and Py::value().
void ComplexGeoDataPy::setPlacement | ( | Py::Object | arg | ) |
setter for the Placement attribute
Definition at line 55 of file ComplexGeoDataPyImp.cpp.
References draftlibs::dxfReader::error(), getComplexGeoDataPtr(), draftTools::p, Py::Object::ptr(), Data::ComplexGeoData::setPlacement(), and Base::PlacementPy::Type.
PyObject * ComplexGeoDataPy::staticCallback_getBoundBox | ( | PyObject * | self, | |
void * | closure | |||
) | [static] |
getter callback for the BoundBox attribute
Definition at line 106 of file ComplexGeoDataPy.cpp.
References getBoundBox(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Matrix attribute
Definition at line 182 of file ComplexGeoDataPy.cpp.
References getMatrix(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
PyObject * ComplexGeoDataPy::staticCallback_getPlacement | ( | PyObject * | self, | |
void * | closure | |||
) | [static] |
getter callback for the Placement attribute
Definition at line 138 of file ComplexGeoDataPy.cpp.
References getPlacement(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
int ComplexGeoDataPy::staticCallback_setBoundBox | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the BoundBox attribute
Definition at line 124 of file ComplexGeoDataPy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int ComplexGeoDataPy::staticCallback_setMatrix | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Matrix attribute
Definition at line 200 of file ComplexGeoDataPy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int ComplexGeoDataPy::staticCallback_setPlacement | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Placement attribute
Definition at line 156 of file ComplexGeoDataPy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
PyGetSetDef ComplexGeoDataPy::GetterSetter [static] |
{ {"BoundBox", (getter) staticCallback_getBoundBox, (setter) staticCallback_setBoundBox, "Get the BoundBox of the object", NULL }, {"Placement", (getter) staticCallback_getPlacement, (setter) staticCallback_setPlacement, "Get the current transformation of the object as placement", NULL }, {"Matrix", (getter) staticCallback_getMatrix, (setter) staticCallback_setMatrix, "Get the current transformation of the object as matrix", NULL }, {NULL, NULL, NULL, NULL, NULL} }
Attribute structure of ComplexGeoDataPy.
Reimplemented from Base::PersistencePy.
Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.
Definition at line 25 of file ComplexGeoDataPy.h.
PyMethodDef ComplexGeoDataPy::Methods [static] |
{ {NULL, NULL, 0, NULL} }
Methods structure of ComplexGeoDataPy.
Reimplemented from Base::PersistencePy.
Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.
Definition at line 24 of file ComplexGeoDataPy.h.
Referenced by _getattr().
PyParentObject ComplexGeoDataPy::Parents = { PARENTSDataComplexGeoDataPy } [static] |
Reimplemented from Base::PersistencePy.
Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.
Definition at line 26 of file ComplexGeoDataPy.h.
PyTypeObject ComplexGeoDataPy::Type [static] |
Type structure of ComplexGeoDataPy.
Reimplemented from Base::PersistencePy.
Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.
Definition at line 23 of file ComplexGeoDataPy.h.
Referenced by writeDataFile().