The python export class for TopoShape. More...
#include <TopoShapeShellPy.h>
Public Types | |
typedef TopoShape * | 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) |
TopoShape * | getTopoShapePtr (void) const |
getter for the object handled by this class | |
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) | |
TopoShapeShellPy (TopoShape *pcObject, PyTypeObject *T=&Type) | |
~TopoShapeShellPy () | |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of TopoShapeShellPy. | |
static PyMethodDef | Methods [] |
Methods structure of TopoShapeShellPy. | |
static PyParentObject | Parents [] = { PARENTSPartTopoShapeShellPy } |
static PyTypeObject | Type |
Type structure of TopoShapeShellPy. | |
callbacks and implementers for the python object methods | |
| |
PyObject * | add (PyObject *args) |
implementer for the add() method | |
PyObject * | getBadEdges (PyObject *args) |
implementer for the getBadEdges() method | |
PyObject * | getFreeEdges (PyObject *args) |
implementer for the getFreeEdges() method | |
PyObject * | makeHalfSpace (PyObject *args) |
implementer for the makeHalfSpace() method | |
static PyObject * | staticCallback_add (PyObject *self, PyObject *args) |
callback for the add() method | |
static PyObject * | staticCallback_getBadEdges (PyObject *self, PyObject *args) |
callback for the getBadEdges() method | |
static PyObject * | staticCallback_getFreeEdges (PyObject *self, PyObject *args) |
callback for the getFreeEdges() method | |
static PyObject * | staticCallback_makeHalfSpace (PyObject *self, PyObject *args) |
callback for the makeHalfSpace() method |
The python export class for TopoShape.
Definition at line 20 of file TopoShapeShellPy.h.
Reimplemented from Part::TopoShapePy.
Definition at line 36 of file TopoShapeShellPy.h.
Definition at line 419 of file TopoShapeShellPy.cpp.
Referenced by PyMake().
TopoShapeShellPy::~TopoShapeShellPy | ( | ) |
Definition at line 428 of file TopoShapeShellPy.cpp.
PyObject * TopoShapeShellPy::_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::TopoShapePy.
Definition at line 443 of file TopoShapeShellPy.cpp.
References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().
PyObject * TopoShapeShellPy::_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::TopoShapePy.
Definition at line 435 of file TopoShapeShellPy.cpp.
References representation().
int TopoShapeShellPy::_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::TopoShapePy.
Definition at line 511 of file TopoShapeShellPy.cpp.
References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().
implementer for the add() method
Definition at line 113 of file TopoShapeShellPyImp.cpp.
References Part::TopoShape::_Shape, Part::TopoShapePy::check(), getTopoShapePtr(), Py_Return, Mesh2Shape::shell, and Part::TopoShapeFacePy::Type.
implementer for the getBadEdges() method
Definition at line 161 of file TopoShapeShellPyImp.cpp.
References getTopoShapePtr().
PyObject * TopoShapeShellPy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
Reimplemented from Part::TopoShapePy.
Definition at line 194 of file TopoShapeShellPyImp.cpp.
Referenced by _getattr().
implementer for the getFreeEdges() method
Definition at line 146 of file TopoShapeShellPyImp.cpp.
References getTopoShapePtr().
virtual PyParentObject* Part::TopoShapeShellPy::GetParents | ( | void | ) | [inline, virtual] |
Reimplemented from Part::TopoShapePy.
Definition at line 28 of file TopoShapeShellPy.h.
TopoShape * TopoShapeShellPy::getTopoShapePtr | ( | void | ) | const |
getter for the object handled by this class
Reimplemented from Part::TopoShapePy.
Definition at line 570 of file TopoShapeShellPy.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Referenced by add(), getBadEdges(), getFreeEdges(), makeHalfSpace(), PyInit(), and representation().
virtual PyTypeObject* Part::TopoShapeShellPy::GetType | ( | void | ) | [inline, virtual] |
Reimplemented from Part::TopoShapePy.
Definition at line 27 of file TopoShapeShellPy.h.
implementer for the makeHalfSpace() method
Definition at line 176 of file TopoShapeShellPyImp.cpp.
References getTopoShapePtr(), Base::VectorPy::Type, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).
Reimplemented from Part::TopoShapePy.
Definition at line 73 of file TopoShapeShellPyImp.cpp.
References Part::TopoShape::_Shape, Py::SeqBase< T >::begin(), Part::TopoShapePy::check(), Py::SeqBase< T >::end(), getTopoShapePtr(), Mesh2Shape::shell, and Part::TopoShapeFacePy::Type.
Reimplemented from Part::TopoShapePy.
Definition at line 66 of file TopoShapeShellPyImp.cpp.
References TopoShapeShellPy().
std::string TopoShapeShellPy::representation | ( | void | ) | const |
Reimplemented from Part::TopoShapePy.
Definition at line 51 of file TopoShapeShellPyImp.cpp.
References getTopoShapePtr().
Referenced by _repr().
int TopoShapeShellPy::setCustomAttributes | ( | const char * | attr, | |
PyObject * | obj | |||
) |
setter for special attributes (e.g. dynamic ones)
Reimplemented from Part::TopoShapePy.
Definition at line 199 of file TopoShapeShellPyImp.cpp.
Referenced by _setattr().
callback for the add() method
Definition at line 108 of file TopoShapeShellPy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * TopoShapeShellPy::staticCallback_getBadEdges | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the getBadEdges() method
Definition at line 260 of file TopoShapeShellPy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * TopoShapeShellPy::staticCallback_getFreeEdges | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the getFreeEdges() method
Definition at line 184 of file TopoShapeShellPy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * TopoShapeShellPy::staticCallback_makeHalfSpace | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the makeHalfSpace() method
Definition at line 336 of file TopoShapeShellPy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyGetSetDef TopoShapeShellPy::GetterSetter [static] |
{ {NULL, NULL, NULL, NULL, NULL} }
Attribute structure of TopoShapeShellPy.
Reimplemented from Part::TopoShapePy.
Definition at line 25 of file TopoShapeShellPy.h.
PyMethodDef TopoShapeShellPy::Methods [static] |
{ {"add", (PyCFunction) staticCallback_add, METH_VARARGS, "Add a face to the shell." }, {"getFreeEdges", (PyCFunction) staticCallback_getFreeEdges, METH_VARARGS, "Get free edges as compound." }, {"getBadEdges", (PyCFunction) staticCallback_getBadEdges, METH_VARARGS, "Get bad edges as compound." }, {"makeHalfSpace", (PyCFunction) staticCallback_makeHalfSpace, METH_VARARGS, "Make a half-space solid by this shell and a reference point." }, {NULL, NULL, 0, NULL} }
Methods structure of TopoShapeShellPy.
Reimplemented from Part::TopoShapePy.
Definition at line 24 of file TopoShapeShellPy.h.
Referenced by _getattr().
PyParentObject TopoShapeShellPy::Parents = { PARENTSPartTopoShapeShellPy } [static] |
Reimplemented from Part::TopoShapePy.
Definition at line 26 of file TopoShapeShellPy.h.
PyTypeObject TopoShapeShellPy::Type [static] |
Type structure of TopoShapeShellPy.
Reimplemented from Part::TopoShapePy.
Definition at line 23 of file TopoShapeShellPy.h.
Referenced by initPart().