The python export class for GeomCurve. More...
#include <GeometryCurvePy.h>
Public Types | |
typedef GeomCurve * | 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. | |
GeometryCurvePy (GeomCurve *pcObject, PyTypeObject *T=&Type) | |
PyObject * | getCustomAttributes (const char *attr) const |
getter method for special attributes (e.g. dynamic ones) | |
GeomCurve * | getGeomCurvePtr (void) const |
getter for the object handled by this class | |
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) | |
~GeometryCurvePy () | |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of GeometryCurvePy. | |
static PyMethodDef | Methods [] |
Methods structure of GeometryCurvePy. | |
static PyParentObject | Parents [] = { PARENTSPartGeometryCurvePy } |
static PyTypeObject | Type |
Type structure of GeometryCurvePy. | |
callbacks and implementers for the python object methods | |
| |
PyObject * | discretize (PyObject *args) |
implementer for the discretize() method | |
PyObject * | makeRuledSurface (PyObject *args) |
implementer for the makeRuledSurface() method | |
PyObject * | parameter (PyObject *args) |
implementer for the parameter() method | |
PyObject * | tangent (PyObject *args) |
implementer for the tangent() method | |
PyObject * | toShape (PyObject *args) |
implementer for the toShape() method | |
PyObject * | value (PyObject *args) |
implementer for the value() method | |
static PyObject * | staticCallback_discretize (PyObject *self, PyObject *args) |
callback for the discretize() method | |
static PyObject * | staticCallback_makeRuledSurface (PyObject *self, PyObject *args) |
callback for the makeRuledSurface() method | |
static PyObject * | staticCallback_parameter (PyObject *self, PyObject *args) |
callback for the parameter() method | |
static PyObject * | staticCallback_tangent (PyObject *self, PyObject *args) |
callback for the tangent() method | |
static PyObject * | staticCallback_toShape (PyObject *self, PyObject *args) |
callback for the toShape() method | |
static PyObject * | staticCallback_value (PyObject *self, PyObject *args) |
callback for the value() method | |
callbacks and implementers for the python object attributes | |
| |
Py::Float | getFirstParameter (void) const |
getter for the FirstParameter attribute | |
Py::Float | getLastParameter (void) const |
getter for the LastParameter attribute | |
static PyObject * | staticCallback_getFirstParameter (PyObject *self, void *closure) |
getter callback for the FirstParameter attribute | |
static PyObject * | staticCallback_getLastParameter (PyObject *self, void *closure) |
getter callback for the LastParameter attribute | |
static int | staticCallback_setFirstParameter (PyObject *self, PyObject *value, void *closure) |
setter callback for the FirstParameter attribute | |
static int | staticCallback_setLastParameter (PyObject *self, PyObject *value, void *closure) |
setter callback for the LastParameter attribute |
The python export class for GeomCurve.
Definition at line 20 of file GeometryCurvePy.h.
Reimplemented from Part::GeometryPy.
Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.
Definition at line 36 of file GeometryCurvePy.h.
Definition at line 652 of file GeometryCurvePy.cpp.
GeometryCurvePy::~GeometryCurvePy | ( | ) |
Definition at line 661 of file GeometryCurvePy.cpp.
PyObject * GeometryCurvePy::_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::GeometryPy.
Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.
Definition at line 676 of file GeometryCurvePy.cpp.
References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().
PyObject * GeometryCurvePy::_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::GeometryPy.
Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.
Definition at line 668 of file GeometryCurvePy.cpp.
References representation().
int GeometryCurvePy::_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::GeometryPy.
Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.
Definition at line 744 of file GeometryCurvePy.cpp.
References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().
implementer for the discretize() method
Definition at line 104 of file GeometryCurvePyImp.cpp.
References Py::List::append(), Part::GeometryPy::getGeometryPtr(), Part::Geometry::handle(), Py::new_reference_to(), and draftTools::p.
PyObject * GeometryCurvePy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometryPy.
Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.
Definition at line 276 of file GeometryCurvePyImp.cpp.
Referenced by _getattr().
Py::Float GeometryCurvePy::getFirstParameter | ( | void | ) | const |
getter for the FirstParameter attribute
Definition at line 264 of file GeometryCurvePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getFirstParameter().
GeomCurve * GeometryCurvePy::getGeomCurvePtr | ( | void | ) | const |
getter for the object handled by this class
Definition at line 803 of file GeometryCurvePy.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Py::Float GeometryCurvePy::getLastParameter | ( | void | ) | const |
getter for the LastParameter attribute
Definition at line 270 of file GeometryCurvePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getLastParameter().
virtual PyParentObject* Part::GeometryCurvePy::GetParents | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometryPy.
Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.
Definition at line 28 of file GeometryCurvePy.h.
virtual PyTypeObject* Part::GeometryCurvePy::GetType | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometryPy.
Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.
Definition at line 27 of file GeometryCurvePy.h.
implementer for the makeRuledSurface() method
Definition at line 222 of file GeometryCurvePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), Part::Geometry::handle(), StartPage::StartPage::handle(), and Type.
implementer for the parameter() method
Definition at line 196 of file GeometryCurvePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), Part::Geometry::handle(), Py::new_reference_to(), draftTools::p, 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::GeometryPy.
Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.
Definition at line 73 of file GeometryCurvePyImp.cpp.
Reimplemented from Part::GeometryPy.
Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.
Definition at line 64 of file GeometryCurvePyImp.cpp.
std::string GeometryCurvePy::representation | ( | void | ) | const |
Reimplemented from Part::GeometryPy.
Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.
Definition at line 59 of file GeometryCurvePyImp.cpp.
Referenced by _repr().
int GeometryCurvePy::setCustomAttributes | ( | const char * | attr, | |
PyObject * | obj | |||
) |
setter for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometryPy.
Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.
Definition at line 281 of file GeometryCurvePyImp.cpp.
Referenced by _setattr().
callback for the discretize() method
Definition at line 201 of file GeometryCurvePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * GeometryCurvePy::staticCallback_getFirstParameter | ( | PyObject * | self, | |
void * | closure | |||
) | [static] |
getter callback for the FirstParameter attribute
Definition at line 581 of file GeometryCurvePy.cpp.
References getFirstParameter(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
PyObject * GeometryCurvePy::staticCallback_getLastParameter | ( | PyObject * | self, | |
void * | closure | |||
) | [static] |
getter callback for the LastParameter attribute
Definition at line 613 of file GeometryCurvePy.cpp.
References getLastParameter(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
PyObject * GeometryCurvePy::staticCallback_makeRuledSurface | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the makeRuledSurface() method
Definition at line 429 of file GeometryCurvePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
callback for the parameter() method
Definition at line 505 of file GeometryCurvePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
int GeometryCurvePy::staticCallback_setFirstParameter | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the FirstParameter attribute
Definition at line 599 of file GeometryCurvePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int GeometryCurvePy::staticCallback_setLastParameter | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the LastParameter attribute
Definition at line 631 of file GeometryCurvePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
callback for the tangent() method
Definition at line 353 of file GeometryCurvePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
callback for the toShape() method
Definition at line 132 of file GeometryCurvePy.cpp.
References Base::Console(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
callback for the value() method
Definition at line 277 of file GeometryCurvePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
implementer for the tangent() method
Definition at line 166 of file GeometryCurvePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), Part::Geometry::handle(), Py::new_reference_to(), and Py::Tuple::setItem().
implementer for the toShape() method
Definition at line 78 of file GeometryCurvePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), and Part::Geometry::handle().
implementer for the value() method
Definition at line 143 of file GeometryCurvePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), Part::Geometry::handle(), and draftTools::p.
Referenced by Part::BezierCurvePy::insertPoleAfter(), Part::BezierCurvePy::insertPoleBefore(), Part::BSplineCurvePy::movePoint(), Part::OffsetCurvePy::PyInit(), Part::LinePy::PyInit(), Part::HyperbolaPy::PyInit(), Part::EllipsePy::PyInit(), Part::CirclePy::PyInit(), Part::ArcPy::PyInit(), Part::ArcOfCirclePy::PyInit(), Part::ParabolaPy::setAxis(), Part::HyperbolaPy::setAxis(), Part::EllipsePy::setAxis(), Part::CirclePy::setAxis(), Part::ArcOfCirclePy::setAxis(), Part::EllipsePy::setCenter(), Part::CirclePy::setCenter(), Part::ArcOfCirclePy::setCenter(), Part::LinePy::setEndPoint(), Part::ParabolaPy::setLocation(), Part::HyperbolaPy::setLocation(), Part::OffsetCurvePy::setOffsetDirection(), Part::BSplineCurvePy::setPole(), Part::BezierCurvePy::setPole(), and Part::LinePy::setStartPoint().
PyGetSetDef GeometryCurvePy::GetterSetter [static] |
{ {"FirstParameter", (getter) staticCallback_getFirstParameter, (setter) staticCallback_setFirstParameter, "\n Returns the value of the first parameter.\n ", NULL }, {"LastParameter", (getter) staticCallback_getLastParameter, (setter) staticCallback_setLastParameter, "\n Returns the value of the last parameter.\n ", NULL }, {NULL, NULL, NULL, NULL, NULL} }
Attribute structure of GeometryCurvePy.
Reimplemented from Part::GeometryPy.
Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.
Definition at line 25 of file GeometryCurvePy.h.
PyMethodDef GeometryCurvePy::Methods [static] |
Methods structure of GeometryCurvePy.
Reimplemented from Part::GeometryPy.
Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.
Definition at line 24 of file GeometryCurvePy.h.
Referenced by _getattr().
PyParentObject GeometryCurvePy::Parents = { PARENTSPartGeometryCurvePy } [static] |
Reimplemented from Part::GeometryPy.
Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.
Definition at line 26 of file GeometryCurvePy.h.
PyTypeObject GeometryCurvePy::Type [static] |
Type structure of GeometryCurvePy.
Reimplemented from Part::GeometryPy.
Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.
Definition at line 23 of file GeometryCurvePy.h.
Referenced by makeLoft(), and makeRuledSurface().