The python export class for GeomOffsetCurve. More...
#include <OffsetCurvePy.h>
Public Types | |
typedef GeomOffsetCurve * | 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) | |
GeomOffsetCurve * | getGeomOffsetCurvePtr (void) const |
getter for the object handled by this class | |
virtual PyParentObject * | GetParents (void) |
virtual PyTypeObject * | GetType (void) |
OffsetCurvePy (GeomOffsetCurve *pcObject, PyTypeObject *T=&Type) | |
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) | |
~OffsetCurvePy () | |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of OffsetCurvePy. | |
static PyMethodDef | Methods [] |
Methods structure of OffsetCurvePy. | |
static PyParentObject | Parents [] = { PARENTSPartOffsetCurvePy } |
static PyTypeObject | Type |
Type structure of OffsetCurvePy. | |
callbacks and implementers for the python object attributes | |
| |
Py::Object | getBasisCurve (void) const |
getter for the BasisCurve attribute | |
Py::Object | getOffsetDirection (void) const |
getter for the OffsetDirection attribute | |
Py::Float | getOffsetValue (void) const |
getter for the OffsetValue attribute | |
void | setBasisCurve (Py::Object arg) |
setter for the BasisCurve attribute | |
void | setOffsetDirection (Py::Object arg) |
setter for the OffsetDirection attribute | |
void | setOffsetValue (Py::Float arg) |
setter for the OffsetValue attribute | |
static PyObject * | staticCallback_getBasisCurve (PyObject *self, void *closure) |
getter callback for the BasisCurve attribute | |
static PyObject * | staticCallback_getOffsetDirection (PyObject *self, void *closure) |
getter callback for the OffsetDirection attribute | |
static PyObject * | staticCallback_getOffsetValue (PyObject *self, void *closure) |
getter callback for the OffsetValue attribute | |
static int | staticCallback_setBasisCurve (PyObject *self, PyObject *value, void *closure) |
setter callback for the BasisCurve attribute | |
static int | staticCallback_setOffsetDirection (PyObject *self, PyObject *value, void *closure) |
setter callback for the OffsetDirection attribute | |
static int | staticCallback_setOffsetValue (PyObject *self, PyObject *value, void *closure) |
setter callback for the OffsetValue attribute |
The python export class for GeomOffsetCurve.
Definition at line 20 of file OffsetCurvePy.h.
Reimplemented from Part::GeometryCurvePy.
Definition at line 36 of file OffsetCurvePy.h.
OffsetCurvePy::OffsetCurvePy | ( | GeomOffsetCurve * | pcObject, | |
PyTypeObject * | T = &Type | |||
) |
Definition at line 245 of file OffsetCurvePy.cpp.
Referenced by PyMake().
OffsetCurvePy::~OffsetCurvePy | ( | ) |
Definition at line 254 of file OffsetCurvePy.cpp.
PyObject * OffsetCurvePy::_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::GeometryCurvePy.
Definition at line 269 of file OffsetCurvePy.cpp.
References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().
PyObject * OffsetCurvePy::_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::GeometryCurvePy.
Definition at line 261 of file OffsetCurvePy.cpp.
References representation().
int OffsetCurvePy::_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::GeometryCurvePy.
Definition at line 337 of file OffsetCurvePy.cpp.
References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().
Py::Object OffsetCurvePy::getBasisCurve | ( | void | ) | const |
getter for the BasisCurve attribute
Definition at line 123 of file OffsetCurvePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getBasisCurve().
PyObject * OffsetCurvePy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometryCurvePy.
Definition at line 153 of file OffsetCurvePyImp.cpp.
Referenced by _getattr().
GeomOffsetCurve * OffsetCurvePy::getGeomOffsetCurvePtr | ( | void | ) | const |
getter for the object handled by this class
Definition at line 396 of file OffsetCurvePy.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Referenced by PyInit().
Py::Object OffsetCurvePy::getOffsetDirection | ( | void | ) | const |
getter for the OffsetDirection attribute
Definition at line 96 of file OffsetCurvePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getOffsetDirection().
Py::Float OffsetCurvePy::getOffsetValue | ( | void | ) | const |
getter for the OffsetValue attribute
Definition at line 84 of file OffsetCurvePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getOffsetValue().
virtual PyParentObject* Part::OffsetCurvePy::GetParents | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometryCurvePy.
Definition at line 28 of file OffsetCurvePy.h.
virtual PyTypeObject* Part::OffsetCurvePy::GetType | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometryCurvePy.
Definition at line 27 of file OffsetCurvePy.h.
PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).
Reimplemented from Part::GeometryCurvePy.
Definition at line 52 of file OffsetCurvePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), getGeomOffsetCurvePtr(), Part::Geometry::handle(), offset(), Part::GeomOffsetCurve::setHandle(), Base::VectorPy::Type, Part::GeometryPy::Type, Part::GeometryCurvePy::value(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Reimplemented from Part::GeometryCurvePy.
Definition at line 45 of file OffsetCurvePyImp.cpp.
References OffsetCurvePy().
std::string OffsetCurvePy::representation | ( | void | ) | const |
Reimplemented from Part::GeometryCurvePy.
Definition at line 40 of file OffsetCurvePyImp.cpp.
Referenced by _repr().
void OffsetCurvePy::setBasisCurve | ( | Py::Object | arg | ) |
setter for the BasisCurve attribute
Definition at line 130 of file OffsetCurvePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), StartPage::StartPage::handle(), Part::Geometry::handle(), draftTools::p, Py::Object::ptr(), and Part::GeometryPy::Type.
int OffsetCurvePy::setCustomAttributes | ( | const char * | attr, | |
PyObject * | obj | |||
) |
setter for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometryCurvePy.
Definition at line 158 of file OffsetCurvePyImp.cpp.
Referenced by _setattr().
void OffsetCurvePy::setOffsetDirection | ( | Py::Object | arg | ) |
setter for the OffsetDirection attribute
Definition at line 103 of file OffsetCurvePyImp.cpp.
References draftlibs::dxfReader::error(), Part::GeometryPy::getGeometryPtr(), StartPage::StartPage::handle(), draftTools::p, Py::Object::ptr(), Base::VectorPy::Type, Part::GeometryCurvePy::value(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
void OffsetCurvePy::setOffsetValue | ( | Py::Float | arg | ) |
setter for the OffsetValue attribute
Definition at line 90 of file OffsetCurvePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().
getter callback for the BasisCurve attribute
Definition at line 194 of file OffsetCurvePy.cpp.
References getBasisCurve(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
PyObject * OffsetCurvePy::staticCallback_getOffsetDirection | ( | PyObject * | self, | |
void * | closure | |||
) | [static] |
getter callback for the OffsetDirection attribute
Definition at line 150 of file OffsetCurvePy.cpp.
References getOffsetDirection(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
PyObject * OffsetCurvePy::staticCallback_getOffsetValue | ( | PyObject * | self, | |
void * | closure | |||
) | [static] |
getter callback for the OffsetValue attribute
Definition at line 106 of file OffsetCurvePy.cpp.
References getOffsetValue(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
int OffsetCurvePy::staticCallback_setBasisCurve | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the BasisCurve attribute
Definition at line 212 of file OffsetCurvePy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int OffsetCurvePy::staticCallback_setOffsetDirection | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the OffsetDirection attribute
Definition at line 168 of file OffsetCurvePy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int OffsetCurvePy::staticCallback_setOffsetValue | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the OffsetValue attribute
Definition at line 124 of file OffsetCurvePy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
PyGetSetDef OffsetCurvePy::GetterSetter [static] |
{ {"OffsetValue", (getter) staticCallback_getOffsetValue, (setter) staticCallback_setOffsetValue, "\n Sets or gets the offset value to offset the underlying curve.\n ", NULL }, {"OffsetDirection", (getter) staticCallback_getOffsetDirection, (setter) staticCallback_setOffsetDirection, "\n Sets or gets the offset direction to offset the underlying curve.\n ", NULL }, {"BasisCurve", (getter) staticCallback_getBasisCurve, (setter) staticCallback_setBasisCurve, "\n Sets or gets the basic curve.\n ", NULL }, {NULL, NULL, NULL, NULL, NULL} }
Attribute structure of OffsetCurvePy.
Reimplemented from Part::GeometryCurvePy.
Definition at line 25 of file OffsetCurvePy.h.
PyMethodDef OffsetCurvePy::Methods [static] |
{ {NULL, NULL, 0, NULL} }
Methods structure of OffsetCurvePy.
Reimplemented from Part::GeometryCurvePy.
Definition at line 24 of file OffsetCurvePy.h.
Referenced by _getattr().
PyParentObject OffsetCurvePy::Parents = { PARENTSPartOffsetCurvePy } [static] |
Reimplemented from Part::GeometryCurvePy.
Definition at line 26 of file OffsetCurvePy.h.
PyTypeObject OffsetCurvePy::Type [static] |
Type structure of OffsetCurvePy.
Reimplemented from Part::GeometryCurvePy.
Definition at line 23 of file OffsetCurvePy.h.
Referenced by initPart().