Part::SurfaceOfRevolutionPy Class Reference

The python export class for GeomSurfaceOfRevolution. More...

#include <SurfaceOfRevolutionPy.h>

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

List of all members.

Public Types

typedef GeomSurfaceOfRevolutionPointerType

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)
GeomSurfaceOfRevolutiongetGeomSurfaceOfRevolutionPtr (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)
 SurfaceOfRevolutionPy (GeomSurfaceOfRevolution *pcObject, PyTypeObject *T=&Type)
 ~SurfaceOfRevolutionPy ()

Static Public Member Functions

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

Static Public Attributes

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

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
Py::Object getLocation (void) const
 getter for the Location attribute
void setBasisCurve (Py::Object arg)
 setter for the BasisCurve attribute
void setDirection (Py::Object arg)
 setter for the Direction attribute
void setLocation (Py::Object arg)
 setter for the Location 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 PyObjectstaticCallback_getLocation (PyObject *self, void *closure)
 getter callback for the Location 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
static int staticCallback_setLocation (PyObject *self, PyObject *value, void *closure)
 setter callback for the Location attribute

Detailed Description

The python export class for GeomSurfaceOfRevolution.

Definition at line 20 of file SurfaceOfRevolutionPy.h.


Member Typedef Documentation

Reimplemented from Part::GeometrySurfacePy.

Definition at line 36 of file SurfaceOfRevolutionPy.h.


Constructor & Destructor Documentation

SurfaceOfRevolutionPy::SurfaceOfRevolutionPy ( GeomSurfaceOfRevolution pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 245 of file SurfaceOfRevolutionPy.cpp.

Referenced by PyMake().

SurfaceOfRevolutionPy::~SurfaceOfRevolutionPy (  ) 

Definition at line 254 of file SurfaceOfRevolutionPy.cpp.


Member Function Documentation

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

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

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

References representation().

int SurfaceOfRevolutionPy::_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 337 of file SurfaceOfRevolutionPy.cpp.

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

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

getter for the BasisCurve attribute

Definition at line 146 of file SurfaceOfRevolutionPyImp.cpp.

Referenced by staticCallback_getBasisCurve().

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

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 174 of file SurfaceOfRevolutionPyImp.cpp.

Referenced by _getattr().

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

getter for the Direction attribute

Definition at line 116 of file SurfaceOfRevolutionPyImp.cpp.

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

Referenced by staticCallback_getDirection().

GeomSurfaceOfRevolution * SurfaceOfRevolutionPy::getGeomSurfaceOfRevolutionPtr ( void   )  const

getter for the object handled by this class

Definition at line 396 of file SurfaceOfRevolutionPy.cpp.

References Base::PyObjectBase::_pcTwinPointer.

Referenced by PyInit().

Py::Object SurfaceOfRevolutionPy::getLocation ( void   )  const

getter for the Location attribute

Definition at line 86 of file SurfaceOfRevolutionPyImp.cpp.

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

Referenced by staticCallback_getLocation().

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 28 of file SurfaceOfRevolutionPy.h.

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 27 of file SurfaceOfRevolutionPy.h.

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 44 of file SurfaceOfRevolutionPyImp.cpp.

References SurfaceOfRevolutionPy().

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 39 of file SurfaceOfRevolutionPyImp.cpp.

Referenced by _repr().

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

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 179 of file SurfaceOfRevolutionPyImp.cpp.

Referenced by _setattr().

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

getter callback for the BasisCurve attribute

Definition at line 194 of file SurfaceOfRevolutionPy.cpp.

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

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

getter callback for the Direction attribute

Definition at line 150 of file SurfaceOfRevolutionPy.cpp.

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

PyObject * SurfaceOfRevolutionPy::staticCallback_getLocation ( PyObject self,
void *  closure 
) [static]

getter callback for the Location attribute

Definition at line 106 of file SurfaceOfRevolutionPy.cpp.

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

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

setter callback for the BasisCurve attribute

Definition at line 212 of file SurfaceOfRevolutionPy.cpp.

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

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

setter callback for the Direction attribute

Definition at line 168 of file SurfaceOfRevolutionPy.cpp.

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

int SurfaceOfRevolutionPy::staticCallback_setLocation ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Location attribute

Definition at line 124 of file SurfaceOfRevolutionPy.cpp.

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


Member Data Documentation

Initial value:
 {
    {"Location",
        (getter) staticCallback_getLocation,
        (setter) staticCallback_setLocation, 
        "\n                                     Sets or gets the location of revolution.\n                              ",
        NULL
    },
    {"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 SurfaceOfRevolutionPy.

Reimplemented from Part::GeometrySurfacePy.

Definition at line 25 of file SurfaceOfRevolutionPy.h.

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

Methods structure of SurfaceOfRevolutionPy.

Reimplemented from Part::GeometrySurfacePy.

Definition at line 24 of file SurfaceOfRevolutionPy.h.

Referenced by _getattr().

PyParentObject SurfaceOfRevolutionPy::Parents = { PARENTSPartSurfaceOfRevolutionPy } [static]

Reimplemented from Part::GeometrySurfacePy.

Definition at line 26 of file SurfaceOfRevolutionPy.h.

PyTypeObject SurfaceOfRevolutionPy::Type [static]

Type structure of SurfaceOfRevolutionPy.

Reimplemented from Part::GeometrySurfacePy.

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