Part::GeometryCurvePy Class Reference

The python export class for GeomCurve. More...

#include <GeometryCurvePy.h>

Inheritance diagram for Part::GeometryCurvePy:
Part::GeometryPy Base::PyObjectBase Part::ArcOfCirclePy Part::ArcPy Part::BezierCurvePy Part::BSplineCurvePy Part::CirclePy Part::EllipsePy Part::HyperbolaPy Part::LinePy Part::OffsetCurvePy Part::ParabolaPy

List of all members.

Public Types

typedef GeomCurvePointerType

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

Static Public Member Functions

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

Static Public Attributes

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

callbacks and implementers for the python object methods



PyObjectdiscretize (PyObject *args)
 implementer for the discretize() method
PyObjectmakeRuledSurface (PyObject *args)
 implementer for the makeRuledSurface() method
PyObjectparameter (PyObject *args)
 implementer for the parameter() method
PyObjecttangent (PyObject *args)
 implementer for the tangent() method
PyObjecttoShape (PyObject *args)
 implementer for the toShape() method
PyObjectvalue (PyObject *args)
 implementer for the value() method
static PyObjectstaticCallback_discretize (PyObject *self, PyObject *args)
 callback for the discretize() method
static PyObjectstaticCallback_makeRuledSurface (PyObject *self, PyObject *args)
 callback for the makeRuledSurface() method
static PyObjectstaticCallback_parameter (PyObject *self, PyObject *args)
 callback for the parameter() method
static PyObjectstaticCallback_tangent (PyObject *self, PyObject *args)
 callback for the tangent() method
static PyObjectstaticCallback_toShape (PyObject *self, PyObject *args)
 callback for the toShape() method
static PyObjectstaticCallback_value (PyObject *self, PyObject *args)
 callback for the value() method

callbacks and implementers for the python object attributes



Py::Float getFirstParameter (void) const
 getter for the FirstParameter attribute
Py::Float getLastParameter (void) const
 getter for the LastParameter attribute
static PyObjectstaticCallback_getFirstParameter (PyObject *self, void *closure)
 getter callback for the FirstParameter attribute
static PyObjectstaticCallback_getLastParameter (PyObject *self, void *closure)
 getter callback for the LastParameter attribute
static int staticCallback_setFirstParameter (PyObject *self, PyObject *value, void *closure)
 setter callback for the FirstParameter attribute
static int staticCallback_setLastParameter (PyObject *self, PyObject *value, void *closure)
 setter callback for the LastParameter attribute

Detailed Description

The python export class for GeomCurve.

Definition at line 20 of file GeometryCurvePy.h.


Member Typedef Documentation


Constructor & Destructor Documentation

GeometryCurvePy::GeometryCurvePy ( GeomCurve pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 652 of file GeometryCurvePy.cpp.

GeometryCurvePy::~GeometryCurvePy (  ) 

Definition at line 661 of file GeometryCurvePy.cpp.


Member Function Documentation

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

Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.

Definition at line 676 of file GeometryCurvePy.cpp.

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

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

Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.

Definition at line 668 of file GeometryCurvePy.cpp.

References representation().

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

Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.

Definition at line 744 of file GeometryCurvePy.cpp.

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

PyObject * GeometryCurvePy::discretize ( PyObject args  ) 
PyObject * GeometryCurvePy::getCustomAttributes ( const char *  attr  )  const

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

Reimplemented from Part::GeometryPy.

Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.

Definition at line 276 of file GeometryCurvePyImp.cpp.

Referenced by _getattr().

Py::Float GeometryCurvePy::getFirstParameter ( void   )  const

getter for the FirstParameter attribute

Definition at line 264 of file GeometryCurvePyImp.cpp.

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

Referenced by staticCallback_getFirstParameter().

GeomCurve * GeometryCurvePy::getGeomCurvePtr ( void   )  const

getter for the object handled by this class

Definition at line 803 of file GeometryCurvePy.cpp.

References Base::PyObjectBase::_pcTwinPointer.

Py::Float GeometryCurvePy::getLastParameter ( void   )  const

getter for the LastParameter attribute

Definition at line 270 of file GeometryCurvePyImp.cpp.

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

Referenced by staticCallback_getLastParameter().

virtual PyParentObject* Part::GeometryCurvePy::GetParents ( void   )  [inline, virtual]
virtual PyTypeObject* Part::GeometryCurvePy::GetType ( void   )  [inline, virtual]
PyObject * GeometryCurvePy::makeRuledSurface ( PyObject args  ) 
PyObject * GeometryCurvePy::parameter ( PyObject args  ) 
int GeometryCurvePy::PyInit ( PyObject ,
PyObject  
) [virtual]

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

Reimplemented from Part::GeometryPy.

Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.

Definition at line 73 of file GeometryCurvePyImp.cpp.

PyObject * GeometryCurvePy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
) [static]
std::string GeometryCurvePy::representation ( void   )  const
int GeometryCurvePy::setCustomAttributes ( const char *  attr,
PyObject obj 
)

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

