The python export class for Feature. More...
#include <MeshFeaturePy.h>
Public Types | |
typedef Feature * | 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) | |
Feature * | getFeaturePtr (void) const |
getter for the object handled by this class | |
virtual PyParentObject * | GetParents (void) |
virtual PyTypeObject * | GetType (void) |
MeshFeaturePy (Feature *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) | |
~MeshFeaturePy () | |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of MeshFeaturePy. | |
static PyMethodDef | Methods [] |
Methods structure of MeshFeaturePy. | |
static PyParentObject | Parents [] = { PARENTSMeshMeshFeaturePy } |
static PyTypeObject | Type |
Type structure of MeshFeaturePy. | |
callbacks and implementers for the python object methods | |
| |
PyObject * | countFacets (PyObject *args) |
implementer for the countFacets() method | |
PyObject * | countPoints (PyObject *args) |
implementer for the countPoints() method | |
PyObject * | fixDegenerations (PyObject *args) |
implementer for the fixDegenerations() method | |
PyObject * | fixIndices (PyObject *args) |
implementer for the fixIndices() method | |
PyObject * | fixSelfIntersections (PyObject *args) |
implementer for the fixSelfIntersections() method | |
PyObject * | harmonizeNormals (PyObject *args) |
implementer for the harmonizeNormals() method | |
PyObject * | removeDuplicatedFacets (PyObject *args) |
implementer for the removeDuplicatedFacets() method | |
PyObject * | removeDuplicatedPoints (PyObject *args) |
implementer for the removeDuplicatedPoints() method | |
PyObject * | removeFoldsOnSurface (PyObject *args) |
implementer for the removeFoldsOnSurface() method | |
PyObject * | removeNonManifolds (PyObject *args) |
implementer for the removeNonManifolds() method | |
PyObject * | smooth (PyObject *args) |
implementer for the smooth() method | |
static PyObject * | staticCallback_countFacets (PyObject *self, PyObject *args) |
callback for the countFacets() method | |
static PyObject * | staticCallback_countPoints (PyObject *self, PyObject *args) |
callback for the countPoints() method | |
static PyObject * | staticCallback_fixDegenerations (PyObject *self, PyObject *args) |
callback for the fixDegenerations() method | |
static PyObject * | staticCallback_fixIndices (PyObject *self, PyObject *args) |
callback for the fixIndices() method | |
static PyObject * | staticCallback_fixSelfIntersections (PyObject *self, PyObject *args) |
callback for the fixSelfIntersections() method | |
static PyObject * | staticCallback_harmonizeNormals (PyObject *self, PyObject *args) |
callback for the harmonizeNormals() method | |
static PyObject * | staticCallback_removeDuplicatedFacets (PyObject *self, PyObject *args) |
callback for the removeDuplicatedFacets() method | |
static PyObject * | staticCallback_removeDuplicatedPoints (PyObject *self, PyObject *args) |
callback for the removeDuplicatedPoints() method | |
static PyObject * | staticCallback_removeFoldsOnSurface (PyObject *self, PyObject *args) |
callback for the removeFoldsOnSurface() method | |
static PyObject * | staticCallback_removeNonManifolds (PyObject *self, PyObject *args) |
callback for the removeNonManifolds() method | |
static PyObject * | staticCallback_smooth (PyObject *self, PyObject *args) |
callback for the smooth() method |
The python export class for Feature.
Definition at line 20 of file MeshFeaturePy.h.
typedef Feature* Mesh::MeshFeaturePy::PointerType |
Reimplemented from App::DocumentObjectPy.
Reimplemented in Mesh::FeaturePythonPy.
Definition at line 36 of file MeshFeaturePy.h.
Definition at line 990 of file MeshFeaturePy.cpp.
MeshFeaturePy::~MeshFeaturePy | ( | ) |
Definition at line 1011 of file MeshFeaturePy.cpp.
PyObject * MeshFeaturePy::_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 App::DocumentObjectPy.
Reimplemented in Mesh::FeaturePythonPy.
Definition at line 1026 of file MeshFeaturePy.cpp.
References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().
PyObject * MeshFeaturePy::_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 App::DocumentObjectPy.
Reimplemented in Mesh::FeaturePythonPy.
Definition at line 1018 of file MeshFeaturePy.cpp.
References representation().
int MeshFeaturePy::_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 App::DocumentObjectPy.
Reimplemented in Mesh::FeaturePythonPy.
Definition at line 1094 of file MeshFeaturePy.cpp.
References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().
implementer for the countFacets() method
Definition at line 53 of file MeshFeaturePyImp.cpp.
References getFeaturePtr().
implementer for the countPoints() method
Definition at line 48 of file MeshFeaturePyImp.cpp.
References getFeaturePtr().
implementer for the fixDegenerations() method
Definition at line 106 of file MeshFeaturePyImp.cpp.
References getFeaturePtr(), Mesh::Feature::Mesh, PY_CATCH, Py_Return, PY_TRY, and Mesh::PropertyMeshKernel::validateDegenerations().
implementer for the fixIndices() method
Definition at line 94 of file MeshFeaturePyImp.cpp.
References getFeaturePtr(), Mesh::Feature::Mesh, PY_CATCH, Py_Return, PY_TRY, and Mesh::PropertyMeshKernel::validateIndices().
implementer for the fixSelfIntersections() method
Definition at line 142 of file MeshFeaturePyImp.cpp.
References getFeaturePtr(), Mesh::Feature::Mesh, Py_Return, Mesh::PropertyMeshKernel::removeSelfIntersections(), and Base::Exception::what().
PyObject * MeshFeaturePy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
Reimplemented from App::DocumentObjectPy.
Reimplemented in Mesh::FeaturePythonPy.
Definition at line 170 of file MeshFeaturePyImp.cpp.
Referenced by _getattr().
Feature * MeshFeaturePy::getFeaturePtr | ( | void | ) | const |
getter for the object handled by this class
Reimplemented in Mesh::FeaturePythonPy.
Definition at line 1153 of file MeshFeaturePy.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Referenced by countFacets(), countPoints(), fixDegenerations(), fixIndices(), fixSelfIntersections(), harmonizeNormals(), removeDuplicatedFacets(), removeDuplicatedPoints(), removeFoldsOnSurface(), removeNonManifolds(), representation(), and smooth().
virtual PyParentObject* Mesh::MeshFeaturePy::GetParents | ( | void | ) | [inline, virtual] |
Reimplemented from App::DocumentObjectPy.
Reimplemented in Mesh::FeaturePythonPy.
Definition at line 28 of file MeshFeaturePy.h.
virtual PyTypeObject* Mesh::MeshFeaturePy::GetType | ( | void | ) | [inline, virtual] |
Reimplemented from App::DocumentObjectPy.
Reimplemented in Mesh::FeaturePythonPy.
Definition at line 27 of file MeshFeaturePy.h.
implementer for the harmonizeNormals() method
Definition at line 58 of file MeshFeaturePyImp.cpp.
References Mesh::PropertyMeshKernel::finishEditing(), getFeaturePtr(), Mesh::MeshObject::harmonizeNormals(), Mesh::Feature::Mesh, Mesh2Shape::mesh, PY_CATCH, Py_Return, PY_TRY, and Mesh::PropertyMeshKernel::startEditing().
PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).
Reimplemented from App::DocumentObjectPy.
Reimplemented in Mesh::FeaturePythonPy.
Definition at line 1003 of file MeshFeaturePy.cpp.
Reimplemented from App::DocumentObjectPy.
Reimplemented in Mesh::FeaturePythonPy.
Definition at line 995 of file MeshFeaturePy.cpp.
implementer for the removeDuplicatedFacets() method
Definition at line 118 of file MeshFeaturePyImp.cpp.
References getFeaturePtr(), Mesh::Feature::Mesh, PY_CATCH, Py_Return, PY_TRY, and Mesh::PropertyMeshKernel::removeDuplicatedFacets().
implementer for the removeDuplicatedPoints() method
Definition at line 130 of file MeshFeaturePyImp.cpp.
References getFeaturePtr(), Mesh::Feature::Mesh, PY_CATCH, Py_Return, PY_TRY, and Mesh::PropertyMeshKernel::removeDuplicatedPoints().
implementer for the removeFoldsOnSurface() method
Definition at line 156 of file MeshFeaturePyImp.cpp.
References getFeaturePtr(), Mesh::Feature::Mesh, Py_Return, Mesh::PropertyMeshKernel::removeFoldsOnSurface(), and Base::Exception::what().
implementer for the removeNonManifolds() method
Definition at line 86 of file MeshFeaturePyImp.cpp.
References getFeaturePtr(), Mesh::Feature::Mesh, Py_Return, and Mesh::PropertyMeshKernel::removeNonManifolds().
std::string MeshFeaturePy::representation | ( | void | ) | const |
Reimplemented from App::DocumentObjectPy.
Reimplemented in Mesh::FeaturePythonPy.
Definition at line 40 of file MeshFeaturePyImp.cpp.
References getFeaturePtr(), Base::Type::getName(), and Mesh::Feature::getTypeId().
Referenced by _repr().
int MeshFeaturePy::setCustomAttributes | ( | const char * | attr, | |
PyObject * | obj | |||
) |
setter for special attributes (e.g. dynamic ones)
Reimplemented from App::DocumentObjectPy.
Reimplemented in Mesh::FeaturePythonPy.
Definition at line 175 of file MeshFeaturePyImp.cpp.
Referenced by _setattr().
implementer for the smooth() method
Definition at line 72 of file MeshFeaturePyImp.cpp.
References FLOAT_MAX, getFeaturePtr(), Mesh::Feature::Mesh, PY_CATCH, Py_Return, PY_TRY, and Mesh::PropertyMeshKernel::smooth().
callback for the countFacets() method
Definition at line 223 of file MeshFeaturePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
callback for the countPoints() method
Definition at line 147 of file MeshFeaturePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * MeshFeaturePy::staticCallback_fixDegenerations | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the fixDegenerations() method
Definition at line 603 of file MeshFeaturePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
callback for the fixIndices() method
Definition at line 527 of file MeshFeaturePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * MeshFeaturePy::staticCallback_fixSelfIntersections | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the fixSelfIntersections() method
Definition at line 831 of file MeshFeaturePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * MeshFeaturePy::staticCallback_harmonizeNormals | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the harmonizeNormals() method
Definition at line 299 of file MeshFeaturePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * MeshFeaturePy::staticCallback_removeDuplicatedFacets | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the removeDuplicatedFacets() method
Definition at line 679 of file MeshFeaturePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * MeshFeaturePy::staticCallback_removeDuplicatedPoints | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the removeDuplicatedPoints() method
Definition at line 755 of file MeshFeaturePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * MeshFeaturePy::staticCallback_removeFoldsOnSurface | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the removeFoldsOnSurface() method
Definition at line 907 of file MeshFeaturePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * MeshFeaturePy::staticCallback_removeNonManifolds | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the removeNonManifolds() method
Definition at line 451 of file MeshFeaturePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
callback for the smooth() method
Definition at line 375 of file MeshFeaturePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyGetSetDef MeshFeaturePy::GetterSetter [static] |
{ {NULL, NULL, NULL, NULL, NULL} }
Attribute structure of MeshFeaturePy.
Reimplemented from App::DocumentObjectPy.
Reimplemented in Mesh::FeaturePythonPy.
Definition at line 25 of file MeshFeaturePy.h.
PyMethodDef MeshFeaturePy::Methods [static] |
Methods structure of MeshFeaturePy.
Reimplemented from App::DocumentObjectPy.
Reimplemented in Mesh::FeaturePythonPy.
Definition at line 24 of file MeshFeaturePy.h.
Referenced by _getattr().
PyParentObject MeshFeaturePy::Parents = { PARENTSMeshMeshFeaturePy } [static] |
Reimplemented from App::DocumentObjectPy.
Reimplemented in Mesh::FeaturePythonPy.
Definition at line 26 of file MeshFeaturePy.h.
PyTypeObject MeshFeaturePy::Type [static] |
Type structure of MeshFeaturePy.
Reimplemented from App::DocumentObjectPy.
Reimplemented in Mesh::FeaturePythonPy.
Definition at line 23 of file MeshFeaturePy.h.
Referenced by initMesh().