Part::HyperbolaPy Class Reference

The python export class for GeomHyperbola. More...

#include <HyperbolaPy.h>

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

List of all members.

Public Types

typedef GeomHyperbolaPointerType

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)
GeomHyperbolagetGeomHyperbolaPtr (void) const
 getter for the object handled by this class
virtual PyParentObjectGetParents (void)
virtual PyTypeObject * GetType (void)
 HyperbolaPy (GeomHyperbola *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)
 ~HyperbolaPy ()

Static Public Member Functions

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

Static Public Attributes

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

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 getFocus1 (void) const
 getter for the Focus1 attribute
Py::Object getFocus2 (void) const
 getter for the Focus2 attribute
Py::Object getLocation (void) const
 getter for the Location attribute
Py::Float getMajorRadius (void) const
 getter for the MajorRadius attribute
Py::Float getMinorRadius (void) const
 getter for the MinorRadius attribute
Py::Float getParameter (void) const
 getter for the Parameter attribute
void setAxis (Py::Object arg)
 setter for the Axis attribute
void setLocation (Py::Object arg)
 setter for the Location 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_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_getLocation (PyObject *self, void *closure)
 getter callback for the Location 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 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_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_setLocation (PyObject *self, PyObject *value, void *closure)
 setter callback for the Location 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
static int staticCallback_setParameter (PyObject *self, PyObject *value, void *closure)
 setter callback for the Parameter attribute

Detailed Description

The python export class for GeomHyperbola.

Definition at line 20 of file HyperbolaPy.h.


Member Typedef Documentation

Reimplemented from Part::GeometryCurvePy.

Definition at line 36 of file HyperbolaPy.h.


Constructor & Destructor Documentation

HyperbolaPy::HyperbolaPy ( GeomHyperbola pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 505 of file HyperbolaPy.cpp.

Referenced by PyMake().

HyperbolaPy::~HyperbolaPy (  ) 

Definition at line 514 of file HyperbolaPy.cpp.


Member Function Documentation

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

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

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

References representation().

int HyperbolaPy::_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 597 of file HyperbolaPy.cpp.

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

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

getter for the Axis attribute

Definition at line 221 of file HyperbolaPyImp.cpp.

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

Referenced by staticCallback_getAxis().

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

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 264 of file HyperbolaPyImp.cpp.

Referenced by _getattr().

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

getter for the Eccentricity attribute

Definition at line 129 of file HyperbolaPyImp.cpp.

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

Referenced by staticCallback_getEccentricity().

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

getter for the Focal attribute

Definition at line 135 of file HyperbolaPyImp.cpp.

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

Referenced by staticCallback_getFocal().

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

getter for the Focus1 attribute

Definition at line 141 of file HyperbolaPyImp.cpp.

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

Referenced by staticCallback_getFocus1().

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

getter for the Focus2 attribute

Definition at line 149 of file HyperbolaPyImp.cpp.

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

Referenced by staticCallback_getFocus2().

GeomHyperbola * HyperbolaPy::getGeomHyperbolaPtr ( void   )  const

getter for the object handled by this class

Definition at line 656 of file HyperbolaPy.cpp.

References Base::PyObjectBase::_pcTwinPointer.

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

getter for the Location attribute

Definition at line 187 of file HyperbolaPyImp.cpp.

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

Referenced by staticCallback_getLocation().

Py::Float HyperbolaPy::getMajorRadius ( void   )  const

getter for the MajorRadius attribute

Definition at line 163 of file HyperbolaPyImp.cpp.

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

Referenced by staticCallback_getMajorRadius().

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

getter for the MinorRadius attribute

Definition at line 175 of file HyperbolaPyImp.cpp.

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

Referenced by staticCallback_getMinorRadius().

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

getter for the Parameter attribute

Definition at line 157 of file HyperbolaPyImp.cpp.

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

Referenced by staticCallback_getParameter().

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 28 of file HyperbolaPy.h.

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 27 of file HyperbolaPy.h.

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 48 of file HyperbolaPyImp.cpp.

References HyperbolaPy().

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 43 of file HyperbolaPyImp.cpp.

Referenced by _repr().

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

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 269 of file HyperbolaPyImp.cpp.

Referenced by _setattr().

void HyperbolaPy::setLocation ( Py::Object  arg  ) 
void HyperbolaPy::setMajorRadius ( Py::Float  arg  ) 

setter for the MajorRadius attribute

Definition at line 169 of file HyperbolaPyImp.cpp.

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

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

setter for the MinorRadius attribute

Definition at line 181 of file HyperbolaPyImp.cpp.

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

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

getter callback for the Axis attribute

Definition at line 454 of file HyperbolaPy.cpp.

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

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

getter callback for the Eccentricity attribute

Definition at line 162 of file HyperbolaPy.cpp.

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

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

getter callback for the Focal attribute

Definition at line 194 of file HyperbolaPy.cpp.

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

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

getter callback for the Focus1 attribute

Definition at line 226 of file HyperbolaPy.cpp.

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

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

getter callback for the Focus2 attribute

Definition at line 258 of file HyperbolaPy.cpp.

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

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

getter callback for the Location attribute

Definition at line 410 of file HyperbolaPy.cpp.

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

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

getter callback for the MajorRadius attribute

Definition at line 322 of file HyperbolaPy.cpp.

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

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

getter callback for the MinorRadius attribute

Definition at line 366 of file HyperbolaPy.cpp.

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

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

getter callback for the Parameter attribute

Definition at line 290 of file HyperbolaPy.cpp.

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

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

setter callback for the Axis attribute

Definition at line 472 of file HyperbolaPy.cpp.

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

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

setter callback for the Eccentricity attribute

Definition at line 180 of file HyperbolaPy.cpp.

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

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

setter callback for the Focal attribute

Definition at line 212 of file HyperbolaPy.cpp.

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

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

setter callback for the Focus1 attribute

Definition at line 244 of file HyperbolaPy.cpp.

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

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

setter callback for the Focus2 attribute

Definition at line 276 of file HyperbolaPy.cpp.

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

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

setter callback for the Location attribute

Definition at line 428 of file HyperbolaPy.cpp.

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

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

setter callback for the MajorRadius attribute

Definition at line 340 of file HyperbolaPy.cpp.

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

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

setter callback for the MinorRadius attribute

Definition at line 384 of file HyperbolaPy.cpp.

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

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

setter callback for the Parameter attribute

Definition at line 308 of file HyperbolaPy.cpp.

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


Member Data Documentation

PyGetSetDef HyperbolaPy::GetterSetter [static]

Attribute structure of HyperbolaPy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 25 of file HyperbolaPy.h.

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

Methods structure of HyperbolaPy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 24 of file HyperbolaPy.h.

Referenced by _getattr().

PyParentObject HyperbolaPy::Parents = { PARENTSPartHyperbolaPy } [static]

Reimplemented from Part::GeometryCurvePy.

Definition at line 26 of file HyperbolaPy.h.

PyTypeObject HyperbolaPy::Type [static]

Type structure of HyperbolaPy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 23 of file HyperbolaPy.h.

Referenced by initPart(), and PyInit().


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

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