The python export class for GeomOffsetSurface. More...
#include <OffsetSurfacePy.h>
Public Types | |
typedef GeomOffsetSurface * | 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) | |
GeomOffsetSurface * | getGeomOffsetSurfacePtr (void) const |
getter for the object handled by this class | |
virtual PyParentObject * | GetParents (void) |
virtual PyTypeObject * | GetType (void) |
OffsetSurfacePy (GeomOffsetSurface *pcObject, PyTypeObject *T=&Type) | |
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) | |
~OffsetSurfacePy () | |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of OffsetSurfacePy. | |
static PyMethodDef | Methods [] |
Methods structure of OffsetSurfacePy. | |
static PyParentObject | Parents [] = { PARENTSPartOffsetSurfacePy } |
static PyTypeObject | Type |
Type structure of OffsetSurfacePy. | |
callbacks and implementers for the python object attributes | |
| |
Py::Object | getBasisSurface (void) const |
getter for the BasisSurface attribute | |
Py::Float | getOffsetValue (void) const |
getter for the OffsetValue attribute | |
void | setBasisSurface (Py::Object arg) |
setter for the BasisSurface attribute | |
void | setOffsetValue (Py::Float arg) |
setter for the OffsetValue attribute | |
static PyObject * | staticCallback_getBasisSurface (PyObject *self, void *closure) |
getter callback for the BasisSurface attribute | |
static PyObject * | staticCallback_getOffsetValue (PyObject *self, void *closure) |
getter callback for the OffsetValue attribute | |
static int | staticCallback_setBasisSurface (PyObject *self, PyObject *value, void *closure) |
setter callback for the BasisSurface attribute | |
static int | staticCallback_setOffsetValue (PyObject *self, PyObject *value, void *closure) |
setter callback for the OffsetValue 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 GeomOffsetSurface.
Definition at line 20 of file OffsetSurfacePy.h.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 36 of file OffsetSurfacePy.h.
OffsetSurfacePy::OffsetSurfacePy | ( | GeomOffsetSurface * | pcObject, | |
PyTypeObject * | T = &Type | |||
) |
Definition at line 357 of file OffsetSurfacePy.cpp.
Referenced by PyMake().
OffsetSurfacePy::~OffsetSurfacePy | ( | ) |
Definition at line 366 of file OffsetSurfacePy.cpp.
PyObject * OffsetSurfacePy::_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 381 of file OffsetSurfacePy.cpp.
References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().
PyObject * OffsetSurfacePy::_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 373 of file OffsetSurfacePy.cpp.
References representation().
int OffsetSurfacePy::_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 449 of file OffsetSurfacePy.cpp.
References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().
Py::Object OffsetSurfacePy::getBasisSurface | ( | void | ) | const |
getter for the BasisSurface attribute
Definition at line 104 of file OffsetSurfacePyImp.cpp.
Referenced by staticCallback_getBasisSurface().
PyObject * OffsetSurfacePy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometrySurfacePy.
Definition at line 132 of file OffsetSurfacePyImp.cpp.
Referenced by _getattr().
GeomOffsetSurface * OffsetSurfacePy::getGeomOffsetSurfacePtr | ( | void | ) | const |
getter for the object handled by this class
Definition at line 508 of file OffsetSurfacePy.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Referenced by PyInit().
Py::Float OffsetSurfacePy::getOffsetValue | ( | void | ) | const |
getter for the OffsetValue attribute
Definition at line 92 of file OffsetSurfacePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().
Referenced by staticCallback_getOffsetValue().
virtual PyParentObject* Part::OffsetSurfacePy::GetParents | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 28 of file OffsetSurfacePy.h.
virtual PyTypeObject* Part::OffsetSurfacePy::GetType | ( | void | ) | [inline, virtual] |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 27 of file OffsetSurfacePy.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 OffsetSurfacePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), getGeomOffsetSurfacePtr(), Part::Geometry::handle(), offset(), Part::GeomOffsetSurface::setHandle(), and Part::GeometryPy::Type.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 44 of file OffsetSurfacePyImp.cpp.
References OffsetSurfacePy().
std::string OffsetSurfacePy::representation | ( | void | ) | const |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 39 of file OffsetSurfacePyImp.cpp.
Referenced by _repr().
void OffsetSurfacePy::setBasisSurface | ( | Py::Object | arg | ) |
setter for the BasisSurface attribute
Definition at line 109 of file OffsetSurfacePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), StartPage::StartPage::handle(), Part::Geometry::handle(), draftTools::p, Py::Object::ptr(), and Part::GeometryPy::Type.
int OffsetSurfacePy::setCustomAttributes | ( | const char * | attr, | |
PyObject * | obj | |||
) |
setter for special attributes (e.g. dynamic ones)
Reimplemented from Part::GeometrySurfacePy.
Definition at line 137 of file OffsetSurfacePyImp.cpp.
Referenced by _setattr().
void OffsetSurfacePy::setOffsetValue | ( | Py::Float | arg | ) |
setter for the OffsetValue attribute
Definition at line 98 of file OffsetSurfacePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().
PyObject * OffsetSurfacePy::staticCallback_getBasisSurface | ( | PyObject * | self, | |
void * | closure | |||
) | [static] |
getter callback for the BasisSurface attribute
Definition at line 306 of file OffsetSurfacePy.cpp.
References getBasisSurface(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
PyObject * OffsetSurfacePy::staticCallback_getOffsetValue | ( | PyObject * | self, | |
void * | closure | |||
) | [static] |
getter callback for the OffsetValue attribute
Definition at line 262 of file OffsetSurfacePy.cpp.
References getOffsetValue(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
int OffsetSurfacePy::staticCallback_setBasisSurface | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the BasisSurface attribute
Definition at line 324 of file OffsetSurfacePy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int OffsetSurfacePy::staticCallback_setOffsetValue | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the OffsetValue attribute
Definition at line 280 of file OffsetSurfacePy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
callback for the uIso() method
Definition at line 110 of file OffsetSurfacePy.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 186 of file OffsetSurfacePy.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 80 of file OffsetSurfacePyImp.cpp.
implementer for the vIso() method
Definition at line 86 of file OffsetSurfacePyImp.cpp.
PyGetSetDef OffsetSurfacePy::GetterSetter [static] |
{ {"OffsetValue", (getter) staticCallback_getOffsetValue, (setter) staticCallback_setOffsetValue, "\n Sets or gets the offset value to offset the underlying surface.\n ", NULL }, {"BasisSurface", (getter) staticCallback_getBasisSurface, (setter) staticCallback_setBasisSurface, "\n Sets or gets the basic surface.\n ", NULL }, {NULL, NULL, NULL, NULL, NULL} }
Attribute structure of OffsetSurfacePy.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 25 of file OffsetSurfacePy.h.
PyMethodDef OffsetSurfacePy::Methods [static] |
{ {"uIso", (PyCFunction) staticCallback_uIso, METH_VARARGS, "Builds the U isoparametric line of this surface" }, {"vIso", (PyCFunction) staticCallback_vIso, METH_VARARGS, "Builds the V isoparametric line of this surface" }, {NULL, NULL, 0, NULL} }
Methods structure of OffsetSurfacePy.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 24 of file OffsetSurfacePy.h.
Referenced by _getattr().
PyParentObject OffsetSurfacePy::Parents = { PARENTSPartOffsetSurfacePy } [static] |
Reimplemented from Part::GeometrySurfacePy.
Definition at line 26 of file OffsetSurfacePy.h.
PyTypeObject OffsetSurfacePy::Type [static] |
Type structure of OffsetSurfacePy.
Reimplemented from Part::GeometrySurfacePy.
Definition at line 23 of file OffsetSurfacePy.h.
Referenced by initPart().