Data::ComplexGeoDataPy Class Reference

The python export class for ComplexGeoData. More...

#include <ComplexGeoDataPy.h>

Inheritance diagram for Data::ComplexGeoDataPy:
Base::PersistencePy Base::BaseClassPy Base::PyObjectBase Fem::FemMeshPy Mesh::MeshPy Part::TopoShapePy Points::PointsPy Part::TopoShapeCompoundPy Part::TopoShapeCompSolidPy Part::TopoShapeEdgePy Part::TopoShapeFacePy Part::TopoShapeShellPy Part::TopoShapeSolidPy Part::TopoShapeVertexPy Part::TopoShapeWirePy

List of all members.

Public Types

typedef ComplexGeoDataPointerType

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.
 ComplexGeoDataPy (ComplexGeoData *pcObject, PyTypeObject *T=&Type)
ComplexGeoDatagetComplexGeoDataPtr (void) const
 getter for the object handled by this class
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones)
virtual PyParentObjectGetParents (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).
std::string representation (void) const
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. dynamic ones)
 ~ComplexGeoDataPy ()

Static Public Member Functions

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

Static Public Attributes

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

callbacks and implementers for the python object attributes



Py::Object getBoundBox (void) const
 getter for the BoundBox attribute
Py::Object getMatrix (void) const
 getter for the Matrix attribute
Py::Object getPlacement (void) const
 getter for the Placement attribute
void setMatrix (Py::Object arg)
 setter for the Matrix attribute
void setPlacement (Py::Object arg)
 setter for the Placement attribute
static PyObjectstaticCallback_getBoundBox (PyObject *self, void *closure)
 getter callback for the BoundBox attribute
static PyObjectstaticCallback_getMatrix (PyObject *self, void *closure)
 getter callback for the Matrix attribute
static PyObjectstaticCallback_getPlacement (PyObject *self, void *closure)
 getter callback for the Placement attribute
static int staticCallback_setBoundBox (PyObject *self, PyObject *value, void *closure)
 setter callback for the BoundBox attribute
static int staticCallback_setMatrix (PyObject *self, PyObject *value, void *closure)
 setter callback for the Matrix attribute
static int staticCallback_setPlacement (PyObject *self, PyObject *value, void *closure)
 setter callback for the Placement attribute

Detailed Description

The python export class for ComplexGeoData.

Definition at line 20 of file ComplexGeoDataPy.h.


Member Typedef Documentation


Constructor & Destructor Documentation

ComplexGeoDataPy::ComplexGeoDataPy ( ComplexGeoData pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 233 of file ComplexGeoDataPy.cpp.

References Base::Handled::ref().

ComplexGeoDataPy::~ComplexGeoDataPy (  ) 

Definition at line 255 of file ComplexGeoDataPy.cpp.

References getComplexGeoDataPtr(), and Base::Handled::unref().


Member Function Documentation

PyObject * ComplexGeoDataPy::_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 Base::PersistencePy.

Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.

Definition at line 271 of file ComplexGeoDataPy.cpp.

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

PyObject * ComplexGeoDataPy::_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 Base::PersistencePy.

Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.

Definition at line 263 of file ComplexGeoDataPy.cpp.

References representation().

int ComplexGeoDataPy::_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 Base::PersistencePy.

Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.

Definition at line 339 of file ComplexGeoDataPy.cpp.

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

Py::Object ComplexGeoDataPy::getBoundBox ( void   )  const

getter for the BoundBox attribute

Definition at line 45 of file ComplexGeoDataPyImp.cpp.

References getComplexGeoDataPtr().

Referenced by staticCallback_getBoundBox().

ComplexGeoData * ComplexGeoDataPy::getComplexGeoDataPtr ( void   )  const

getter for the object handled by this class

Definition at line 398 of file ComplexGeoDataPy.cpp.

References Base::PyObjectBase::_pcTwinPointer.

Referenced by getBoundBox(), getMatrix(), getPlacement(), setMatrix(), setPlacement(), and ~ComplexGeoDataPy().

PyObject * ComplexGeoDataPy::getCustomAttributes ( const char *  attr  )  const
Py::Object ComplexGeoDataPy::getMatrix ( void   )  const

getter for the Matrix attribute

Definition at line 69 of file ComplexGeoDataPyImp.cpp.

References getComplexGeoDataPtr().

Referenced by staticCallback_getMatrix().

virtual PyParentObject* Data::ComplexGeoDataPy::GetParents ( void   )  [inline, virtual]
Py::Object ComplexGeoDataPy::getPlacement ( void   )  const

getter for the Placement attribute

Definition at line 50 of file ComplexGeoDataPyImp.cpp.

References getComplexGeoDataPtr().

Referenced by staticCallback_getPlacement().

virtual PyTypeObject* Data::ComplexGeoDataPy::GetType ( void   )  [inline, virtual]
int ComplexGeoDataPy::PyInit ( PyObject ,
PyObject  
) [virtual]

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

Reimplemented from Base::PersistencePy.

Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.

Definition at line 247 of file ComplexGeoDataPy.cpp.

PyObject * ComplexGeoDataPy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
) [static]
std::string ComplexGeoDataPy::representation ( void   )  const
int ComplexGeoDataPy::setCustomAttributes ( const char *  attr,
PyObject obj 
)
void ComplexGeoDataPy::setMatrix ( Py::Object  arg  ) 
void ComplexGeoDataPy::setPlacement ( Py::Object  arg  ) 
PyObject * ComplexGeoDataPy::staticCallback_getBoundBox ( PyObject self,
void *  closure 
) [static]

