Part::TopoShapeShellPy Class Reference

The python export class for TopoShape. More...

#include <TopoShapeShellPy.h>

Inheritance diagram for Part::TopoShapeShellPy:
Part::TopoShapePy Data::ComplexGeoDataPy Base::PersistencePy Base::BaseClassPy Base::PyObjectBase

List of all members.

Public Types

typedef TopoShapePointerType

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)
virtual PyParentObjectGetParents (void)
TopoShapegetTopoShapePtr (void) const
 getter for the object handled by this class
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)
 TopoShapeShellPy (TopoShape *pcObject, PyTypeObject *T=&Type)
 ~TopoShapeShellPy ()

Static Public Member Functions

static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)

Static Public Attributes

static PyGetSetDef GetterSetter []
 Attribute structure of TopoShapeShellPy.
static PyMethodDef Methods []
 Methods structure of TopoShapeShellPy.
static PyParentObject Parents [] = { PARENTSPartTopoShapeShellPy }
static PyTypeObject Type
 Type structure of TopoShapeShellPy.

callbacks and implementers for the python object methods



PyObjectadd (PyObject *args)
 implementer for the add() method
PyObjectgetBadEdges (PyObject *args)
 implementer for the getBadEdges() method
PyObjectgetFreeEdges (PyObject *args)
 implementer for the getFreeEdges() method
PyObjectmakeHalfSpace (PyObject *args)
 implementer for the makeHalfSpace() method
static PyObjectstaticCallback_add (PyObject *self, PyObject *args)
 callback for the add() method
static PyObjectstaticCallback_getBadEdges (PyObject *self, PyObject *args)
 callback for the getBadEdges() method
static PyObjectstaticCallback_getFreeEdges (PyObject *self, PyObject *args)
 callback for the getFreeEdges() method
static PyObjectstaticCallback_makeHalfSpace (PyObject *self, PyObject *args)
 callback for the makeHalfSpace() method

Detailed Description

The python export class for TopoShape.

Definition at line 20 of file TopoShapeShellPy.h.


Member Typedef Documentation

Reimplemented from Part::TopoShapePy.

Definition at line 36 of file TopoShapeShellPy.h.


Constructor & Destructor Documentation

TopoShapeShellPy::TopoShapeShellPy ( TopoShape pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 419 of file TopoShapeShellPy.cpp.

Referenced by PyMake().

TopoShapeShellPy::~TopoShapeShellPy (  ) 

Definition at line 428 of file TopoShapeShellPy.cpp.


Member Function Documentation

PyObject * TopoShapeShellPy::_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::TopoShapePy.

Definition at line 443 of file TopoShapeShellPy.cpp.

References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().

PyObject * TopoShapeShellPy::_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::TopoShapePy.

Definition at line 435 of file TopoShapeShellPy.cpp.

References representation().

int TopoShapeShellPy::_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::TopoShapePy.

Definition at line 511 of file TopoShapeShellPy.cpp.

References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().

PyObject * TopoShapeShellPy::add ( PyObject args  ) 
PyObject * TopoShapeShellPy::getBadEdges ( PyObject args  ) 

implementer for the getBadEdges() method

Definition at line 161 of file TopoShapeShellPyImp.cpp.

References getTopoShapePtr().

PyObject * TopoShapeShellPy::getCustomAttributes ( const char *  attr  )  const

getter method for special attributes (e.g. dynamic ones)

Reimplemented from Part::TopoShapePy.

Definition at line 194 of file TopoShapeShellPyImp.cpp.

Referenced by _getattr().

PyObject * TopoShapeShellPy::getFreeEdges ( PyObject args  ) 

implementer for the getFreeEdges() method

Definition at line 146 of file TopoShapeShellPyImp.cpp.

References getTopoShapePtr().

virtual PyParentObject* Part::TopoShapeShellPy::GetParents ( void   )  [inline, virtual]

Reimplemented from Part::TopoShapePy.

Definition at line 28 of file TopoShapeShellPy.h.

TopoShape * TopoShapeShellPy::getTopoShapePtr ( void   )  const

getter for the object handled by this class

Reimplemented from Part::TopoShapePy.

Definition at line 570 of file TopoShapeShellPy.cpp.

References Base::PyObjectBase::_pcTwinPointer.

Referenced by add(), getBadEdges(), getFreeEdges(), makeHalfSpace(), PyInit(), and representation().

virtual PyTypeObject* Part::TopoShapeShellPy::GetType ( void   )  [inline, virtual]

Reimplemented from Part::TopoShapePy.

Definition at line 27 of file TopoShapeShellPy.h.

PyObject * TopoShapeShellPy::makeHalfSpace ( PyObject args  ) 
int TopoShapeShellPy::PyInit ( PyObject ,
PyObject  
) [virtual]

PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).

