The python export class for GeomEllipse. More...
#include <EllipsePy.h>
Public Types | |
typedef GeomEllipse * | 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. | |
EllipsePy (GeomEllipse *pcObject, PyTypeObject *T=&Type) | |
PyObject * | getCustomAttributes (const char *attr) const |
getter method for special attributes (e.g. dynamic ones) | |
GeomEllipse * | getGeomEllipsePtr (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) | |
~EllipsePy () | |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of EllipsePy. | |
static PyMethodDef | Methods [] |
Methods structure of EllipsePy. | |
static PyParentObject | Parents [] = { PARENTSPartEllipsePy } |
static PyTypeObject | Type |
Type structure of EllipsePy. | |
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 | getEccentricity (void) const |
getter for the Eccentricity attribute | |
Py::Float | getFocal (void) const |
getter for the Focal attribute | |
Py::Object | getFocus1 (void) const |
getter for the Focus1 attribute | |
Py::Object | getFocus2 (void) const |
getter for the Focus2 attribute | |
Py::Float | getMajorRadius (void) const |
getter for the MajorRadius attribute | |
Py::Float | getMinorRadius (void) const |
getter for the MinorRadius attribute | |
void | setAxis (Py::Object arg) |
setter for the Axis attribute | |
void | setCenter (Py::Object arg) |
setter for the Center attribute | |
void | setMajorRadius (Py::Float arg) |
setter for the MajorRadius attribute | |
void | setMinorRadius (Py::Float arg) |
setter for the MinorRadius 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_getEccentricity (PyObject *self, void *closure) |
getter callback for the Eccentricity attribute | |
static PyObject * | staticCallback_getFocal (PyObject *self, void *closure) |
getter callback for the Focal attribute | |
static PyObject * | staticCallback_getFocus1 (PyObject *self, void *closure) |
getter callback for the Focus1 attribute | |
static PyObject * | staticCallback_getFocus2 (PyObject *self, void *closure) |
getter callback for the Focus2 attribute | |
static PyObject * | staticCallback_getMajorRadius (PyObject *self, void *closure) |
getter callback for the MajorRadius attribute | |
static PyObject * | staticCallback_getMinorRadius (PyObject *self, void *closure) |
getter callback for the MinorRadius 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_setEccentricity (PyObject *self, PyObject *value, void *closure) |
setter callback for the Eccentricity attribute | |
static int | staticCallback_setFocal (PyObject *self, PyObject *value, void *closure) |
setter callback for the Focal attribute | |
static int | staticCallback_setFocus1 (PyObject *self, PyObject *value, void *closure) |
setter callback for the Focus1 attribute | |
static int | staticCallback_setFocus2 (PyObject *self, PyObject *value, void *closure) |
setter callback for the Focus2 attribute | |
static int | staticCallback_setMajorRadius (PyObject *self, PyObject *value, void *closure) |
setter callback for the MajorRadius attribute | |
static int | staticCallback_setMinorRadius (PyObject *self, PyObject *value, void *closure) |
setter callback for the MinorRadius attribute |
The python export class for GeomEllipse.
Definition at line 20 of file EllipsePy.h.
typedef GeomEllipse* Part::EllipsePy::PointerType |
Reimplemented from Part::GeometryCurvePy.
Definition at line 36 of file EllipsePy.h.
EllipsePy::EllipsePy | ( | GeomEllipse * | pcObject, | |
PyTypeObject * | T = &Type | |||
) |
Definition at line 467 of file EllipsePy.cpp.
Referenced by PyMake().
EllipsePy::~EllipsePy | ( | ) |
Definition at line 476 of file EllipsePy.cpp.
PyObject * EllipsePy::_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 491 of file EllipsePy.cpp.
References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().
PyObject * EllipsePy::_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 483 of file EllipsePy.cpp.
References representation().
int EllipsePy::_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 559 of file EllipsePy.cpp.
References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().
Py::Object EllipsePy::getAxis | ( | void | ) | const |
getter for the Axis attribute
Definition at line 210 of file EllipsePyImp.cpp.
References getGeomEllipsePtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getAxis().
Py::Object EllipsePy::getCenter | ( | void | ) | const |
getter for the Center attribute
Definition at line 179 of file EllipsePyImp.cpp.
References getGeomEllipsePtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getCenter().
PyObject * EllipsePy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometryCurvePy.
Definition at line 246 of file EllipsePyImp.cpp.
Referenced by _getattr().
Py::Float EllipsePy::getEccentricity | ( | void | ) | const |
getter for the Eccentricity attribute
Definition at line 153 of file EllipsePyImp.cpp.
References getGeomEllipsePtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getEccentricity().
Py::Float EllipsePy::getFocal | ( | void | ) | const |
getter for the Focal attribute
Definition at line 159 of file EllipsePyImp.cpp.
References getGeomEllipsePtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getFocal().
Py::Object EllipsePy::getFocus1 | ( | void | ) | const |
getter for the Focus1 attribute
Definition at line 165 of file EllipsePyImp.cpp.
References getGeomEllipsePtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getFocus1().
Py::Object EllipsePy::getFocus2 | ( | void | ) | const |
getter for the Focus2 attribute
Definition at line 172 of file EllipsePyImp.cpp.
References getGeomEllipsePtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getFocus2().
GeomEllipse * EllipsePy::getGeomEllipsePtr | ( | void | ) | const |
getter for the object handled by this class
Definition at line 618 of file EllipsePy.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Referenced by getAxis(), getCenter(), getEccentricity(), getFocal(), getFocus1(), getFocus2(), getMajorRadius(), getMinorRadius(), PyInit(), setAxis(), setCenter(), setMajorRadius(), and setMinorRadius().
Py::Float EllipsePy::getMajorRadius | ( | void | ) | const |
getter for the MajorRadius attribute
Definition at line 129 of file EllipsePyImp.cpp.
References getGeomEllipsePtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getMajorRadius().
Py::Float EllipsePy::getMinorRadius | ( | void | ) | const |
getter for the MinorRadius attribute
Definition at line 141 of file EllipsePyImp.cpp.
References getGeomEllipsePtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getMinorRadius().
virtual PyParentObject* Part::EllipsePy::GetParents | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometryCurvePy.
Definition at line 28 of file EllipsePy.h.
virtual PyTypeObject* Part::EllipsePy::GetType | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometryCurvePy.
Definition at line 27 of file EllipsePy.h.
PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).
Reimplemented from Part::GeometryCurvePy.
Definition at line 55 of file EllipsePyImp.cpp.
References gce_ErrorStatusText(), getGeomEllipsePtr(), Part::GeomEllipse::handle(), StartPage::StartPage::handle(), Base::VectorPy::Type, Type, draftlibs::fcgeo::v1(), Part::GeometryCurvePy::value(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Reimplemented from Part::GeometryCurvePy.
Definition at line 48 of file EllipsePyImp.cpp.
References EllipsePy().
std::string EllipsePy::representation | ( | void | ) | const |
Reimplemented from Part::GeometryCurvePy.
Definition at line 43 of file EllipsePyImp.cpp.
Referenced by _repr().
void EllipsePy::setAxis | ( | Py::Object | arg | ) |
setter for the Axis attribute
Definition at line 218 of file EllipsePyImp.cpp.
References draftlibs::dxfReader::error(), getGeomEllipsePtr(), 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 EllipsePy::setCenter | ( | Py::Object | arg | ) |
setter for the Center attribute
Definition at line 186 of file EllipsePyImp.cpp.
References draftlibs::dxfReader::error(), getGeomEllipsePtr(), Py::SeqBase< T >::getItem(), 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.
int EllipsePy::setCustomAttributes | ( | const char * | attr, | |
PyObject * | obj | |||
) |
setter for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometryCurvePy.
Definition at line 251 of file EllipsePyImp.cpp.
Referenced by _setattr().
void EllipsePy::setMajorRadius | ( | Py::Float | arg | ) |
setter for the MajorRadius attribute
Definition at line 135 of file EllipsePyImp.cpp.
References getGeomEllipsePtr(), and StartPage::StartPage::handle().
void EllipsePy::setMinorRadius | ( | Py::Float | arg | ) |
setter for the MinorRadius attribute
Definition at line 147 of file EllipsePyImp.cpp.
References getGeomEllipsePtr(), and StartPage::StartPage::handle().
getter callback for the Axis attribute
Definition at line 416 of file EllipsePy.cpp.
References getAxis(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Center attribute
Definition at line 372 of file EllipsePy.cpp.
References getCenter(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Eccentricity attribute
Definition at line 244 of file EllipsePy.cpp.
References getEccentricity(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Focal attribute
Definition at line 276 of file EllipsePy.cpp.
References getFocal(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Focus1 attribute
Definition at line 308 of file EllipsePy.cpp.
References getFocus1(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Focus2 attribute
Definition at line 340 of file EllipsePy.cpp.
References getFocus2(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the MajorRadius attribute
Definition at line 156 of file EllipsePy.cpp.
References getMajorRadius(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the MinorRadius attribute
Definition at line 200 of file EllipsePy.cpp.
References getMinorRadius(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
int EllipsePy::staticCallback_setAxis | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Axis attribute
Definition at line 434 of file EllipsePy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int EllipsePy::staticCallback_setCenter | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Center attribute
Definition at line 390 of file EllipsePy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int EllipsePy::staticCallback_setEccentricity | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Eccentricity attribute
Definition at line 262 of file EllipsePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int EllipsePy::staticCallback_setFocal | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Focal attribute
Definition at line 294 of file EllipsePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int EllipsePy::staticCallback_setFocus1 | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Focus1 attribute
Definition at line 326 of file EllipsePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int EllipsePy::staticCallback_setFocus2 | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Focus2 attribute
Definition at line 358 of file EllipsePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int EllipsePy::staticCallback_setMajorRadius | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the MajorRadius attribute
Definition at line 174 of file EllipsePy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int EllipsePy::staticCallback_setMinorRadius | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the MinorRadius attribute
Definition at line 218 of file EllipsePy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
PyGetSetDef EllipsePy::GetterSetter [static] |
Attribute structure of EllipsePy.
Reimplemented from Part::GeometryCurvePy.
Definition at line 25 of file EllipsePy.h.
PyMethodDef EllipsePy::Methods [static] |
{ {NULL, NULL, 0, NULL} }
Methods structure of EllipsePy.
Reimplemented from Part::GeometryCurvePy.
Definition at line 24 of file EllipsePy.h.
Referenced by _getattr().
PyParentObject EllipsePy::Parents = { PARENTSPartEllipsePy } [static] |
Reimplemented from Part::GeometryCurvePy.
Definition at line 26 of file EllipsePy.h.
PyTypeObject EllipsePy::Type [static] |
Type structure of EllipsePy.
Reimplemented from Part::GeometryCurvePy.
Definition at line 23 of file EllipsePy.h.
Referenced by initPart(), PyInit(), and Part::ArcPy::PyInit().