getter callback for the BoundBox attribute

Definition at line 106 of file ComplexGeoDataPy.cpp.

References getBoundBox(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().

PyObject * ComplexGeoDataPy::staticCallback_getMatrix ( PyObject self,
void *  closure 
) [static]

getter callback for the Matrix attribute

Definition at line 182 of file ComplexGeoDataPy.cpp.

References getMatrix(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().

PyObject * ComplexGeoDataPy::staticCallback_getPlacement ( PyObject self,
void *  closure 
) [static]

getter callback for the Placement attribute

Definition at line 138 of file ComplexGeoDataPy.cpp.

References getPlacement(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().

int ComplexGeoDataPy::staticCallback_setBoundBox ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the BoundBox attribute

Definition at line 124 of file ComplexGeoDataPy.cpp.

References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().

int ComplexGeoDataPy::staticCallback_setMatrix ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Matrix attribute

Definition at line 200 of file ComplexGeoDataPy.cpp.

References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().

int ComplexGeoDataPy::staticCallback_setPlacement ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Placement attribute

Definition at line 156 of file ComplexGeoDataPy.cpp.

References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().


Member Data Documentation

PyGetSetDef ComplexGeoDataPy::GetterSetter [static]
Initial value:
 {
    {"BoundBox",
        (getter) staticCallback_getBoundBox,
        (setter) staticCallback_setBoundBox, 
        "Get the BoundBox of the object",
        NULL
    },
    {"Placement",
        (getter) staticCallback_getPlacement,
        (setter) staticCallback_setPlacement, 
        "Get the current transformation of the object as placement",
        NULL
    },
    {"Matrix",
        (getter) staticCallback_getMatrix,
        (setter) staticCallback_setMatrix, 
        "Get the current transformation of the object as matrix",
        NULL
    },
    {NULL, NULL, NULL, NULL, NULL}              
}

Attribute structure of ComplexGeoDataPy.

Reimplemented from Base::PersistencePy.

Reimplemented in Fem::FemMeshPy, Mesh::MeshPy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, and Points::PointsPy.

Definition at line 25 of file ComplexGeoDataPy.h.

PyMethodDef ComplexGeoDataPy::Methods [static]
PyParentObject ComplexGeoDataPy::Parents = { PARENTSDataComplexGeoDataPy } [static]
PyTypeObject ComplexGeoDataPy::Type [static]

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

Generated on Wed Nov 23 19:01:53 2011 for FreeCAD by  doxygen 1.6.1