Part::SurfaceOfExtrusionPy Class Reference

The python export class for GeomSurfaceOfExtrusion. More...

#include <SurfaceOfExtrusionPy.h>

Inheritance diagram for Part::SurfaceOfExtrusionPy:
Part::GeometrySurfacePy Part::GeometryPy Base::PyObjectBase

List of all members.

Public Types

typedef GeomSurfaceOfExtrusionPointerType

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)
GeomSurfaceOfExtrusiongetGeomSurfaceOfExtrusionPtr (void) const
 getter for the object handled by this class
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)
 SurfaceOfExtrusionPy (GeomSurfaceOfExtrusion *pcObject, PyTypeObject *T=&Type)
 ~SurfaceOfExtrusionPy ()

Static Public Member Functions

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

Static Public Attributes

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

callbacks and implementers for the python object attributes



Py::Object getBasisCurve (void) const
 getter for the BasisCurve attribute
Py::Object getDirection (void) const
 getter for the Direction attribute
void setBasisCurve (Py::Object arg)
 setter for the BasisCurve attribute
void setDirection (Py::Object arg)
 setter for the Direction attribute
static PyObjectstaticCallback_getBasisCurve (PyObject *self, void *closure)
 getter callback for the BasisCurve attribute
static PyObjectstaticCallback_getDirection (PyObject *self, void *closure)
 getter callback for the Direction attribute
static int staticCallback_setBasisCurve (PyObject *self, PyObject *value, void *closure)
 setter callback for the BasisCurve attribute
static int staticCallback_setDirection (PyObject *self, PyObject *value, void *closure)
 setter callback for the Direction attribute

Detailed Description

The python export class for GeomSurfaceOfExtrusion.

Definition at line 20 of file SurfaceOfExtrusionPy.h.


Member Typedef Documentation

Reimplemented from Part::GeometrySurfacePy.

Definition at line 36 of file SurfaceOfExtrusionPy.h.


Constructor & Destructor Documentation

SurfaceOfExtrusionPy::SurfaceOfExtrusionPy ( GeomSurfaceOfExtrusion pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 195 of file SurfaceOfExtrusionPy.cpp.

Referenced by PyMake().

SurfaceOfExtrusionPy::~SurfaceOfExtrusionPy (  ) 

Definition at line 204 of file SurfaceOfExtrusionPy.cpp.


Member Function Documentation

PyObject * SurfaceOfExtrusionPy::_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 219 of file SurfaceOfExtrusionPy.cpp.

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

PyObject * SurfaceOfExtrusionPy::_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 211 of file SurfaceOfExtrusionPy.cpp.

References representation().

int SurfaceOfExtrusionPy::_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 287 of file SurfaceOfExtrusionPy.cpp.

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

Py::Object SurfaceOfExtrusionPy::getBasisCurve ( void   )  const

getter for the BasisCurve attribute

Definition at line 112 of file SurfaceOfExtrusionPyImp.cpp.

Referenced by staticCallback_getBasisCurve().

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

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 140 of file SurfaceOfExtrusionPyImp.cpp.

Referenced by _getattr().

Py::Object SurfaceOfExtrusionPy::getDirection ( void   )  const

getter for the Direction attribute

Definition at line 82 of file SurfaceOfExtrusionPyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().

Referenced by staticCallback_getDirection().

GeomSurfaceOfExtrusion * SurfaceOfExtrusionPy::getGeomSurfaceOfExtrusionPtr ( void   )  const

getter for the object handled by this class

Definition at line 346 of file SurfaceOfExtrusionPy.cpp.

References Base::PyObjectBase::_pcTwinPointer.

Referenced by PyInit().

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 28 of file SurfaceOfExtrusionPy.h.

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 27 of file SurfaceOfExtrusionPy.h.

int SurfaceOfExtrusionPy::PyInit ( PyObject ,
PyObject  
) [virtual]
PyObject * SurfaceOfExtrusionPy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
) [static]

Reimplemented from Part::GeometrySurfacePy.

Definition at line 44 of file SurfaceOfExtrusionPyImp.cpp.

References SurfaceOfExtrusionPy().

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 39 of file SurfaceOfExtrusionPyImp.cpp.

Referenced by _repr().

void SurfaceOfExtrusionPy::setBasisCurve ( Py::Object  arg  ) 
int SurfaceOfExtrusionPy::setCustomAttributes ( const char *  attr,
PyObject obj 
)

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 145 of file SurfaceOfExtrusionPyImp.cpp.

Referenced by _setattr().

void SurfaceOfExtrusionPy::setDirection ( Py::Object  arg  ) 
PyObject * SurfaceOfExtrusionPy::staticCallback_getBasisCurve ( PyObject self,
void *  closure 
) [static]

getter callback for the BasisCurve attribute

Definition at line 144 of file SurfaceOfExtrusionPy.cpp.

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

PyObject * SurfaceOfExtrusionPy::staticCallback_getDirection ( PyObject self,
void *  closure 
) [static]

getter callback for the Direction attribute

Definition at line 100 of file SurfaceOfExtrusionPy.cpp.

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

int SurfaceOfExtrusionPy::staticCallback_setBasisCurve ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the BasisCurve attribute

Definition at line 162 of file SurfaceOfExtrusionPy.cpp.

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

int SurfaceOfExtrusionPy::staticCallback_setDirection ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Direction attribute

Definition at line 118 of file SurfaceOfExtrusionPy.cpp.

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


Member Data Documentation

PyGetSetDef SurfaceOfExtrusionPy::GetterSetter [static]
Initial value:
 {
    {"Direction",
        (getter) staticCallback_getDirection,
        (setter) staticCallback_setDirection, 
        "\n                                     Sets or gets the direction of revolution.\n                             ",
        NULL
    },
    {"BasisCurve",
        (getter) staticCallback_getBasisCurve,
        (setter) staticCallback_setBasisCurve, 
        "\n                                     Sets or gets the basic curve.\n                         ",
        NULL
    },
    {NULL, NULL, NULL, NULL, NULL}              
}

Attribute structure of SurfaceOfExtrusionPy.

Reimplemented from Part::GeometrySurfacePy.

Definition at line 25 of file SurfaceOfExtrusionPy.h.

PyMethodDef SurfaceOfExtrusionPy::Methods [static]
Initial value:
 {
    {NULL, NULL, 0, NULL}               
}

Methods structure of SurfaceOfExtrusionPy.

Reimplemented from Part::GeometrySurfacePy.

Definition at line 24 of file SurfaceOfExtrusionPy.h.

Referenced by _getattr().

PyParentObject SurfaceOfExtrusionPy::Parents = { PARENTSPartSurfaceOfExtrusionPy } [static]

Reimplemented from Part::GeometrySurfacePy.

Definition at line 26 of file SurfaceOfExtrusionPy.h.

PyTypeObject SurfaceOfExtrusionPy::Type [static]

Type structure of SurfaceOfExtrusionPy.

Reimplemented from Part::GeometrySurfacePy.

Definition at line 23 of file SurfaceOfExtrusionPy.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