The python export class for GeomSurfaceOfExtrusion. More...
#include <SurfaceOfExtrusionPy.h>
Public Types | |
typedef GeomSurfaceOfExtrusion * | 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) | |
GeomSurfaceOfExtrusion * | getGeomSurfaceOfExtrusionPtr (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) | |
SurfaceOfExtrusionPy (GeomSurfaceOfExtrusion *pcObject, PyTypeObject *T=&Type) | |
~SurfaceOfExtrusionPy () | |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of SurfaceOfExtrusionPy. | |
static PyMethodDef | Methods [] |
Methods structure of SurfaceOfExtrusionPy. | |
static PyParentObject | Parents [] = { PARENTSPartSurfaceOfExtrusionPy } |
static PyTypeObject | Type |
Type structure of SurfaceOfExtrusionPy. | |
callbacks and implementers for the python object attributes | |
| |
Py::Object | getBasisCurve (void) const |
getter for the BasisCurve attribute | |
Py::Object | getDirection (void) const |
getter for the Direction attribute | |
void | setBasisCurve (Py::Object arg) |
setter for the BasisCurve attribute | |
void | setDirection (Py::Object arg) |
setter for the Direction attribute | |
static PyObject * | staticCallback_getBasisCurve (PyObject *self, void *closure) |
getter callback for the BasisCurve attribute | |
static PyObject * | staticCallback_getDirection (PyObject *self, void *closure) |
getter callback for the Direction attribute | |
static int | staticCallback_setBasisCurve (PyObject *self, PyObject *value, void *closure) |
setter callback for the BasisCurve attribute | |
static int | staticCallback_setDirection (PyObject *self, PyObject *value, void *closure) |
setter callback for the Direction attribute |
The python export class for GeomSurfaceOfExtrusion.
Definition at line 20 of file SurfaceOfExtrusionPy.h.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 36 of file SurfaceOfExtrusionPy.h.
SurfaceOfExtrusionPy::SurfaceOfExtrusionPy | ( | GeomSurfaceOfExtrusion * | pcObject, | |
PyTypeObject * | T = &Type | |||
) |
Definition at line 195 of file SurfaceOfExtrusionPy.cpp.
Referenced by PyMake().
SurfaceOfExtrusionPy::~SurfaceOfExtrusionPy | ( | ) |
Definition at line 204 of file SurfaceOfExtrusionPy.cpp.
PyObject * SurfaceOfExtrusionPy::_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 219 of file SurfaceOfExtrusionPy.cpp.
References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().
PyObject * SurfaceOfExtrusionPy::_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 211 of file SurfaceOfExtrusionPy.cpp.
References representation().
int SurfaceOfExtrusionPy::_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 287 of file SurfaceOfExtrusionPy.cpp.
References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().
Py::Object SurfaceOfExtrusionPy::getBasisCurve | ( | void | ) | const |
getter for the BasisCurve attribute
Definition at line 112 of file SurfaceOfExtrusionPyImp.cpp.
Referenced by staticCallback_getBasisCurve().
PyObject * SurfaceOfExtrusionPy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometrySurfacePy.
Definition at line 140 of file SurfaceOfExtrusionPyImp.cpp.
Referenced by _getattr().
Py::Object SurfaceOfExtrusionPy::getDirection | ( | void | ) | const |
getter for the Direction attribute
Definition at line 82 of file SurfaceOfExtrusionPyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getDirection().
GeomSurfaceOfExtrusion * SurfaceOfExtrusionPy::getGeomSurfaceOfExtrusionPtr | ( | void | ) | const |
getter for the object handled by this class
Definition at line 346 of file SurfaceOfExtrusionPy.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Referenced by PyInit().
virtual PyParentObject* Part::SurfaceOfExtrusionPy::GetParents | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 28 of file SurfaceOfExtrusionPy.h.
virtual PyTypeObject* Part::SurfaceOfExtrusionPy::GetType | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 27 of file SurfaceOfExtrusionPy.h.
PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).
Reimplemented from Part::GeometrySurfacePy.
Definition at line 51 of file SurfaceOfExtrusionPyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), getGeomSurfaceOfExtrusionPtr(), Part::Geometry::handle(), Part::GeomSurfaceOfExtrusion::setHandle(), Base::VectorPy::Type, Part::GeometryPy::Type, Part::GeometrySurfacePy::value(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 44 of file SurfaceOfExtrusionPyImp.cpp.
References SurfaceOfExtrusionPy().
std::string SurfaceOfExtrusionPy::representation | ( | void | ) | const |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 39 of file SurfaceOfExtrusionPyImp.cpp.
Referenced by _repr().
void SurfaceOfExtrusionPy::setBasisCurve | ( | Py::Object | arg | ) |
setter for the BasisCurve attribute
Definition at line 117 of file SurfaceOfExtrusionPyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), StartPage::StartPage::handle(), Part::Geometry::handle(), draftTools::p, Py::Object::ptr(), and Part::GeometryPy::Type.
int SurfaceOfExtrusionPy::setCustomAttributes | ( | const char * | attr, | |
PyObject * | obj | |||
) |
setter for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometrySurfacePy.
Definition at line 145 of file SurfaceOfExtrusionPyImp.cpp.
Referenced by _setattr().
void SurfaceOfExtrusionPy::setDirection | ( | Py::Object | arg | ) |
setter for the Direction attribute
Definition at line 90 of file SurfaceOfExtrusionPyImp.cpp.
References draftlibs::dxfReader::error(), Part::GeometryPy::getGeometryPtr(), 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.
PyObject * SurfaceOfExtrusionPy::staticCallback_getBasisCurve | ( | PyObject * | self, | |
void * | closure | |||
) | [static] |
getter callback for the BasisCurve attribute
Definition at line 144 of file SurfaceOfExtrusionPy.cpp.
References getBasisCurve(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
PyObject * SurfaceOfExtrusionPy::staticCallback_getDirection | ( | PyObject * | self, | |
void * | closure | |||
) | [static] |
getter callback for the Direction attribute
Definition at line 100 of file SurfaceOfExtrusionPy.cpp.
References getDirection(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
int SurfaceOfExtrusionPy::staticCallback_setBasisCurve | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the BasisCurve attribute
Definition at line 162 of file SurfaceOfExtrusionPy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int SurfaceOfExtrusionPy::staticCallback_setDirection | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Direction attribute
Definition at line 118 of file SurfaceOfExtrusionPy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
PyGetSetDef SurfaceOfExtrusionPy::GetterSetter [static] |
{ {"Direction", (getter) staticCallback_getDirection, (setter) staticCallback_setDirection, "\n Sets or gets the direction of revolution.\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 SurfaceOfExtrusionPy.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 25 of file SurfaceOfExtrusionPy.h.
PyMethodDef SurfaceOfExtrusionPy::Methods [static] |
{ {NULL, NULL, 0, NULL} }
Methods structure of SurfaceOfExtrusionPy.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 24 of file SurfaceOfExtrusionPy.h.
Referenced by _getattr().
PyParentObject SurfaceOfExtrusionPy::Parents = { PARENTSPartSurfaceOfExtrusionPy } [static] |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 26 of file SurfaceOfExtrusionPy.h.
PyTypeObject SurfaceOfExtrusionPy::Type [static] |
Type structure of SurfaceOfExtrusionPy.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 23 of file SurfaceOfExtrusionPy.h.
Referenced by initPart().