Part::ParabolaPy Class Reference

The python export class for GeomParabola. More...

#include <ParabolaPy.h>

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

List of all members.

Public Types

typedef GeomParabolaPointerType

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)
GeomParabolagetGeomParabolaPtr (void) const
 getter for the object handled by this class
virtual PyParentObjectGetParents (void)
virtual PyTypeObject * GetType (void)
 ParabolaPy (GeomParabola *pcObject, PyTypeObject *T=&Type)
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)
 ~ParabolaPy ()

Static Public Member Functions

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

Static Public Attributes

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

callbacks and implementers for the python object attributes



Py::Object getAxis (void) const
 getter for the Axis attribute
Py::Float getEccentricity (void) const
 getter for the Eccentricity attribute
Py::Float getFocal (void) const
 getter for the Focal attribute
Py::Object getFocus (void) const
 getter for the Focus attribute
Py::Object getLocation (void) const
 getter for the Location attribute
Py::Float getParameter (void) const
 getter for the Parameter attribute
void setAxis (Py::Object arg)
 setter for the Axis attribute
void setFocal (Py::Float arg)
 setter for the Focal attribute
void setLocation (Py::Object arg)
 setter for the Location attribute
static PyObjectstaticCallback_getAxis (PyObject *self, void *closure)
 getter callback for the Axis 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_getFocus (PyObject *self, void *closure)
 getter callback for the Focus attribute
static PyObjectstaticCallback_getLocation (PyObject *self, void *closure)
 getter callback for the Location attribute
static PyObjectstaticCallback_getParameter (PyObject *self, void *closure)
 getter callback for the Parameter attribute
static int staticCallback_setAxis (PyObject *self, PyObject *value, void *closure)
 setter callback for the Axis 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_setFocus (PyObject *self, PyObject *value, void *closure)
 setter callback for the Focus attribute
static int staticCallback_setLocation (PyObject *self, PyObject *value, void *closure)
 setter callback for the Location attribute
static int staticCallback_setParameter (PyObject *self, PyObject *value, void *closure)
 setter callback for the Parameter attribute

Detailed Description

The python export class for GeomParabola.

Definition at line 20 of file ParabolaPy.h.


Member Typedef Documentation

Reimplemented from Part::GeometryCurvePy.

Definition at line 36 of file ParabolaPy.h.


Constructor & Destructor Documentation

ParabolaPy::ParabolaPy ( GeomParabola pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 359 of file ParabolaPy.cpp.

Referenced by PyMake().

ParabolaPy::~ParabolaPy (  ) 

Definition at line 368 of file ParabolaPy.cpp.


Member Function Documentation

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

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

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

References representation().

int ParabolaPy::_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 451 of file ParabolaPy.cpp.

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

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

getter for the Axis attribute

Definition at line 129 of file ParabolaPyImp.cpp.

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

Referenced by staticCallback_getAxis().

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

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 172 of file ParabolaPyImp.cpp.

Referenced by _getattr().

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

getter for the Eccentricity attribute

Definition at line 63 of file ParabolaPyImp.cpp.

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

Referenced by staticCallback_getEccentricity().

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

getter for the Focal attribute

Definition at line 69 of file ParabolaPyImp.cpp.

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

Referenced by staticCallback_getFocal().

Py::Object ParabolaPy::getFocus ( void   )  const

getter for the Focus attribute

Definition at line 81 of file ParabolaPyImp.cpp.

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

Referenced by staticCallback_getFocus().

GeomParabola * ParabolaPy::getGeomParabolaPtr ( void   )  const

getter for the object handled by this class

Definition at line 510 of file ParabolaPy.cpp.

References Base::PyObjectBase::_pcTwinPointer.

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

getter for the Location attribute

Definition at line 95 of file ParabolaPyImp.cpp.

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

Referenced by staticCallback_getLocation().

Py::Float ParabolaPy::getParameter ( void   )  const

getter for the Parameter attribute

Definition at line 89 of file ParabolaPyImp.cpp.

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

Referenced by staticCallback_getParameter().

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 28 of file ParabolaPy.h.

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 27 of file ParabolaPy.h.

int ParabolaPy::PyInit ( PyObject ,
PyObject  
) [virtual]

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 51 of file ParabolaPyImp.cpp.

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

PyObject * ParabolaPy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
) [static]

Reimplemented from Part::GeometryCurvePy.

Definition at line 44 of file ParabolaPyImp.cpp.

References ParabolaPy().

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 39 of file ParabolaPyImp.cpp.

Referenced by _repr().

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

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 177 of file ParabolaPyImp.cpp.

Referenced by _setattr().

void ParabolaPy::setFocal ( Py::Float  arg  ) 

setter for the Focal attribute

Definition at line 75 of file ParabolaPyImp.cpp.

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

void ParabolaPy::setLocation ( Py::Object  arg  ) 
PyObject * ParabolaPy::staticCallback_getAxis ( PyObject self,
void *  closure 
) [static]

getter callback for the Axis attribute

Definition at line 308 of file ParabolaPy.cpp.

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

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

getter callback for the Eccentricity attribute

Definition at line 124 of file ParabolaPy.cpp.

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

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

getter callback for the Focal attribute

Definition at line 156 of file ParabolaPy.cpp.

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

PyObject * ParabolaPy::staticCallback_getFocus ( PyObject self,
void *  closure 
) [static]

getter callback for the Focus attribute

Definition at line 200 of file ParabolaPy.cpp.

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

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

getter callback for the Location attribute

Definition at line 264 of file ParabolaPy.cpp.

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

PyObject * ParabolaPy::staticCallback_getParameter ( PyObject self,
void *  closure 
) [static]

getter callback for the Parameter attribute

Definition at line 232 of file ParabolaPy.cpp.

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

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

setter callback for the Axis attribute

Definition at line 326 of file ParabolaPy.cpp.

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

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

setter callback for the Eccentricity attribute

Definition at line 142 of file ParabolaPy.cpp.

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

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

setter callback for the Focal attribute

Definition at line 174 of file ParabolaPy.cpp.

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

int ParabolaPy::staticCallback_setFocus ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Focus attribute

Definition at line 218 of file ParabolaPy.cpp.

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

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

setter callback for the Location attribute

Definition at line 282 of file ParabolaPy.cpp.

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

int ParabolaPy::staticCallback_setParameter ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Parameter attribute

Definition at line 250 of file ParabolaPy.cpp.

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


Member Data Documentation

PyGetSetDef ParabolaPy::GetterSetter [static]

Attribute structure of ParabolaPy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 25 of file ParabolaPy.h.

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

Methods structure of ParabolaPy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 24 of file ParabolaPy.h.

Referenced by _getattr().

PyParentObject ParabolaPy::Parents = { PARENTSPartParabolaPy } [static]

Reimplemented from Part::GeometryCurvePy.

Definition at line 26 of file ParabolaPy.h.

PyTypeObject ParabolaPy::Type [static]

Type structure of ParabolaPy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 23 of file ParabolaPy.h.

Referenced by initPart().


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

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