Reimplemented from Part::TopoShapePy.

Definition at line 73 of file TopoShapeShellPyImp.cpp.

References Part::TopoShape::_Shape, Py::SeqBase< T >::begin(), Part::TopoShapePy::check(), Py::SeqBase< T >::end(), getTopoShapePtr(), Mesh2Shape::shell, and Part::TopoShapeFacePy::Type.

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

Reimplemented from Part::TopoShapePy.

Definition at line 66 of file TopoShapeShellPyImp.cpp.

References TopoShapeShellPy().

std::string TopoShapeShellPy::representation ( void   )  const

Reimplemented from Part::TopoShapePy.

Definition at line 51 of file TopoShapeShellPyImp.cpp.

References getTopoShapePtr().

Referenced by _repr().

int TopoShapeShellPy::setCustomAttributes ( const char *  attr,
PyObject obj 
)

setter for special attributes (e.g. dynamic ones)

Reimplemented from Part::TopoShapePy.

Definition at line 199 of file TopoShapeShellPyImp.cpp.

Referenced by _setattr().

PyObject * TopoShapeShellPy::staticCallback_add ( PyObject self,
PyObject args 
) [static]
PyObject * TopoShapeShellPy::staticCallback_getBadEdges ( PyObject self,
PyObject args 
) [static]
PyObject * TopoShapeShellPy::staticCallback_getFreeEdges ( PyObject self,
PyObject args 
) [static]
PyObject * TopoShapeShellPy::staticCallback_makeHalfSpace ( PyObject self,
PyObject args 
) [static]

Member Data Documentation

PyGetSetDef TopoShapeShellPy::GetterSetter [static]
Initial value:
 {
    {NULL, NULL, NULL, NULL, NULL}              
}

Attribute structure of TopoShapeShellPy.

Reimplemented from Part::TopoShapePy.

Definition at line 25 of file TopoShapeShellPy.h.

PyMethodDef TopoShapeShellPy::Methods [static]
Initial value:
 {
    {"add",
        (PyCFunction) staticCallback_add,
        METH_VARARGS,
        "Add a face to the shell."
    },
    {"getFreeEdges",
        (PyCFunction) staticCallback_getFreeEdges,
        METH_VARARGS,
        "Get free edges as compound."
    },
    {"getBadEdges",
        (PyCFunction) staticCallback_getBadEdges,
        METH_VARARGS,
        "Get bad edges as compound."
    },
    {"makeHalfSpace",
        (PyCFunction) staticCallback_makeHalfSpace,
        METH_VARARGS,
        "Make a half-space solid by this shell and a reference point."
    },
    {NULL, NULL, 0, NULL}               
}

Methods structure of TopoShapeShellPy.

Reimplemented from Part::TopoShapePy.

Definition at line 24 of file TopoShapeShellPy.h.

Referenced by _getattr().

PyParentObject TopoShapeShellPy::Parents = { PARENTSPartTopoShapeShellPy } [static]

Reimplemented from Part::TopoShapePy.

Definition at line 26 of file TopoShapeShellPy.h.

PyTypeObject TopoShapeShellPy::Type [static]

Type structure of TopoShapeShellPy.

Reimplemented from Part::TopoShapePy.

Definition at line 23 of file TopoShapeShellPy.h.

Referenced by initPart().


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

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