The python export class for GeomCylinder. More...
#include <CylinderPy.h>
Public Types | |
typedef GeomCylinder * | 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. | |
CylinderPy (GeomCylinder *pcObject, PyTypeObject *T=&Type) | |
PyObject * | getCustomAttributes (const char *attr) const |
getter method for special attributes (e.g. dynamic ones) | |
GeomCylinder * | getGeomCylinderPtr (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) | |
~CylinderPy () | |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of CylinderPy. | |
static PyMethodDef | Methods [] |
Methods structure of CylinderPy. | |
static PyParentObject | Parents [] = { PARENTSPartCylinderPy } |
static PyTypeObject | Type |
Type structure of CylinderPy. | |
callbacks and implementers for the python object attributes | |
| |
Py::Object | getAxis (void) const |
getter for the Axis attribute | |
Py::Object | getCenter (void) const |
getter for the Center attribute | |
Py::Float | getRadius (void) const |
getter for the Radius attribute | |
void | setAxis (Py::Object arg) |
setter for the Axis attribute | |
void | setCenter (Py::Object arg) |
setter for the Center attribute | |
void | setRadius (Py::Float arg) |
setter for the Radius attribute | |
static PyObject * | staticCallback_getAxis (PyObject *self, void *closure) |
getter callback for the Axis attribute | |
static PyObject * | staticCallback_getCenter (PyObject *self, void *closure) |
getter callback for the Center attribute | |
static PyObject * | staticCallback_getRadius (PyObject *self, void *closure) |
getter callback for the Radius attribute | |
static int | staticCallback_setAxis (PyObject *self, PyObject *value, void *closure) |
setter callback for the Axis attribute | |
static int | staticCallback_setCenter (PyObject *self, PyObject *value, void *closure) |
setter callback for the Center attribute | |
static int | staticCallback_setRadius (PyObject *self, PyObject *value, void *closure) |
setter callback for the Radius attribute | |
callbacks and implementers for the python object methods | |
| |
PyObject * | uIso (PyObject *args) |
implementer for the uIso() method | |
PyObject * | vIso (PyObject *args) |
implementer for the vIso() method | |
static PyObject * | staticCallback_uIso (PyObject *self, PyObject *args) |
callback for the uIso() method | |
static PyObject * | staticCallback_vIso (PyObject *self, PyObject *args) |
callback for the vIso() method |
The python export class for GeomCylinder.
Definition at line 20 of file CylinderPy.h.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 36 of file CylinderPy.h.
CylinderPy::CylinderPy | ( | GeomCylinder * | pcObject, | |
PyTypeObject * | T = &Type | |||
) |
Definition at line 423 of file CylinderPy.cpp.
Referenced by PyMake().
CylinderPy::~CylinderPy | ( | ) |
Definition at line 432 of file CylinderPy.cpp.
PyObject * CylinderPy::_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::GeometrySurfacePy.
Definition at line 447 of file CylinderPy.cpp.
References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().
PyObject * CylinderPy::_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::GeometrySurfacePy.
Definition at line 439 of file CylinderPy.cpp.
References representation().
int CylinderPy::_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::GeometrySurfacePy.
Definition at line 515 of file CylinderPy.cpp.
References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().
Py::Object CylinderPy::getAxis | ( | void | ) | const |
getter for the Axis attribute
Definition at line 260 of file CylinderPyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getAxis().
Py::Object CylinderPy::getCenter | ( | void | ) | const |
getter for the Center attribute
Definition at line 230 of file CylinderPyImp.cpp.
References getGeomCylinderPtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getCenter().
PyObject * CylinderPy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometrySurfacePy.
Definition at line 303 of file CylinderPyImp.cpp.
Referenced by _getattr().
GeomCylinder * CylinderPy::getGeomCylinderPtr | ( | void | ) | const |
getter for the object handled by this class
Definition at line 574 of file CylinderPy.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Referenced by getCenter(), getRadius(), PyInit(), setCenter(), setRadius(), uIso(), and vIso().
virtual PyParentObject* Part::CylinderPy::GetParents | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 28 of file CylinderPy.h.
Py::Float CylinderPy::getRadius | ( | void | ) | const |
getter for the Radius attribute
Definition at line 216 of file CylinderPyImp.cpp.
References getGeomCylinderPtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getRadius().
virtual PyTypeObject* Part::CylinderPy::GetType | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 27 of file CylinderPy.h.
PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).
Reimplemented from Part::GeometrySurfacePy.
Definition at line 63 of file CylinderPyImp.cpp.
References draftlibs::fcvec::dist(), gce_ErrorStatusText(), Part::CirclePy::getGeomCirclePtr(), getGeomCylinderPtr(), Part::GeomCircle::handle(), StartPage::StartPage::handle(), Part::GeomCylinder::handle(), Part::CirclePy::Type, Base::VectorPy::Type, Type, draftlibs::fcgeo::v1(), Part::GeometrySurfacePy::value(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 56 of file CylinderPyImp.cpp.
References CylinderPy().
std::string CylinderPy::representation | ( | void | ) | const |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 51 of file CylinderPyImp.cpp.
Referenced by _repr().
void CylinderPy::setAxis | ( | Py::Object | arg | ) |
setter for the Axis attribute
Definition at line 268 of file CylinderPyImp.cpp.
References draftlibs::dxfReader::error(), Part::GeometryPy::getGeometryPtr(), Py::SeqBase< T >::getItem(), StartPage::StartPage::handle(), draftTools::p, Py::Object::ptr(), Base::VectorPy::Type, Part::GeometrySurfacePy::value(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
void CylinderPy::setCenter | ( | Py::Object | arg | ) |
setter for the Center attribute
Definition at line 238 of file CylinderPyImp.cpp.
References draftlibs::dxfReader::error(), getGeomCylinderPtr(), StartPage::StartPage::handle(), draftTools::p, Py::Object::ptr(), Base::VectorPy::Type, Part::GeometrySurfacePy::value(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
int CylinderPy::setCustomAttributes | ( | const char * | attr, | |
PyObject * | obj | |||
) |
setter for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometrySurfacePy.
Definition at line 308 of file CylinderPyImp.cpp.
Referenced by _setattr().
void CylinderPy::setRadius | ( | Py::Float | arg | ) |
setter for the Radius attribute
Definition at line 223 of file CylinderPyImp.cpp.
References getGeomCylinderPtr(), and StartPage::StartPage::handle().
getter callback for the Axis attribute
Definition at line 372 of file CylinderPy.cpp.
References getAxis(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Center attribute
Definition at line 328 of file CylinderPy.cpp.
References getCenter(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Radius attribute
Definition at line 284 of file CylinderPy.cpp.
References getRadius(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
int CylinderPy::staticCallback_setAxis | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Axis attribute
Definition at line 390 of file CylinderPy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int CylinderPy::staticCallback_setCenter | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Center attribute
Definition at line 346 of file CylinderPy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int CylinderPy::staticCallback_setRadius | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Radius attribute
Definition at line 302 of file CylinderPy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
callback for the uIso() method
Definition at line 132 of file CylinderPy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
callback for the vIso() method
Definition at line 208 of file CylinderPy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
implementer for the uIso() method
Definition at line 159 of file CylinderPyImp.cpp.
References getGeomCylinderPtr(), Part::GeomLineSegment::handle(), and StartPage::StartPage::handle().
implementer for the vIso() method
Definition at line 189 of file CylinderPyImp.cpp.
References getGeomCylinderPtr(), and StartPage::StartPage::handle().
PyGetSetDef CylinderPy::GetterSetter [static] |
{ {"Radius", (getter) staticCallback_getRadius, (setter) staticCallback_setRadius, "The radius of the cylinder.", NULL }, {"Center", (getter) staticCallback_getCenter, (setter) staticCallback_setCenter, "Center of the cylinder.", NULL }, {"Axis", (getter) staticCallback_getAxis, (setter) staticCallback_setAxis, "The axis direction of the cylinder", NULL }, {NULL, NULL, NULL, NULL, NULL} }
Attribute structure of CylinderPy.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 25 of file CylinderPy.h.
PyMethodDef CylinderPy::Methods [static] |
{ {"uIso", (PyCFunction) staticCallback_uIso, METH_VARARGS, "Builds the U isoparametric circle of this cylinder" }, {"vIso", (PyCFunction) staticCallback_vIso, METH_VARARGS, "Builds the V isoparametric circle of this cylinder" }, {NULL, NULL, 0, NULL} }
Methods structure of CylinderPy.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 24 of file CylinderPy.h.
Referenced by _getattr().
PyParentObject CylinderPy::Parents = { PARENTSPartCylinderPy } [static] |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 26 of file CylinderPy.h.
PyTypeObject CylinderPy::Type [static] |
Type structure of CylinderPy.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 23 of file CylinderPy.h.
Referenced by initPart(), and PyInit().