The python export class for TopoShape. More...
#include <TopoShapeFacePy.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) | |
TopoShapeFacePy (TopoShape *pcObject, PyTypeObject *T=&Type) | |
~TopoShapeFacePy () | |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of TopoShapeFacePy. | |
static PyMethodDef | Methods [] |
Methods structure of TopoShapeFacePy. | |
static PyParentObject | Parents [] = { PARENTSPartTopoShapeFacePy } |
static PyTypeObject | Type |
Type structure of TopoShapeFacePy. | |
callbacks and implementers for the python object methods | |
| |
PyObject * | curvatureAt (PyObject *args) |
implementer for the curvatureAt() method | |
PyObject * | derivative1At (PyObject *args) |
implementer for the derivative1At() method | |
PyObject * | derivative2At (PyObject *args) |
implementer for the derivative2At() method | |
PyObject * | isPartOfDomain (PyObject *args) |
implementer for the isPartOfDomain() method | |
PyObject * | makeHalfSpace (PyObject *args) |
implementer for the makeHalfSpace() method | |
PyObject * | makeOffset (PyObject *args) |
implementer for the makeOffset() method | |
PyObject * | normalAt (PyObject *args) |
implementer for the normalAt() method | |
PyObject * | setTolerance (PyObject *args) |
implementer for the setTolerance() method | |
PyObject * | tangentAt (PyObject *args) |
implementer for the tangentAt() method | |
PyObject * | valueAt (PyObject *args) |
implementer for the valueAt() method | |
static PyObject * | staticCallback_curvatureAt (PyObject *self, PyObject *args) |
callback for the curvatureAt() method | |
static PyObject * | staticCallback_derivative1At (PyObject *self, PyObject *args) |
callback for the derivative1At() method | |
static PyObject * | staticCallback_derivative2At (PyObject *self, PyObject *args) |
callback for the derivative2At() method | |
static PyObject * | staticCallback_isPartOfDomain (PyObject *self, PyObject *args) |
callback for the isPartOfDomain() method | |
static PyObject * | staticCallback_makeHalfSpace (PyObject *self, PyObject *args) |
callback for the makeHalfSpace() method | |
static PyObject * | staticCallback_makeOffset (PyObject *self, PyObject *args) |
callback for the makeOffset() method | |
static PyObject * | staticCallback_normalAt (PyObject *self, PyObject *args) |
callback for the normalAt() method | |
static PyObject * | staticCallback_setTolerance (PyObject *self, PyObject *args) |
callback for the setTolerance() method | |
static PyObject * | staticCallback_tangentAt (PyObject *self, PyObject *args) |
callback for the tangentAt() method | |
static PyObject * | staticCallback_valueAt (PyObject *self, PyObject *args) |
callback for the valueAt() method | |
callbacks and implementers for the python object attributes | |
| |
Py::Object | getCenterOfMass (void) const |
getter for the CenterOfMass attribute | |
Py::Tuple | getParameterRange (void) const |
getter for the ParameterRange attribute | |
Py::Object | getSurface (void) const |
getter for the Surface attribute | |
Py::Object | getWire (void) const |
getter for the Wire attribute | |
static PyObject * | staticCallback_getCenterOfMass (PyObject *self, void *closure) |
getter callback for the CenterOfMass attribute | |
static PyObject * | staticCallback_getParameterRange (PyObject *self, void *closure) |
getter callback for the ParameterRange attribute | |
static PyObject * | staticCallback_getSurface (PyObject *self, void *closure) |
getter callback for the Surface attribute | |
static PyObject * | staticCallback_getWire (PyObject *self, void *closure) |
getter callback for the Wire attribute | |
static int | staticCallback_setCenterOfMass (PyObject *self, PyObject *value, void *closure) |
setter callback for the CenterOfMass attribute | |
static int | staticCallback_setParameterRange (PyObject *self, PyObject *value, void *closure) |
setter callback for the ParameterRange attribute | |
static int | staticCallback_setSurface (PyObject *self, PyObject *value, void *closure) |
setter callback for the Surface attribute | |
static int | staticCallback_setWire (PyObject *self, PyObject *value, void *closure) |
setter callback for the Wire attribute |
The python export class for TopoShape.
Definition at line 20 of file TopoShapeFacePy.h.
Reimplemented from Part::TopoShapePy.
Definition at line 36 of file TopoShapeFacePy.h.
Definition at line 1057 of file TopoShapeFacePy.cpp.
Referenced by PyMake().
TopoShapeFacePy::~TopoShapeFacePy | ( | ) |
Definition at line 1066 of file TopoShapeFacePy.cpp.
PyObject * TopoShapeFacePy::_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 1081 of file TopoShapeFacePy.cpp.
References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().
PyObject * TopoShapeFacePy::_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 1073 of file TopoShapeFacePy.cpp.
References representation().
int TopoShapeFacePy::_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 1149 of file TopoShapeFacePy.cpp.
References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().
implementer for the curvatureAt() method
Definition at line 290 of file TopoShapeFacePyImp.cpp.
References SketcherExample::f, getTopoShapePtr(), Py::new_reference_to(), and Py::Tuple::setItem().
implementer for the derivative1At() method
Definition at line 313 of file TopoShapeFacePyImp.cpp.
References SketcherExample::f, getTopoShapePtr(), Py::new_reference_to(), and Py::Tuple::setItem().
implementer for the derivative2At() method
Definition at line 338 of file TopoShapeFacePyImp.cpp.
References SketcherExample::f, getTopoShapePtr(), Py::new_reference_to(), and Py::Tuple::setItem().
Py::Object TopoShapeFacePy::getCenterOfMass | ( | void | ) | const |
getter for the CenterOfMass attribute
Definition at line 547 of file TopoShapeFacePyImp.cpp.
References getTopoShapePtr().
Referenced by staticCallback_getCenterOfMass().
PyObject * TopoShapeFacePy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
Reimplemented from Part::TopoShapePy.
Definition at line 555 of file TopoShapeFacePyImp.cpp.
Referenced by _getattr().
Py::Tuple TopoShapeFacePy::getParameterRange | ( | void | ) | const |
getter for the ParameterRange attribute
Definition at line 516 of file TopoShapeFacePyImp.cpp.
References SketcherExample::f, getTopoShapePtr(), Py::Tuple::setItem(), RobotExample::t, and draftlibs::fcgeo::v1().
Referenced by staticCallback_getParameterRange().
virtual PyParentObject* Part::TopoShapeFacePy::GetParents | ( | void | ) | [inline, virtual] |
Reimplemented from Part::TopoShapePy.
Definition at line 28 of file TopoShapeFacePy.h.
Py::Object TopoShapeFacePy::getSurface | ( | void | ) | const |
getter for the Surface attribute
Definition at line 426 of file TopoShapeFacePyImp.cpp.
References Mesh2Shape::ext, SketcherExample::f, getTopoShapePtr(), Part::GeomToroid::handle(), Part::GeomSphere::handle(), Part::GeomCone::handle(), Part::GeomCylinder::handle(), Part::GeomPlane::handle(), and draftTools::plane.
Referenced by staticCallback_getSurface().
TopoShape * TopoShapeFacePy::getTopoShapePtr | ( | void | ) | const |
getter for the object handled by this class
Reimplemented from Part::TopoShapePy.
Definition at line 1208 of file TopoShapeFacePy.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Referenced by curvatureAt(), derivative1At(), derivative2At(), getCenterOfMass(), getParameterRange(), getSurface(), getWire(), isPartOfDomain(), makeHalfSpace(), makeOffset(), normalAt(), PyInit(), representation(), setTolerance(), tangentAt(), and valueAt().
virtual PyTypeObject* Part::TopoShapeFacePy::GetType | ( | void | ) | [inline, virtual] |
Reimplemented from Part::TopoShapePy.
Definition at line 27 of file TopoShapeFacePy.h.
Py::Object TopoShapeFacePy::getWire | ( | void | ) | const |
getter for the Wire attribute
Definition at line 533 of file TopoShapeFacePyImp.cpp.
References Part::TopoShape::_Shape, and getTopoShapePtr().
Referenced by staticCallback_getWire().
implementer for the isPartOfDomain() method
Definition at line 363 of file TopoShapeFacePyImp.cpp.
References getTopoShapePtr().
implementer for the makeHalfSpace() method
Definition at line 397 of file TopoShapeFacePyImp.cpp.
References getTopoShapePtr(), Base::VectorPy::Type, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
implementer for the makeOffset() method
Definition at line 209 of file TopoShapeFacePyImp.cpp.
References draftlibs::fcvec::dist(), SketcherExample::f, getTopoShapePtr(), and Part::TopoShapePy::TopoShapePy().
implementer for the normalAt() method
Definition at line 236 of file TopoShapeFacePyImp.cpp.
References SketcherExample::f, getTopoShapePtr(), and draftlibs::fcgeo::vec().
PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).
Reimplemented from Part::TopoShapePy.
Definition at line 99 of file TopoShapeFacePyImp.cpp.
References Part::TopoShape::_Shape, Py::SeqBase< T >::begin(), Py::SeqBase< T >::end(), getTopoShapePtr(), StartPage::StartPage::handle(), Part::GeometryPy::Type, Part::TopoShapePy::Type, and Mesh2Shape::wires.
Reimplemented from Part::TopoShapePy.
Definition at line 92 of file TopoShapeFacePyImp.cpp.
References TopoShapeFacePy().
std::string TopoShapeFacePy::representation | ( | void | ) | const |
Reimplemented from Part::TopoShapePy.
Definition at line 84 of file TopoShapeFacePyImp.cpp.
References getTopoShapePtr().
Referenced by _repr().
int TopoShapeFacePy::setCustomAttributes | ( | const char * | attr, | |
PyObject * | obj | |||
) |
setter for special attributes (e.g. dynamic ones)
Reimplemented from Part::TopoShapePy.
Definition at line 560 of file TopoShapeFacePyImp.cpp.
Referenced by _setattr().
implementer for the setTolerance() method
Definition at line 415 of file TopoShapeFacePyImp.cpp.
References SketcherExample::f, getTopoShapePtr(), and Py_Return.
PyObject * TopoShapeFacePy::staticCallback_curvatureAt | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the curvatureAt() method
Definition at line 618 of file TopoShapeFacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * TopoShapeFacePy::staticCallback_derivative1At | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the derivative1At() method
Definition at line 466 of file TopoShapeFacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * TopoShapeFacePy::staticCallback_derivative2At | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the derivative2At() method
Definition at line 542 of file TopoShapeFacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * TopoShapeFacePy::staticCallback_getCenterOfMass | ( | PyObject * | self, | |
void * | closure | |||
) | [static] |
getter callback for the CenterOfMass attribute
Definition at line 1018 of file TopoShapeFacePy.cpp.
References getCenterOfMass(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
PyObject * TopoShapeFacePy::staticCallback_getParameterRange | ( | PyObject * | self, | |
void * | closure | |||
) | [static] |
getter callback for the ParameterRange attribute
Definition at line 922 of file TopoShapeFacePy.cpp.
References getParameterRange(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Surface attribute
Definition at line 954 of file TopoShapeFacePy.cpp.
References getSurface(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Wire attribute
Definition at line 986 of file TopoShapeFacePy.cpp.
References getWire(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
PyObject * TopoShapeFacePy::staticCallback_isPartOfDomain | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the isPartOfDomain() method
Definition at line 694 of file TopoShapeFacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * TopoShapeFacePy::staticCallback_makeHalfSpace | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the makeHalfSpace() method
Definition at line 770 of file TopoShapeFacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
callback for the makeOffset() method
Definition at line 162 of file TopoShapeFacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
callback for the normalAt() method
Definition at line 390 of file TopoShapeFacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
int TopoShapeFacePy::staticCallback_setCenterOfMass | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the CenterOfMass attribute
Definition at line 1036 of file TopoShapeFacePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int TopoShapeFacePy::staticCallback_setParameterRange | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the ParameterRange attribute
Definition at line 940 of file TopoShapeFacePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int TopoShapeFacePy::staticCallback_setSurface | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Surface attribute
Definition at line 972 of file TopoShapeFacePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
PyObject * TopoShapeFacePy::staticCallback_setTolerance | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the setTolerance() method
Definition at line 846 of file TopoShapeFacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
int TopoShapeFacePy::staticCallback_setWire | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Wire attribute
Definition at line 1004 of file TopoShapeFacePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
callback for the tangentAt() method
Definition at line 238 of file TopoShapeFacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
callback for the valueAt() method
Definition at line 314 of file TopoShapeFacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
implementer for the tangentAt() method
Definition at line 258 of file TopoShapeFacePyImp.cpp.
References SketcherExample::f, getTopoShapePtr(), Py::new_reference_to(), and Py::Tuple::setItem().
implementer for the valueAt() method
Definition at line 222 of file TopoShapeFacePyImp.cpp.
References SketcherExample::f, and getTopoShapePtr().
PyGetSetDef TopoShapeFacePy::GetterSetter [static] |
{ {"ParameterRange", (getter) staticCallback_getParameterRange, (setter) staticCallback_setParameterRange, "Returns a 4 tuple with the parameter range", NULL }, {"Surface", (getter) staticCallback_getSurface, (setter) staticCallback_setSurface, "Returns the geometric surface of the face", NULL }, {"Wire", (getter) staticCallback_getWire, (setter) staticCallback_setWire, "The Wire of this face", NULL }, {"CenterOfMass", (getter) staticCallback_getCenterOfMass, (setter) staticCallback_setCenterOfMass, "\n Returns the center of mass of the current system.\n If the gravitational field is uniform, it is the center of gravity.\n The coordinates returned for the center of mass are expressed in the\n absolute Cartesian coordinate system.\n ", NULL }, {NULL, NULL, NULL, NULL, NULL} }
Attribute structure of TopoShapeFacePy.
Reimplemented from Part::TopoShapePy.
Definition at line 25 of file TopoShapeFacePy.h.
PyMethodDef TopoShapeFacePy::Methods [static] |
Methods structure of TopoShapeFacePy.
Reimplemented from Part::TopoShapePy.
Definition at line 24 of file TopoShapeFacePy.h.
Referenced by _getattr().
PyParentObject TopoShapeFacePy::Parents = { PARENTSPartTopoShapeFacePy } [static] |
Reimplemented from Part::TopoShapePy.
Definition at line 26 of file TopoShapeFacePy.h.
PyTypeObject TopoShapeFacePy::Type [static] |
Type structure of TopoShapeFacePy.
Reimplemented from Part::TopoShapePy.
Definition at line 23 of file TopoShapeFacePy.h.
Referenced by Part::TopoShapeShellPy::add(), initPart(), makeShell(), and Part::TopoShapeShellPy::PyInit().