The python export class for GeomTrimmedSurface. More...
#include <RectangularTrimmedSurfacePy.h>
Public Types | |
typedef GeomTrimmedSurface * | 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) | |
GeomTrimmedSurface * | getGeomTrimmedSurfacePtr (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). | |
RectangularTrimmedSurfacePy (GeomTrimmedSurface *pcObject, PyTypeObject *T=&Type) | |
std::string | representation (void) const |
int | setCustomAttributes (const char *attr, PyObject *obj) |
setter for special attributes (e.g. dynamic ones) | |
~RectangularTrimmedSurfacePy () | |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of RectangularTrimmedSurfacePy. | |
static PyMethodDef | Methods [] |
Methods structure of RectangularTrimmedSurfacePy. | |
static PyParentObject | Parents [] = { PARENTSPartRectangularTrimmedSurfacePy } |
static PyTypeObject | Type |
Type structure of RectangularTrimmedSurfacePy. | |
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 GeomTrimmedSurface.
Definition at line 20 of file RectangularTrimmedSurfacePy.h.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 36 of file RectangularTrimmedSurfacePy.h.
RectangularTrimmedSurfacePy::RectangularTrimmedSurfacePy | ( | GeomTrimmedSurface * | pcObject, | |
PyTypeObject * | T = &Type | |||
) |
Definition at line 267 of file RectangularTrimmedSurfacePy.cpp.
Referenced by PyMake().
RectangularTrimmedSurfacePy::~RectangularTrimmedSurfacePy | ( | ) |
Definition at line 276 of file RectangularTrimmedSurfacePy.cpp.
PyObject * RectangularTrimmedSurfacePy::_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 291 of file RectangularTrimmedSurfacePy.cpp.
References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().
PyObject * RectangularTrimmedSurfacePy::_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 283 of file RectangularTrimmedSurfacePy.cpp.
References representation().
int RectangularTrimmedSurfacePy::_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 359 of file RectangularTrimmedSurfacePy.cpp.
References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().
PyObject * RectangularTrimmedSurfacePy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometrySurfacePy.
Definition at line 138 of file RectangularTrimmedSurfacePyImp.cpp.
Referenced by _getattr().
GeomTrimmedSurface * RectangularTrimmedSurfacePy::getGeomTrimmedSurfacePtr | ( | void | ) | const |
getter for the object handled by this class
Definition at line 418 of file RectangularTrimmedSurfacePy.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Referenced by PyInit().
virtual PyParentObject* Part::RectangularTrimmedSurfacePy::GetParents | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 28 of file RectangularTrimmedSurfacePy.h.
virtual PyTypeObject* Part::RectangularTrimmedSurfacePy::GetType | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 27 of file RectangularTrimmedSurfacePy.h.
PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).
Reimplemented from Part::GeometrySurfacePy.
Definition at line 52 of file RectangularTrimmedSurfacePyImp.cpp.
References Part::GeometrySurfacePy::getGeomSurfacePtr(), getGeomTrimmedSurfacePtr(), StartPage::StartPage::handle(), Part::GeomTrimmedSurface::setHandle(), Part::GeometrySurfacePy::Type, and draftlibs::fcgeo::v1().
PyObject * RectangularTrimmedSurfacePy::PyMake | ( | struct _typeobject * | , | |
PyObject * | , | |||
PyObject * | ||||
) | [static] |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 45 of file RectangularTrimmedSurfacePyImp.cpp.
References RectangularTrimmedSurfacePy().
std::string RectangularTrimmedSurfacePy::representation | ( | void | ) | const |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 40 of file RectangularTrimmedSurfacePyImp.cpp.
Referenced by _repr().
int RectangularTrimmedSurfacePy::setCustomAttributes | ( | const char * | attr, | |
PyObject * | obj | |||
) |
setter for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometrySurfacePy.
Definition at line 143 of file RectangularTrimmedSurfacePyImp.cpp.
Referenced by _setattr().
PyObject * RectangularTrimmedSurfacePy::staticCallback_uIso | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the uIso() method
Definition at line 108 of file RectangularTrimmedSurfacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * RectangularTrimmedSurfacePy::staticCallback_vIso | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the vIso() method
Definition at line 184 of file RectangularTrimmedSurfacePy.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 86 of file RectangularTrimmedSurfacePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().
implementer for the vIso() method
Definition at line 112 of file RectangularTrimmedSurfacePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().
PyGetSetDef RectangularTrimmedSurfacePy::GetterSetter [static] |
{ {NULL, NULL, NULL, NULL, NULL} }
Attribute structure of RectangularTrimmedSurfacePy.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 25 of file RectangularTrimmedSurfacePy.h.
PyMethodDef RectangularTrimmedSurfacePy::Methods [static] |
{ {"uIso", (PyCFunction) staticCallback_uIso, METH_VARARGS, "Builds the U isoparametric curve" }, {"vIso", (PyCFunction) staticCallback_vIso, METH_VARARGS, "Builds the V isoparametric curve" }, {NULL, NULL, 0, NULL} }
Methods structure of RectangularTrimmedSurfacePy.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 24 of file RectangularTrimmedSurfacePy.h.
Referenced by _getattr().
PyParentObject RectangularTrimmedSurfacePy::Parents = { PARENTSPartRectangularTrimmedSurfacePy } [static] |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 26 of file RectangularTrimmedSurfacePy.h.
PyTypeObject RectangularTrimmedSurfacePy::Type [static] |
Type structure of RectangularTrimmedSurfacePy.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 23 of file RectangularTrimmedSurfacePy.h.