The python export class for TopoShape. More...
#include <TopoShapeEdgePy.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) | |
TopoShapeEdgePy (TopoShape *pcObject, PyTypeObject *T=&Type) | |
~TopoShapeEdgePy () | |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of TopoShapeEdgePy. | |
static PyMethodDef | Methods [] |
Methods structure of TopoShapeEdgePy. | |
static PyParentObject | Parents [] = { PARENTSPartTopoShapeEdgePy } |
static PyTypeObject | Type |
Type structure of TopoShapeEdgePy. | |
callbacks and implementers for the python object methods | |
| |
PyObject * | centerOfCurvatureAt (PyObject *args) |
implementer for the centerOfCurvatureAt() method | |
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 * | derivative3At (PyObject *args) |
implementer for the derivative3At() 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_centerOfCurvatureAt (PyObject *self, PyObject *args) |
callback for the centerOfCurvatureAt() 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_derivative3At (PyObject *self, PyObject *args) |
callback for the derivative3At() 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::Boolean | getClosed (void) const |
getter for the Closed attribute | |
Py::Object | getCurve (void) const |
getter for the Curve attribute | |
Py::Boolean | getDegenerated (void) const |
getter for the Degenerated attribute | |
Py::Float | getLength (void) const |
getter for the Length attribute | |
Py::Tuple | getParameterRange (void) const |
getter for the ParameterRange attribute | |
static PyObject * | staticCallback_getCenterOfMass (PyObject *self, void *closure) |
getter callback for the CenterOfMass attribute | |
static PyObject * | staticCallback_getClosed (PyObject *self, void *closure) |
getter callback for the Closed attribute | |
static PyObject * | staticCallback_getCurve (PyObject *self, void *closure) |
getter callback for the Curve attribute | |
static PyObject * | staticCallback_getDegenerated (PyObject *self, void *closure) |
getter callback for the Degenerated attribute | |
static PyObject * | staticCallback_getLength (PyObject *self, void *closure) |
getter callback for the Length attribute | |
static PyObject * | staticCallback_getParameterRange (PyObject *self, void *closure) |
getter callback for the ParameterRange attribute | |
static int | staticCallback_setCenterOfMass (PyObject *self, PyObject *value, void *closure) |
setter callback for the CenterOfMass attribute | |
static int | staticCallback_setClosed (PyObject *self, PyObject *value, void *closure) |
setter callback for the Closed attribute | |
static int | staticCallback_setCurve (PyObject *self, PyObject *value, void *closure) |
setter callback for the Curve attribute | |
static int | staticCallback_setDegenerated (PyObject *self, PyObject *value, void *closure) |
setter callback for the Degenerated attribute | |
static int | staticCallback_setLength (PyObject *self, PyObject *value, void *closure) |
setter callback for the Length attribute | |
static int | staticCallback_setParameterRange (PyObject *self, PyObject *value, void *closure) |
setter callback for the ParameterRange attribute |
The python export class for TopoShape.
Definition at line 20 of file TopoShapeEdgePy.h.
Reimplemented from Part::TopoShapePy.
Definition at line 36 of file TopoShapeEdgePy.h.
Definition at line 1052 of file TopoShapeEdgePy.cpp.
Referenced by PyMake().
TopoShapeEdgePy::~TopoShapeEdgePy | ( | ) |
Definition at line 1061 of file TopoShapeEdgePy.cpp.
PyObject * TopoShapeEdgePy::_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 1076 of file TopoShapeEdgePy.cpp.
References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().
PyObject * TopoShapeEdgePy::_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 1068 of file TopoShapeEdgePy.cpp.
References representation().
int TopoShapeEdgePy::_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 1144 of file TopoShapeEdgePy.cpp.
References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().
implementer for the centerOfCurvatureAt() method
Definition at line 278 of file TopoShapeEdgePyImp.cpp.
References getTopoShapePtr(), and Base::Length.
implementer for the curvatureAt() method
Definition at line 248 of file TopoShapeEdgePyImp.cpp.
References getTopoShapePtr(), Base::Length, and Py::new_reference_to().
implementer for the derivative1At() method
Definition at line 309 of file TopoShapeEdgePyImp.cpp.
References getTopoShapePtr(), and Base::Length.
implementer for the derivative2At() method
Definition at line 339 of file TopoShapeEdgePyImp.cpp.
References getTopoShapePtr(), and Base::Length.
implementer for the derivative3At() method
Definition at line 369 of file TopoShapeEdgePyImp.cpp.
References getTopoShapePtr(), and Base::Length.
Py::Object TopoShapeEdgePy::getCenterOfMass | ( | void | ) | const |
getter for the CenterOfMass attribute
Definition at line 500 of file TopoShapeEdgePyImp.cpp.
References getTopoShapePtr().
Referenced by staticCallback_getCenterOfMass().
Py::Boolean TopoShapeEdgePy::getClosed | ( | void | ) | const |
getter for the Closed attribute
Definition at line 508 of file TopoShapeEdgePyImp.cpp.
References getTopoShapePtr().
Referenced by staticCallback_getClosed().
Py::Object TopoShapeEdgePy::getCurve | ( | void | ) | const |
getter for the Curve attribute
Definition at line 419 of file TopoShapeEdgePyImp.cpp.
References getTopoShapePtr(), Part::GeomParabola::handle(), Part::GeomHyperbola::handle(), Part::GeomEllipse::handle(), Part::GeomCircle::handle(), and Part::GeomLineSegment::handle().
Referenced by staticCallback_getCurve().
PyObject * TopoShapeEdgePy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
Reimplemented from Part::TopoShapePy.
Definition at line 520 of file TopoShapeEdgePyImp.cpp.
Referenced by _getattr().
Py::Boolean TopoShapeEdgePy::getDegenerated | ( | void | ) | const |
getter for the Degenerated attribute
Definition at line 514 of file TopoShapeEdgePyImp.cpp.
References getTopoShapePtr().
Referenced by staticCallback_getDegenerated().
Py::Float TopoShapeEdgePy::getLength | ( | void | ) | const |
getter for the Length attribute
Reimplemented from Part::TopoShapePy.
Definition at line 412 of file TopoShapeEdgePyImp.cpp.
References getTopoShapePtr(), and Base::Length.
Referenced by staticCallback_getLength().
Py::Tuple TopoShapeEdgePy::getParameterRange | ( | void | ) | const |
getter for the ParameterRange attribute
Definition at line 487 of file TopoShapeEdgePyImp.cpp.
References getTopoShapePtr(), Py::Tuple::setItem(), and RobotExample::t.
Referenced by staticCallback_getParameterRange().
virtual PyParentObject* Part::TopoShapeEdgePy::GetParents | ( | void | ) | [inline, virtual] |
Reimplemented from Part::TopoShapePy.
Definition at line 28 of file TopoShapeEdgePy.h.
TopoShape * TopoShapeEdgePy::getTopoShapePtr | ( | void | ) | const |
getter for the object handled by this class
Reimplemented from Part::TopoShapePy.
Definition at line 1203 of file TopoShapeEdgePy.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Referenced by centerOfCurvatureAt(), curvatureAt(), derivative1At(), derivative2At(), derivative3At(), getCenterOfMass(), getClosed(), getCurve(), getDegenerated(), getLength(), getParameterRange(), normalAt(), PyInit(), representation(), setTolerance(), tangentAt(), and valueAt().
virtual PyTypeObject* Part::TopoShapeEdgePy::GetType | ( | void | ) | [inline, virtual] |
Reimplemented from Part::TopoShapePy.
Definition at line 27 of file TopoShapeEdgePy.h.
implementer for the normalAt() method
Definition at line 217 of file TopoShapeEdgePyImp.cpp.
References getTopoShapePtr(), and Base::Length.
PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).
Reimplemented from Part::TopoShapePy.
Definition at line 94 of file TopoShapeEdgePyImp.cpp.
References Part::TopoShape::_Shape, getTopoShapePtr(), Part::Geometry::handle(), Part::TopoShapeVertexPy::Type, Part::TopoShapePy::Type, Part::GeometryPy::Type, and draftlibs::fcgeo::v1().
Reimplemented from Part::TopoShapePy.
Definition at line 87 of file TopoShapeEdgePyImp.cpp.
References TopoShapeEdgePy().
std::string TopoShapeEdgePy::representation | ( | void | ) | const |
Reimplemented from Part::TopoShapePy.
Definition at line 79 of file TopoShapeEdgePyImp.cpp.
References getTopoShapePtr().
Referenced by _repr().
int TopoShapeEdgePy::setCustomAttributes | ( | const char * | attr, | |
PyObject * | obj | |||
) |
setter for special attributes (e.g. dynamic ones)
Reimplemented from Part::TopoShapePy.
Definition at line 525 of file TopoShapeEdgePyImp.cpp.
Referenced by _setattr().
implementer for the setTolerance() method
Definition at line 399 of file TopoShapeEdgePyImp.cpp.
References getTopoShapePtr(), and Py_Return.
PyObject * TopoShapeEdgePy::staticCallback_centerOfCurvatureAt | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the centerOfCurvatureAt() method
Definition at line 701 of file TopoShapeEdgePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * TopoShapeEdgePy::staticCallback_curvatureAt | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the curvatureAt() method
Definition at line 625 of file TopoShapeEdgePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * TopoShapeEdgePy::staticCallback_derivative1At | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the derivative1At() method
Definition at line 397 of file TopoShapeEdgePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * TopoShapeEdgePy::staticCallback_derivative2At | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the derivative2At() method
Definition at line 473 of file TopoShapeEdgePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * TopoShapeEdgePy::staticCallback_derivative3At | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the derivative3At() method
Definition at line 549 of file TopoShapeEdgePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * TopoShapeEdgePy::staticCallback_getCenterOfMass | ( | PyObject * | self, | |
void * | closure | |||
) | [static] |
getter callback for the CenterOfMass attribute
Definition at line 949 of file TopoShapeEdgePy.cpp.
References getCenterOfMass(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Closed attribute
Definition at line 981 of file TopoShapeEdgePy.cpp.
References getClosed(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Curve attribute
Definition at line 917 of file TopoShapeEdgePy.cpp.
References getCurve(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
PyObject * TopoShapeEdgePy::staticCallback_getDegenerated | ( | PyObject * | self, | |
void * | closure | |||
) | [static] |
getter callback for the Degenerated attribute
Definition at line 1013 of file TopoShapeEdgePy.cpp.
References getDegenerated(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Length attribute
Reimplemented from Part::TopoShapePy.
Definition at line 853 of file TopoShapeEdgePy.cpp.
References getLength(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
PyObject * TopoShapeEdgePy::staticCallback_getParameterRange | ( | PyObject * | self, | |
void * | closure | |||
) | [static] |
getter callback for the ParameterRange attribute
Definition at line 885 of file TopoShapeEdgePy.cpp.
References getParameterRange(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
callback for the normalAt() method
Definition at line 321 of file TopoShapeEdgePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
int TopoShapeEdgePy::staticCallback_setCenterOfMass | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the CenterOfMass attribute
Definition at line 967 of file TopoShapeEdgePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int TopoShapeEdgePy::staticCallback_setClosed | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Closed attribute
Definition at line 999 of file TopoShapeEdgePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int TopoShapeEdgePy::staticCallback_setCurve | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Curve attribute
Definition at line 935 of file TopoShapeEdgePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int TopoShapeEdgePy::staticCallback_setDegenerated | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Degenerated attribute
Definition at line 1031 of file TopoShapeEdgePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int TopoShapeEdgePy::staticCallback_setLength | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Length attribute
Reimplemented from Part::TopoShapePy.
Definition at line 871 of file TopoShapeEdgePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int TopoShapeEdgePy::staticCallback_setParameterRange | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the ParameterRange attribute
Definition at line 903 of file TopoShapeEdgePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
PyObject * TopoShapeEdgePy::staticCallback_setTolerance | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the setTolerance() method
Definition at line 777 of file TopoShapeEdgePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
callback for the tangentAt() method
Definition at line 169 of file TopoShapeEdgePy.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 245 of file TopoShapeEdgePy.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 187 of file TopoShapeEdgePyImp.cpp.
References getTopoShapePtr(), and Base::Length.
implementer for the valueAt() method
Definition at line 162 of file TopoShapeEdgePyImp.cpp.
References getTopoShapePtr(), and Base::Length.
PyGetSetDef TopoShapeEdgePy::GetterSetter [static] |
Attribute structure of TopoShapeEdgePy.
Reimplemented from Part::TopoShapePy.
Definition at line 25 of file TopoShapeEdgePy.h.
PyMethodDef TopoShapeEdgePy::Methods [static] |
Methods structure of TopoShapeEdgePy.
Reimplemented from Part::TopoShapePy.
Definition at line 24 of file TopoShapeEdgePy.h.
Referenced by _getattr().
PyParentObject TopoShapeEdgePy::Parents = { PARENTSPartTopoShapeEdgePy } [static] |
Reimplemented from Part::TopoShapePy.
Definition at line 26 of file TopoShapeEdgePy.h.
PyTypeObject TopoShapeEdgePy::Type [static] |
Type structure of TopoShapeEdgePy.
Reimplemented from Part::TopoShapePy.
Definition at line 23 of file TopoShapeEdgePy.h.
Referenced by initPart(), and makeFilledFace().