Mesh::MeshFeaturePy Class Reference

The python export class for Feature. More...

#include <MeshFeaturePy.h>

Inheritance diagram for Mesh::MeshFeaturePy:
App::DocumentObjectPy App::PropertyContainerPy Base::PersistencePy Base::BaseClassPy Base::PyObjectBase Mesh::FeaturePythonPy

List of all members.

Public Types

typedef FeaturePointerType

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.
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones)
FeaturegetFeaturePtr (void) const
 getter for the object handled by this class
virtual PyParentObjectGetParents (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 PyObjectPyMake (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



PyObjectcountFacets (PyObject *args)
 implementer for the countFacets() method
PyObjectcountPoints (PyObject *args)
 implementer for the countPoints() method
PyObjectfixDegenerations (PyObject *args)
 implementer for the fixDegenerations() method
PyObjectfixIndices (PyObject *args)
 implementer for the fixIndices() method
PyObjectfixSelfIntersections (PyObject *args)
 implementer for the fixSelfIntersections() method
PyObjectharmonizeNormals (PyObject *args)
 implementer for the harmonizeNormals() method
PyObjectremoveDuplicatedFacets (PyObject *args)
 implementer for the removeDuplicatedFacets() method
PyObjectremoveDuplicatedPoints (PyObject *args)
 implementer for the removeDuplicatedPoints() method
PyObjectremoveFoldsOnSurface (PyObject *args)
 implementer for the removeFoldsOnSurface() method
PyObjectremoveNonManifolds (PyObject *args)
 implementer for the removeNonManifolds() method
PyObjectsmooth (PyObject *args)
 implementer for the smooth() method
static PyObjectstaticCallback_countFacets (PyObject *self, PyObject *args)
 callback for the countFacets() method
static PyObjectstaticCallback_countPoints (PyObject *self, PyObject *args)
 callback for the countPoints() method
static PyObjectstaticCallback_fixDegenerations (PyObject *self, PyObject *args)
 callback for the fixDegenerations() method
static PyObjectstaticCallback_fixIndices (PyObject *self, PyObject *args)
 callback for the fixIndices() method
static PyObjectstaticCallback_fixSelfIntersections (PyObject *self, PyObject *args)
 callback for the fixSelfIntersections() method
static PyObjectstaticCallback_harmonizeNormals (PyObject *self, PyObject *args)
 callback for the harmonizeNormals() method
static PyObjectstaticCallback_removeDuplicatedFacets (PyObject *self, PyObject *args)
 callback for the removeDuplicatedFacets() method
static PyObjectstaticCallback_removeDuplicatedPoints (PyObject *self, PyObject *args)
 callback for the removeDuplicatedPoints() method
static PyObjectstaticCallback_removeFoldsOnSurface (PyObject *self, PyObject *args)
 callback for the removeFoldsOnSurface() method
static PyObjectstaticCallback_removeNonManifolds (PyObject *self, PyObject *args)
 callback for the removeNonManifolds() method
static PyObjectstaticCallback_smooth (PyObject *self, PyObject *args)
 callback for the smooth() method

Detailed Description

The python export class for Feature.

Definition at line 20 of file MeshFeaturePy.h.


Member Typedef Documentation

Reimplemented from App::DocumentObjectPy.

Reimplemented in Mesh::FeaturePythonPy.

Definition at line 36 of file MeshFeaturePy.h.


Constructor & Destructor Documentation

MeshFeaturePy::MeshFeaturePy ( Feature pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 990 of file MeshFeaturePy.cpp.

MeshFeaturePy::~MeshFeaturePy (  ) 

Definition at line 1011 of file MeshFeaturePy.cpp.


Member Function Documentation

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().

PyObject * MeshFeaturePy::countFacets ( PyObject args  ) 

implementer for the countFacets() method

Definition at line 53 of file MeshFeaturePyImp.cpp.

References getFeaturePtr().

PyObject * MeshFeaturePy::countPoints ( PyObject args  ) 

implementer for the countPoints() method

Definition at line 48 of file MeshFeaturePyImp.cpp.

References getFeaturePtr().

PyObject * MeshFeaturePy::fixDegenerations ( PyObject args  ) 
PyObject * MeshFeaturePy::fixIndices ( PyObject args  ) 
PyObject * MeshFeaturePy::fixSelfIntersections ( PyObject args  ) 
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
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.

PyObject * MeshFeaturePy::harmonizeNormals ( PyObject args  ) 
int MeshFeaturePy::PyInit ( PyObject ,
PyObject  
) [virtual]

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.

PyObject * MeshFeaturePy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
) [static]

Reimplemented from App::DocumentObjectPy.

Reimplemented in Mesh::FeaturePythonPy.

Definition at line 995 of file MeshFeaturePy.cpp.

PyObject * MeshFeaturePy::removeDuplicatedFacets ( PyObject args  ) 
PyObject * MeshFeaturePy::removeDuplicatedPoints ( PyObject args  ) 
PyObject * MeshFeaturePy::removeFoldsOnSurface ( PyObject args  ) 
PyObject * MeshFeaturePy::removeNonManifolds ( PyObject args  ) 
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().

PyObject * MeshFeaturePy::smooth ( PyObject args  ) 

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().

PyObject * MeshFeaturePy::staticCallback_countFacets ( PyObject self,
PyObject args 
) [static]
PyObject * MeshFeaturePy::staticCallback_countPoints ( PyObject self,
PyObject args 
) [static]
PyObject * MeshFeaturePy::staticCallback_fixDegenerations ( PyObject self,
PyObject args 
) [static]
PyObject * MeshFeaturePy::staticCallback_fixIndices ( PyObject self,
PyObject args 
) [static]
PyObject * MeshFeaturePy::staticCallback_fixSelfIntersections ( PyObject self,
PyObject args 
) [static]
PyObject * MeshFeaturePy::staticCallback_harmonizeNormals ( PyObject self,
PyObject args 
) [static]
PyObject * MeshFeaturePy::staticCallback_removeDuplicatedFacets ( PyObject self,
PyObject args 
) [static]
PyObject * MeshFeaturePy::staticCallback_removeDuplicatedPoints ( PyObject self,
PyObject args 
) [static]
PyObject * MeshFeaturePy::staticCallback_removeFoldsOnSurface ( PyObject self,
PyObject args 
) [static]
PyObject * MeshFeaturePy::staticCallback_removeNonManifolds ( PyObject self,
PyObject args 
) [static]
PyObject * MeshFeaturePy::staticCallback_smooth ( PyObject self,
PyObject args 
) [static]

Member Data Documentation

PyGetSetDef MeshFeaturePy::GetterSetter [static]
Initial value:
 {
    {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().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:21 2011 for FreeCAD by  doxygen 1.6.1