The python export class for GeomArcOfCircle. More...
#include <ArcOfCirclePy.h>
Public Types | |
typedef GeomArcOfCircle * | 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. | |
ArcOfCirclePy (GeomArcOfCircle *pcObject, PyTypeObject *T=&Type) | |
PyObject * | getCustomAttributes (const char *attr) const |
getter method for special attributes (e.g. dynamic ones) | |
GeomArcOfCircle * | getGeomArcOfCirclePtr (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) | |
~ArcOfCirclePy () | |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of ArcOfCirclePy. | |
static PyMethodDef | Methods [] |
Methods structure of ArcOfCirclePy. | |
static PyParentObject | Parents [] = { PARENTSPartArcOfCirclePy } |
static PyTypeObject | Type |
Type structure of ArcOfCirclePy. | |
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::Object | getCircle (void) const |
getter for the Circle 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_getCircle (PyObject *self, void *closure) |
getter callback for the Circle 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_setCircle (PyObject *self, PyObject *value, void *closure) |
setter callback for the Circle attribute | |
static int | staticCallback_setRadius (PyObject *self, PyObject *value, void *closure) |
setter callback for the Radius attribute |
The python export class for GeomArcOfCircle.
Definition at line 20 of file ArcOfCirclePy.h.
Reimplemented from Part::GeometryCurvePy.
Definition at line 36 of file ArcOfCirclePy.h.
ArcOfCirclePy::ArcOfCirclePy | ( | GeomArcOfCircle * | pcObject, | |
PyTypeObject * | T = &Type | |||
) |
Definition at line 283 of file ArcOfCirclePy.cpp.
Referenced by PyMake().
ArcOfCirclePy::~ArcOfCirclePy | ( | ) |
Definition at line 292 of file ArcOfCirclePy.cpp.
PyObject * ArcOfCirclePy::_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 307 of file ArcOfCirclePy.cpp.
References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().
PyObject * ArcOfCirclePy::_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 299 of file ArcOfCirclePy.cpp.
References representation().
int ArcOfCirclePy::_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 375 of file ArcOfCirclePy.cpp.
References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().
Py::Object ArcOfCirclePy::getAxis | ( | void | ) | const |
getter for the Axis attribute
Definition at line 166 of file ArcOfCirclePyImp.cpp.
References getGeomArcOfCirclePtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getAxis().
Py::Object ArcOfCirclePy::getCenter | ( | void | ) | const |
getter for the Center attribute
Definition at line 143 of file ArcOfCirclePyImp.cpp.
References getGeomArcOfCirclePtr().
Referenced by staticCallback_getCenter().
Py::Object ArcOfCirclePy::getCircle | ( | void | ) | const |
getter for the Circle attribute
Definition at line 206 of file ArcOfCirclePyImp.cpp.
References getGeomArcOfCirclePtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getCircle().
PyObject * ArcOfCirclePy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometryCurvePy.
Definition at line 214 of file ArcOfCirclePyImp.cpp.
Referenced by _getattr().
GeomArcOfCircle * ArcOfCirclePy::getGeomArcOfCirclePtr | ( | void | ) | const |
getter for the object handled by this class
Definition at line 434 of file ArcOfCirclePy.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Referenced by getAxis(), getCenter(), getCircle(), getRadius(), PyInit(), representation(), setAxis(), setCenter(), and setRadius().
virtual PyParentObject* Part::ArcOfCirclePy::GetParents | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometryCurvePy.
Definition at line 28 of file ArcOfCirclePy.h.
Py::Float ArcOfCirclePy::getRadius | ( | void | ) | const |
getter for the Radius attribute
Definition at line 133 of file ArcOfCirclePyImp.cpp.
References getGeomArcOfCirclePtr().
Referenced by staticCallback_getRadius().
virtual PyTypeObject* Part::ArcOfCirclePy::GetType | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometryCurvePy.
Definition at line 27 of file ArcOfCirclePy.h.
PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).
Reimplemented from Part::GeometryCurvePy.
Definition at line 77 of file ArcOfCirclePyImp.cpp.
References gce_ErrorStatusText(), getGeomArcOfCirclePtr(), StartPage::StartPage::handle(), Part::GeomArcOfCircle::setHandle(), Base::VectorPy::Type, Part::CirclePy::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 70 of file ArcOfCirclePyImp.cpp.
References ArcOfCirclePy().
std::string ArcOfCirclePy::representation | ( | void | ) | const |
Reimplemented from Part::GeometryCurvePy.
Definition at line 46 of file ArcOfCirclePyImp.cpp.
References getGeomArcOfCirclePtr(), and StartPage::StartPage::handle().
Referenced by _repr().
void ArcOfCirclePy::setAxis | ( | Py::Object | arg | ) |
setter for the Axis attribute
Definition at line 176 of file ArcOfCirclePyImp.cpp.
References draftlibs::dxfReader::error(), getGeomArcOfCirclePtr(), 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 ArcOfCirclePy::setCenter | ( | Py::Object | arg | ) |
setter for the Center attribute
Definition at line 148 of file ArcOfCirclePyImp.cpp.
References draftlibs::dxfReader::error(), getGeomArcOfCirclePtr(), draftTools::p, Py::Object::ptr(), Part::GeomArcOfCircle::setCenter(), Base::VectorPy::Type, and Part::GeometryCurvePy::value().
int ArcOfCirclePy::setCustomAttributes | ( | const char * | attr, | |
PyObject * | obj | |||
) |
setter for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometryCurvePy.
Definition at line 219 of file ArcOfCirclePyImp.cpp.
Referenced by _setattr().
void ArcOfCirclePy::setRadius | ( | Py::Float | arg | ) |
setter for the Radius attribute
Definition at line 138 of file ArcOfCirclePyImp.cpp.
References getGeomArcOfCirclePtr(), and Part::GeomArcOfCircle::setRadius().
getter callback for the Axis attribute
Definition at line 200 of file ArcOfCirclePy.cpp.
References getAxis(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Center attribute
Definition at line 156 of file ArcOfCirclePy.cpp.
References getCenter(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Circle attribute
Definition at line 244 of file ArcOfCirclePy.cpp.
References getCircle(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Radius attribute
Definition at line 112 of file ArcOfCirclePy.cpp.
References getRadius(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
int ArcOfCirclePy::staticCallback_setAxis | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Axis attribute
Definition at line 218 of file ArcOfCirclePy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int ArcOfCirclePy::staticCallback_setCenter | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Center attribute
Definition at line 174 of file ArcOfCirclePy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int ArcOfCirclePy::staticCallback_setCircle | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Circle attribute
Definition at line 262 of file ArcOfCirclePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int ArcOfCirclePy::staticCallback_setRadius | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Radius attribute
Definition at line 130 of file ArcOfCirclePy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
PyGetSetDef ArcOfCirclePy::GetterSetter [static] |
{ {"Radius", (getter) staticCallback_getRadius, (setter) staticCallback_setRadius, "The radius of the circle.", NULL }, {"Center", (getter) staticCallback_getCenter, (setter) staticCallback_setCenter, "Center of the circle.", NULL }, {"Axis", (getter) staticCallback_getAxis, (setter) staticCallback_setAxis, "The axis direction of the circle", NULL }, {"Circle", (getter) staticCallback_getCircle, (setter) staticCallback_setCircle, "The internal circle representation", NULL }, {NULL, NULL, NULL, NULL, NULL} }
Attribute structure of ArcOfCirclePy.
Reimplemented from Part::GeometryCurvePy.
Definition at line 25 of file ArcOfCirclePy.h.
PyMethodDef ArcOfCirclePy::Methods [static] |
{ {NULL, NULL, 0, NULL} }
Methods structure of ArcOfCirclePy.
Reimplemented from Part::GeometryCurvePy.
Definition at line 24 of file ArcOfCirclePy.h.
Referenced by _getattr().
PyParentObject ArcOfCirclePy::Parents = { PARENTSPartArcOfCirclePy } [static] |
Reimplemented from Part::GeometryCurvePy.
Definition at line 26 of file ArcOfCirclePy.h.
PyTypeObject ArcOfCirclePy::Type [static] |
Type structure of ArcOfCirclePy.
Reimplemented from Part::GeometryCurvePy.
Definition at line 23 of file ArcOfCirclePy.h.
Referenced by initPart().