The python export class for GeomCone. More...
#include <ConePy.h>
Public Types | |
typedef GeomCone * | 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. | |
ConePy (GeomCone *pcObject, PyTypeObject *T=&Type) | |
PyObject * | getCustomAttributes (const char *attr) const |
getter method for special attributes (e.g. dynamic ones) | |
GeomCone * | getGeomConePtr (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) | |
~ConePy () | |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of ConePy. | |
static PyMethodDef | Methods [] |
Methods structure of ConePy. | |
static PyParentObject | Parents [] = { PARENTSPartConePy } |
static PyTypeObject | Type |
Type structure of ConePy. | |
callbacks and implementers for the python object attributes | |
| |
Py::Object | getApex (void) const |
getter for the Apex attribute | |
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 | |
Py::Float | getSemiAngle (void) const |
getter for the SemiAngle 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 | |
void | setSemiAngle (Py::Float arg) |
setter for the SemiAngle attribute | |
static PyObject * | staticCallback_getApex (PyObject *self, void *closure) |
getter callback for the Apex 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 PyObject * | staticCallback_getSemiAngle (PyObject *self, void *closure) |
getter callback for the SemiAngle attribute | |
static int | staticCallback_setApex (PyObject *self, PyObject *value, void *closure) |
setter callback for the Apex 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 | |
static int | staticCallback_setSemiAngle (PyObject *self, PyObject *value, void *closure) |
setter callback for the SemiAngle 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 GeomCone.
Definition at line 20 of file ConePy.h.
typedef GeomCone* Part::ConePy::PointerType |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 521 of file ConePy.cpp.
Referenced by PyMake().
ConePy::~ConePy | ( | ) |
Definition at line 530 of file ConePy.cpp.
PyObject * ConePy::_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 545 of file ConePy.cpp.
References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().
PyObject * ConePy::_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 537 of file ConePy.cpp.
References representation().
int ConePy::_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 613 of file ConePy.cpp.
References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().
Py::Object ConePy::getApex | ( | void | ) | const |
getter for the Apex attribute
Definition at line 217 of file ConePyImp.cpp.
References getGeomConePtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getApex().
Py::Object ConePy::getAxis | ( | void | ) | const |
getter for the Axis attribute
Definition at line 283 of file ConePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getAxis().
Py::Object ConePy::getCenter | ( | void | ) | const |
getter for the Center attribute
Definition at line 253 of file ConePyImp.cpp.
References getGeomConePtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getCenter().
PyObject * ConePy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometrySurfacePy.
Definition at line 326 of file ConePyImp.cpp.
Referenced by _getattr().
GeomCone * ConePy::getGeomConePtr | ( | void | ) | const |
getter for the object handled by this class
Definition at line 672 of file ConePy.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Referenced by getApex(), getCenter(), getRadius(), getSemiAngle(), setCenter(), setRadius(), setSemiAngle(), uIso(), and vIso().
virtual PyParentObject* Part::ConePy::GetParents | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometrySurfacePy.
Py::Float ConePy::getRadius | ( | void | ) | const |
getter for the Radius attribute
Definition at line 225 of file ConePyImp.cpp.
References getGeomConePtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getRadius().
Py::Float ConePy::getSemiAngle | ( | void | ) | const |
getter for the SemiAngle attribute
Definition at line 239 of file ConePyImp.cpp.
References getGeomConePtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getSemiAngle().
virtual PyTypeObject* Part::ConePy::GetType | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometrySurfacePy.
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 ConePyImp.cpp.
References draftlibs::fcvec::dist(), gce_ErrorStatusText(), Part::GeometryPy::getGeometryPtr(), StartPage::StartPage::handle(), Part::Geometry::handle(), Type, Base::VectorPy::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 ConePyImp.cpp.
References ConePy().
std::string ConePy::representation | ( | void | ) | const |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 51 of file ConePyImp.cpp.
Referenced by _repr().
void ConePy::setAxis | ( | Py::Object | arg | ) |
setter for the Axis attribute
Definition at line 291 of file ConePyImp.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 ConePy::setCenter | ( | Py::Object | arg | ) |
setter for the Center attribute
Definition at line 261 of file ConePyImp.cpp.
References draftlibs::dxfReader::error(), getGeomConePtr(), 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 ConePy::setCustomAttributes | ( | const char * | attr, | |
PyObject * | obj | |||
) |
setter for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometrySurfacePy.
Definition at line 331 of file ConePyImp.cpp.
Referenced by _setattr().
void ConePy::setRadius | ( | Py::Float | arg | ) |
setter for the Radius attribute
Definition at line 232 of file ConePyImp.cpp.
References getGeomConePtr(), and StartPage::StartPage::handle().
void ConePy::setSemiAngle | ( | Py::Float | arg | ) |
setter for the SemiAngle attribute
Definition at line 246 of file ConePyImp.cpp.
References getGeomConePtr(), and StartPage::StartPage::handle().
getter callback for the Apex attribute
Definition at line 306 of file ConePy.cpp.
References getApex(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Axis attribute
Definition at line 470 of file ConePy.cpp.
References getAxis(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Center attribute
Definition at line 426 of file ConePy.cpp.
References getCenter(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Radius attribute
Definition at line 338 of file ConePy.cpp.
References getRadius(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the SemiAngle attribute
Definition at line 382 of file ConePy.cpp.
References getSemiAngle(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
setter callback for the Apex attribute
Definition at line 324 of file ConePy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
setter callback for the Axis attribute
Definition at line 488 of file ConePy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
setter callback for the Center attribute
Definition at line 444 of file ConePy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
setter callback for the Radius attribute
Definition at line 356 of file ConePy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int ConePy::staticCallback_setSemiAngle | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the SemiAngle attribute
Definition at line 400 of file ConePy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
callback for the uIso() method
Definition at line 154 of file ConePy.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 230 of file ConePy.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 173 of file ConePyImp.cpp.
References getGeomConePtr(), and StartPage::StartPage::handle().
implementer for the vIso() method
Definition at line 198 of file ConePyImp.cpp.
References getGeomConePtr(), and StartPage::StartPage::handle().
PyGetSetDef ConePy::GetterSetter [static] |
Attribute structure of ConePy.
Reimplemented from Part::GeometrySurfacePy.
PyMethodDef ConePy::Methods [static] |
{ {"uIso", (PyCFunction) staticCallback_uIso, METH_VARARGS, "Builds the U isoparametric circle of this cone" }, {"vIso", (PyCFunction) staticCallback_vIso, METH_VARARGS, "Builds the V isoparametric circle of this cone" }, {NULL, NULL, 0, NULL} }
Methods structure of ConePy.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 24 of file ConePy.h.
Referenced by _getattr().
PyParentObject ConePy::Parents = { PARENTSPartConePy } [static] |
Reimplemented from Part::GeometrySurfacePy.
PyTypeObject ConePy::Type [static] |
Type structure of ConePy.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 23 of file ConePy.h.
Referenced by initPart(), and PyInit().