Part::EllipsePy Class Reference

The python export class for GeomEllipse. More...

#include <EllipsePy.h>

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

List of all members.

Public Types

typedef GeomEllipsePointerType

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

Static Public Member Functions

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

Static Public Attributes

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

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 getEccentricity (void) const
 getter for the Eccentricity attribute
Py::Float getFocal (void) const
 getter for the Focal attribute
Py::Object getFocus1 (void) const
 getter for the Focus1 attribute
Py::Object getFocus2 (void) const
 getter for the Focus2 attribute
Py::Float getMajorRadius (void) const
 getter for the MajorRadius attribute
Py::Float getMinorRadius (void) const
 getter for the MinorRadius attribute
void setAxis (Py::Object arg)
 setter for the Axis attribute
void setCenter (Py::Object arg)
 setter for the Center attribute
void setMajorRadius (Py::Float arg)
 setter for the MajorRadius attribute
void setMinorRadius (Py::Float arg)
 setter for the MinorRadius 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_getEccentricity (PyObject *self, void *closure)
 getter callback for the Eccentricity attribute
static PyObjectstaticCallback_getFocal (PyObject *self, void *closure)
 getter callback for the Focal attribute
static PyObjectstaticCallback_getFocus1 (PyObject *self, void *closure)
 getter callback for the Focus1 attribute
static PyObjectstaticCallback_getFocus2 (PyObject *self, void *closure)
 getter callback for the Focus2 attribute
static PyObjectstaticCallback_getMajorRadius (PyObject *self, void *closure)
 getter callback for the MajorRadius attribute
static PyObjectstaticCallback_getMinorRadius (PyObject *self, void *closure)
 getter callback for the MinorRadius 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_setEccentricity (PyObject *self, PyObject *value, void *closure)
 setter callback for the Eccentricity attribute
static int staticCallback_setFocal (PyObject *self, PyObject *value, void *closure)
 setter callback for the Focal attribute
static int staticCallback_setFocus1 (PyObject *self, PyObject *value, void *closure)
 setter callback for the Focus1 attribute
static int staticCallback_setFocus2 (PyObject *self, PyObject *value, void *closure)
 setter callback for the Focus2 attribute
static int staticCallback_setMajorRadius (PyObject *self, PyObject *value, void *closure)
 setter callback for the MajorRadius attribute
static int staticCallback_setMinorRadius (PyObject *self, PyObject *value, void *closure)
 setter callback for the MinorRadius attribute

Detailed Description

The python export class for GeomEllipse.

Definition at line 20 of file EllipsePy.h.


Member Typedef Documentation

Reimplemented from Part::GeometryCurvePy.

Definition at line 36 of file EllipsePy.h.


Constructor & Destructor Documentation