Reimplemented from Part::GeometryPy.

Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.

Definition at line 281 of file GeometryCurvePyImp.cpp.

Referenced by _setattr().

PyObject * GeometryCurvePy::staticCallback_discretize ( PyObject self,
PyObject args 
) [static]
PyObject * GeometryCurvePy::staticCallback_getFirstParameter ( PyObject self,
void *  closure 
) [static]

getter callback for the FirstParameter attribute

Definition at line 581 of file GeometryCurvePy.cpp.

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

PyObject * GeometryCurvePy::staticCallback_getLastParameter ( PyObject self,
void *  closure 
) [static]

getter callback for the LastParameter attribute

Definition at line 613 of file GeometryCurvePy.cpp.

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

PyObject * GeometryCurvePy::staticCallback_makeRuledSurface ( PyObject self,
PyObject args 
) [static]
PyObject * GeometryCurvePy::staticCallback_parameter ( PyObject self,
PyObject args 
) [static]
int GeometryCurvePy::staticCallback_setFirstParameter ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the FirstParameter attribute

Definition at line 599 of file GeometryCurvePy.cpp.

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

int GeometryCurvePy::staticCallback_setLastParameter ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the LastParameter attribute

Definition at line 631 of file GeometryCurvePy.cpp.

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

PyObject * GeometryCurvePy::staticCallback_tangent ( PyObject self,
PyObject args 
) [static]
PyObject * GeometryCurvePy::staticCallback_toShape ( PyObject self,
PyObject args 
) [static]
PyObject * GeometryCurvePy::staticCallback_value ( PyObject self,
PyObject args 
) [static]
PyObject * GeometryCurvePy::tangent ( PyObject args  ) 
PyObject * GeometryCurvePy::toShape ( PyObject args  ) 

implementer for the toShape() method

Definition at line 78 of file GeometryCurvePyImp.cpp.

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

PyObject * GeometryCurvePy::value ( PyObject args  ) 

Member Data Documentation

PyGetSetDef GeometryCurvePy::GetterSetter [static]
Initial value:
 {
    {"FirstParameter",
        (getter) staticCallback_getFirstParameter,
        (setter) staticCallback_setFirstParameter, 
        "\n                                     Returns the value of the first parameter.\n                             ",
        NULL
    },
    {"LastParameter",
        (getter) staticCallback_getLastParameter,
        (setter) staticCallback_setLastParameter, 
        "\n                                     Returns the value of the last parameter.\n                              ",
        NULL
    },
    {NULL, NULL, NULL, NULL, NULL}              
}

Attribute structure of GeometryCurvePy.

Reimplemented from Part::GeometryPy.

Reimplemented in Part::ArcOfCirclePy, Part::ArcPy, Part::BezierCurvePy, Part::BSplineCurvePy, Part::CirclePy, Part::EllipsePy, Part::HyperbolaPy, Part::LinePy, Part::OffsetCurvePy, and Part::ParabolaPy.

Definition at line 25 of file GeometryCurvePy.h.

PyMethodDef GeometryCurvePy::Methods [static]
PyParentObject GeometryCurvePy::Parents = { PARENTSPartGeometryCurvePy } [static]
PyTypeObject GeometryCurvePy::Type [static]

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

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