Part::CirclePy Class Reference

The python export class for GeomCircle. More...

#include <CirclePy.h>

Inheritance diagram for Part::CirclePy:
Part::GeometryCurvePy Part::GeometryPy Base::PyObjectBase

List of all members.

Public Types

typedef GeomCirclePointerType

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.
 CirclePy (GeomCircle *pcObject, PyTypeObject *T=&Type)
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones)
GeomCirclegetGeomCirclePtr (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)
 ~CirclePy ()

Static Public Member Functions

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

Static Public Attributes

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

callbacks and implementers for the python object attributes



Py::Object getAxis (void) const
 getter for the Axis attribute
Py::Object getCenter (void) const
 getter for the Center attribute
Py::Float getRadius (void) const
 getter for the Radius attribute
void setAxis (Py::Object arg)
 setter for the Axis attribute
void setCenter (Py::Object arg)
 setter for the Center attribute
void setRadius (Py::Float arg)
 setter for the Radius attribute
static PyObjectstaticCallback_getAxis (PyObject *self, void *closure)
 getter callback for the Axis attribute
static PyObjectstaticCallback_getCenter (PyObject *self, void *closure)
 getter callback for the Center attribute
static PyObjectstaticCallback_getRadius (PyObject *self, void *closure)
 getter callback for the Radius attribute
static int staticCallback_setAxis (PyObject *self, PyObject *value, void *closure)
 setter callback for the Axis attribute
static int staticCallback_setCenter (PyObject *self, PyObject *value, void *closure)
 setter callback for the Center attribute
static int staticCallback_setRadius (PyObject *self, PyObject *value, void *closure)
 setter callback for the Radius attribute

Detailed Description

The python export class for GeomCircle.

Definition at line 20 of file CirclePy.h.


Member Typedef Documentation

Reimplemented from Part::GeometryCurvePy.

Definition at line 36 of file CirclePy.h.


Constructor & Destructor Documentation

CirclePy::CirclePy ( GeomCircle pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 261 of file CirclePy.cpp.

Referenced by PyMake().

CirclePy::~CirclePy (  ) 

Definition at line 270 of file CirclePy.cpp.


Member Function Documentation

PyObject * CirclePy::_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::GeometryCurvePy.

Definition at line 285 of file CirclePy.cpp.

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

PyObject * CirclePy::_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::GeometryCurvePy.

Definition at line 277 of file CirclePy.cpp.

References representation().

int CirclePy::_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::GeometryCurvePy.

Definition at line 353 of file CirclePy.cpp.

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

Py::Object CirclePy::getAxis ( void   )  const

getter for the Axis attribute

Definition at line 200 of file CirclePyImp.cpp.

References getGeomCirclePtr(), and StartPage::StartPage::handle().

Referenced by staticCallback_getAxis().

Py::Object CirclePy::getCenter ( void   )  const

getter for the Center attribute

Definition at line 176 of file CirclePyImp.cpp.

References getGeomCirclePtr(), and StartPage::StartPage::handle().

Referenced by staticCallback_getCenter().

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

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 236 of file CirclePyImp.cpp.

Referenced by _getattr().

GeomCircle * CirclePy::getGeomCirclePtr ( void   )  const

getter for the object handled by this class

Definition at line 412 of file CirclePy.cpp.

References Base::PyObjectBase::_pcTwinPointer.

Referenced by getAxis(), getCenter(), getRadius(), Part::CylinderPy::PyInit(), PyInit(), representation(), setAxis(), setCenter(), and setRadius().

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 28 of file CirclePy.h.

Py::Float CirclePy::getRadius ( void   )  const

getter for the Radius attribute

Definition at line 164 of file CirclePyImp.cpp.

References getGeomCirclePtr(), and StartPage::StartPage::handle().

Referenced by staticCallback_getRadius().

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 27 of file CirclePy.h.

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 60 of file CirclePyImp.cpp.

References CirclePy().

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 42 of file CirclePyImp.cpp.

References getGeomCirclePtr(), and StartPage::StartPage::handle().

Referenced by _repr().

void CirclePy::setAxis ( Py::Object  arg  ) 
void CirclePy::setCenter ( Py::Object  arg  ) 
int CirclePy::setCustomAttributes ( const char *  attr,
PyObject obj 
)

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 241 of file CirclePyImp.cpp.

Referenced by _setattr().

void CirclePy::setRadius ( Py::Float  arg  ) 

setter for the Radius attribute

Definition at line 170 of file CirclePyImp.cpp.

References getGeomCirclePtr(), and StartPage::StartPage::handle().

PyObject * CirclePy::staticCallback_getAxis ( PyObject self,
void *  closure 
) [static]

getter callback for the Axis attribute

Definition at line 210 of file CirclePy.cpp.

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

PyObject * CirclePy::staticCallback_getCenter ( PyObject self,
void *  closure 
) [static]

getter callback for the Center attribute

Definition at line 166 of file CirclePy.cpp.

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

PyObject * CirclePy::staticCallback_getRadius ( PyObject self,
void *  closure 
) [static]

getter callback for the Radius attribute

Definition at line 122 of file CirclePy.cpp.

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

int CirclePy::staticCallback_setAxis ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Axis attribute

Definition at line 228 of file CirclePy.cpp.

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

int CirclePy::staticCallback_setCenter ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Center attribute

Definition at line 184 of file CirclePy.cpp.

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

int CirclePy::staticCallback_setRadius ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Radius attribute

Definition at line 140 of file CirclePy.cpp.

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


Member Data Documentation

PyGetSetDef CirclePy::GetterSetter [static]
Initial value:
 {
    {"Radius",
        (getter) staticCallback_getRadius,
        (setter) staticCallback_setRadius, 
        "The radius of the circle.",
        NULL
    },
    {"Center",
        (getter) staticCallback_getCenter,
        (setter) staticCallback_setCenter, 
        "Center of the circle.",
        NULL
    },
    {"Axis",
        (getter) staticCallback_getAxis,
        (setter) staticCallback_setAxis, 
        "The axis direction of the circle",
        NULL
    },
    {NULL, NULL, NULL, NULL, NULL}              
}

Attribute structure of CirclePy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 25 of file CirclePy.h.

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

Methods structure of CirclePy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 24 of file CirclePy.h.

Referenced by _getattr().

PyParentObject CirclePy::Parents = { PARENTSPartCirclePy } [static]

Reimplemented from Part::GeometryCurvePy.

Definition at line 26 of file CirclePy.h.

PyTypeObject CirclePy::Type [static]

Type structure of CirclePy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 23 of file CirclePy.h.

Referenced by initPart(), Part::CylinderPy::PyInit(), PyInit(), Part::ArcPy::PyInit(), and Part::ArcOfCirclePy::PyInit().


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

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