EllipsePy::EllipsePy ( GeomEllipse pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 467 of file EllipsePy.cpp.

Referenced by PyMake().

EllipsePy::~EllipsePy (  ) 

Definition at line 476 of file EllipsePy.cpp.


Member Function Documentation

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

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

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

References representation().

int EllipsePy::_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 559 of file EllipsePy.cpp.

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

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

getter for the Axis attribute

Definition at line 210 of file EllipsePyImp.cpp.

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

Referenced by staticCallback_getAxis().

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

getter for the Center attribute

Definition at line 179 of file EllipsePyImp.cpp.

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

Referenced by staticCallback_getCenter().

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

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 246 of file EllipsePyImp.cpp.

Referenced by _getattr().

Py::Float EllipsePy::getEccentricity ( void   )  const

getter for the Eccentricity attribute

Definition at line 153 of file EllipsePyImp.cpp.

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

Referenced by staticCallback_getEccentricity().

Py::Float EllipsePy::getFocal ( void   )  const

getter for the Focal attribute

Definition at line 159 of file EllipsePyImp.cpp.

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

Referenced by staticCallback_getFocal().

Py::Object EllipsePy::getFocus1 ( void   )  const

getter for the Focus1 attribute

Definition at line 165 of file EllipsePyImp.cpp.

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

Referenced by staticCallback_getFocus1().

Py::Object EllipsePy::getFocus2 ( void   )  const

getter for the Focus2 attribute

Definition at line 172 of file EllipsePyImp.cpp.

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

Referenced by staticCallback_getFocus2().

GeomEllipse * EllipsePy::getGeomEllipsePtr ( void   )  const
Py::Float EllipsePy::getMajorRadius ( void   )  const

getter for the MajorRadius attribute

Definition at line 129 of file EllipsePyImp.cpp.

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

Referenced by staticCallback_getMajorRadius().

Py::Float EllipsePy::getMinorRadius ( void   )  const

getter for the MinorRadius attribute

Definition at line 141 of file EllipsePyImp.cpp.

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

Referenced by staticCallback_getMinorRadius().

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 28 of file EllipsePy.h.

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 27 of file EllipsePy.h.

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 48 of file EllipsePyImp.cpp.

References EllipsePy().

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 43 of file EllipsePyImp.cpp.

Referenced by _repr().

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

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 251 of file EllipsePyImp.cpp.

Referenced by _setattr().

void EllipsePy::setMajorRadius ( Py::Float  arg  ) 

setter for the MajorRadius attribute

Definition at line 135 of file EllipsePyImp.cpp.

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

void EllipsePy::setMinorRadius ( Py::Float  arg  ) 

setter for the MinorRadius attribute

Definition at line 147 of file EllipsePyImp.cpp.

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

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

getter callback for the Axis attribute

Definition at line 416 of file EllipsePy.cpp.

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

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

getter callback for the Center attribute

Definition at line 372 of file EllipsePy.cpp.

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

PyObject * EllipsePy::staticCallback_getEccentricity ( PyObject self,
void *  closure 
) [static]

getter callback for the Eccentricity attribute

Definition at line 244 of file EllipsePy.cpp.

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

PyObject * EllipsePy::staticCallback_getFocal ( PyObject self,
void *  closure 
) [static]

getter callback for the Focal attribute

Definition at line 276 of file EllipsePy.cpp.

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

PyObject * EllipsePy::staticCallback_getFocus1 ( PyObject self,
void *  closure 
) [static]

getter callback for the Focus1 attribute

Definition at line 308 of file EllipsePy.cpp.

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

PyObject * EllipsePy::staticCallback_getFocus2 ( PyObject self,
void *  closure 
) [static]

getter callback for the Focus2 attribute

Definition at line 340 of file EllipsePy.cpp.

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

PyObject * EllipsePy::staticCallback_getMajorRadius ( PyObject self,
void *  closure 
) [static]

getter callback for the MajorRadius attribute

Definition at line 156 of file EllipsePy.cpp.

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

PyObject * EllipsePy::staticCallback_getMinorRadius ( PyObject self,
void *  closure 
) [static]

getter callback for the MinorRadius attribute

Definition at line 200 of file EllipsePy.cpp.

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

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

setter callback for the Axis attribute

Definition at line 434 of file EllipsePy.cpp.

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

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

setter callback for the Center attribute

Definition at line 390 of file EllipsePy.cpp.

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

int EllipsePy::staticCallback_setEccentricity ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Eccentricity attribute

Definition at line 262 of file EllipsePy.cpp.

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

int EllipsePy::staticCallback_setFocal ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Focal attribute

Definition at line 294 of file EllipsePy.cpp.

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

int EllipsePy::staticCallback_setFocus1 ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Focus1 attribute

Definition at line 326 of file EllipsePy.cpp.

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

int EllipsePy::staticCallback_setFocus2 ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Focus2 attribute

Definition at line 358 of file EllipsePy.cpp.

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

int EllipsePy::staticCallback_setMajorRadius ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the MajorRadius attribute

Definition at line 174 of file EllipsePy.cpp.

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

int EllipsePy::staticCallback_setMinorRadius ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the MinorRadius attribute

Definition at line 218 of file EllipsePy.cpp.

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


Member Data Documentation

PyGetSetDef EllipsePy::GetterSetter [static]

Attribute structure of EllipsePy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 25 of file EllipsePy.h.

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

Methods structure of EllipsePy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 24 of file EllipsePy.h.

Referenced by _getattr().

PyParentObject EllipsePy::Parents = { PARENTSPartEllipsePy } [static]

Reimplemented from Part::GeometryCurvePy.

Definition at line 26 of file EllipsePy.h.

PyTypeObject EllipsePy::Type [static]

Type structure of EllipsePy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 23 of file EllipsePy.h.

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


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

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