Part::OffsetCurvePy Class Reference

The python export class for GeomOffsetCurve. More...

#include <OffsetCurvePy.h>

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

List of all members.

Public Types

typedef GeomOffsetCurvePointerType

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

Static Public Member Functions

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

Static Public Attributes

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

callbacks and implementers for the python object attributes



Py::Object getBasisCurve (void) const
 getter for the BasisCurve attribute
Py::Object getOffsetDirection (void) const
 getter for the OffsetDirection attribute
Py::Float getOffsetValue (void) const
 getter for the OffsetValue attribute
void setBasisCurve (Py::Object arg)
 setter for the BasisCurve attribute
void setOffsetDirection (Py::Object arg)
 setter for the OffsetDirection attribute
void setOffsetValue (Py::Float arg)
 setter for the OffsetValue attribute
static PyObjectstaticCallback_getBasisCurve (PyObject *self, void *closure)
 getter callback for the BasisCurve attribute
static PyObjectstaticCallback_getOffsetDirection (PyObject *self, void *closure)
 getter callback for the OffsetDirection attribute
static PyObjectstaticCallback_getOffsetValue (PyObject *self, void *closure)
 getter callback for the OffsetValue attribute
static int staticCallback_setBasisCurve (PyObject *self, PyObject *value, void *closure)
 setter callback for the BasisCurve attribute
static int staticCallback_setOffsetDirection (PyObject *self, PyObject *value, void *closure)
 setter callback for the OffsetDirection attribute
static int staticCallback_setOffsetValue (PyObject *self, PyObject *value, void *closure)
 setter callback for the OffsetValue attribute

Detailed Description

The python export class for GeomOffsetCurve.

Definition at line 20 of file OffsetCurvePy.h.


Member Typedef Documentation

Reimplemented from Part::GeometryCurvePy.

Definition at line 36 of file OffsetCurvePy.h.


Constructor & Destructor Documentation

OffsetCurvePy::OffsetCurvePy ( GeomOffsetCurve pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 245 of file OffsetCurvePy.cpp.

Referenced by PyMake().

OffsetCurvePy::~OffsetCurvePy (  ) 

Definition at line 254 of file OffsetCurvePy.cpp.


Member Function Documentation

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

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

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

References representation().

int OffsetCurvePy::_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 337 of file OffsetCurvePy.cpp.

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

Py::Object OffsetCurvePy::getBasisCurve ( void   )  const

getter for the BasisCurve attribute

Definition at line 123 of file OffsetCurvePyImp.cpp.

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

Referenced by staticCallback_getBasisCurve().

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

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 153 of file OffsetCurvePyImp.cpp.

Referenced by _getattr().

GeomOffsetCurve * OffsetCurvePy::getGeomOffsetCurvePtr ( void   )  const

getter for the object handled by this class

Definition at line 396 of file OffsetCurvePy.cpp.

References Base::PyObjectBase::_pcTwinPointer.

Referenced by PyInit().

Py::Object OffsetCurvePy::getOffsetDirection ( void   )  const

getter for the OffsetDirection attribute

Definition at line 96 of file OffsetCurvePyImp.cpp.

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

Referenced by staticCallback_getOffsetDirection().

Py::Float OffsetCurvePy::getOffsetValue ( void   )  const

getter for the OffsetValue attribute

Definition at line 84 of file OffsetCurvePyImp.cpp.

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

Referenced by staticCallback_getOffsetValue().

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 28 of file OffsetCurvePy.h.

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 27 of file OffsetCurvePy.h.

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 45 of file OffsetCurvePyImp.cpp.

References OffsetCurvePy().

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 40 of file OffsetCurvePyImp.cpp.

Referenced by _repr().

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

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

Reimplemented from Part::GeometryCurvePy.

Definition at line 158 of file OffsetCurvePyImp.cpp.

Referenced by _setattr().

void OffsetCurvePy::setOffsetDirection ( Py::Object  arg  ) 
void OffsetCurvePy::setOffsetValue ( Py::Float  arg  ) 

setter for the OffsetValue attribute

Definition at line 90 of file OffsetCurvePyImp.cpp.

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

PyObject * OffsetCurvePy::staticCallback_getBasisCurve ( PyObject self,
void *  closure 
) [static]

getter callback for the BasisCurve attribute

Definition at line 194 of file OffsetCurvePy.cpp.

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

PyObject * OffsetCurvePy::staticCallback_getOffsetDirection ( PyObject self,
void *  closure 
) [static]

getter callback for the OffsetDirection attribute

Definition at line 150 of file OffsetCurvePy.cpp.

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

PyObject * OffsetCurvePy::staticCallback_getOffsetValue ( PyObject self,
void *  closure 
) [static]

getter callback for the OffsetValue attribute

Definition at line 106 of file OffsetCurvePy.cpp.

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

int OffsetCurvePy::staticCallback_setBasisCurve ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the BasisCurve attribute

Definition at line 212 of file OffsetCurvePy.cpp.

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

int OffsetCurvePy::staticCallback_setOffsetDirection ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the OffsetDirection attribute

Definition at line 168 of file OffsetCurvePy.cpp.

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

int OffsetCurvePy::staticCallback_setOffsetValue ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the OffsetValue attribute

Definition at line 124 of file OffsetCurvePy.cpp.

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


Member Data Documentation

PyGetSetDef OffsetCurvePy::GetterSetter [static]
Initial value:
 {
    {"OffsetValue",
        (getter) staticCallback_getOffsetValue,
        (setter) staticCallback_setOffsetValue, 
        "\n                                     Sets or gets the offset value to offset the underlying curve.\n                         ",
        NULL
    },
    {"OffsetDirection",
        (getter) staticCallback_getOffsetDirection,
        (setter) staticCallback_setOffsetDirection, 
        "\n                                     Sets or gets the offset direction to offset the underlying curve.\n                             ",
        NULL
    },
    {"BasisCurve",
        (getter) staticCallback_getBasisCurve,
        (setter) staticCallback_setBasisCurve, 
        "\n                                     Sets or gets the basic curve.\n                         ",
        NULL
    },
    {NULL, NULL, NULL, NULL, NULL}              
}

Attribute structure of OffsetCurvePy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 25 of file OffsetCurvePy.h.

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

Methods structure of OffsetCurvePy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 24 of file OffsetCurvePy.h.

Referenced by _getattr().

PyParentObject OffsetCurvePy::Parents = { PARENTSPartOffsetCurvePy } [static]

Reimplemented from Part::GeometryCurvePy.

Definition at line 26 of file OffsetCurvePy.h.

PyTypeObject OffsetCurvePy::Type [static]

Type structure of OffsetCurvePy.

Reimplemented from Part::GeometryCurvePy.

Definition at line 23 of file OffsetCurvePy.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