Part::OffsetSurfacePy Class Reference

The python export class for GeomOffsetSurface. More...

#include <OffsetSurfacePy.h>

Inheritance diagram for Part::OffsetSurfacePy:
Part::GeometrySurfacePy Part::GeometryPy Base::PyObjectBase

List of all members.

Public Types

typedef GeomOffsetSurfacePointerType

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

Static Public Member Functions

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

Static Public Attributes

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

callbacks and implementers for the python object attributes



Py::Object getBasisSurface (void) const
 getter for the BasisSurface attribute
Py::Float getOffsetValue (void) const
 getter for the OffsetValue attribute
void setBasisSurface (Py::Object arg)
 setter for the BasisSurface attribute
void setOffsetValue (Py::Float arg)
 setter for the OffsetValue attribute
static PyObjectstaticCallback_getBasisSurface (PyObject *self, void *closure)
 getter callback for the BasisSurface attribute
static PyObjectstaticCallback_getOffsetValue (PyObject *self, void *closure)
 getter callback for the OffsetValue attribute
static int staticCallback_setBasisSurface (PyObject *self, PyObject *value, void *closure)
 setter callback for the BasisSurface attribute
static int staticCallback_setOffsetValue (PyObject *self, PyObject *value, void *closure)
 setter callback for the OffsetValue attribute

callbacks and implementers for the python object methods



PyObjectuIso (PyObject *args)
 implementer for the uIso() method
PyObjectvIso (PyObject *args)
 implementer for the vIso() method
static PyObjectstaticCallback_uIso (PyObject *self, PyObject *args)
 callback for the uIso() method
static PyObjectstaticCallback_vIso (PyObject *self, PyObject *args)
 callback for the vIso() method

Detailed Description

The python export class for GeomOffsetSurface.

Definition at line 20 of file OffsetSurfacePy.h.


Member Typedef Documentation

Reimplemented from Part::GeometrySurfacePy.

Definition at line 36 of file OffsetSurfacePy.h.


Constructor & Destructor Documentation

OffsetSurfacePy::OffsetSurfacePy ( GeomOffsetSurface pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 357 of file OffsetSurfacePy.cpp.

Referenced by PyMake().

OffsetSurfacePy::~OffsetSurfacePy (  ) 

Definition at line 366 of file OffsetSurfacePy.cpp.


Member Function Documentation

PyObject * OffsetSurfacePy::_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::GeometrySurfacePy.

Definition at line 381 of file OffsetSurfacePy.cpp.

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

PyObject * OffsetSurfacePy::_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::GeometrySurfacePy.

Definition at line 373 of file OffsetSurfacePy.cpp.

References representation().

int OffsetSurfacePy::_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::GeometrySurfacePy.

Definition at line 449 of file OffsetSurfacePy.cpp.

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

Py::Object OffsetSurfacePy::getBasisSurface ( void   )  const

getter for the BasisSurface attribute

Definition at line 104 of file OffsetSurfacePyImp.cpp.

Referenced by staticCallback_getBasisSurface().

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

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 132 of file OffsetSurfacePyImp.cpp.

Referenced by _getattr().

GeomOffsetSurface * OffsetSurfacePy::getGeomOffsetSurfacePtr ( void   )  const

getter for the object handled by this class

Definition at line 508 of file OffsetSurfacePy.cpp.

References Base::PyObjectBase::_pcTwinPointer.

Referenced by PyInit().

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

getter for the OffsetValue attribute

Definition at line 92 of file OffsetSurfacePyImp.cpp.

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

Referenced by staticCallback_getOffsetValue().

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 28 of file OffsetSurfacePy.h.

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 27 of file OffsetSurfacePy.h.

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

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 51 of file OffsetSurfacePyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), getGeomOffsetSurfacePtr(), Part::Geometry::handle(), offset(), Part::GeomOffsetSurface::setHandle(), and Part::GeometryPy::Type.

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 44 of file OffsetSurfacePyImp.cpp.

References OffsetSurfacePy().

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 39 of file OffsetSurfacePyImp.cpp.

Referenced by _repr().

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

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 137 of file OffsetSurfacePyImp.cpp.

Referenced by _setattr().

void OffsetSurfacePy::setOffsetValue ( Py::Float  arg  ) 

setter for the OffsetValue attribute

Definition at line 98 of file OffsetSurfacePyImp.cpp.

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

PyObject * OffsetSurfacePy::staticCallback_getBasisSurface ( PyObject self,
void *  closure 
) [static]

getter callback for the BasisSurface attribute

Definition at line 306 of file OffsetSurfacePy.cpp.

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

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

getter callback for the OffsetValue attribute

Definition at line 262 of file OffsetSurfacePy.cpp.

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

int OffsetSurfacePy::staticCallback_setBasisSurface ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the BasisSurface attribute

Definition at line 324 of file OffsetSurfacePy.cpp.

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

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

setter callback for the OffsetValue attribute

Definition at line 280 of file OffsetSurfacePy.cpp.

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

PyObject * OffsetSurfacePy::staticCallback_uIso ( PyObject self,
PyObject args 
) [static]
PyObject * OffsetSurfacePy::staticCallback_vIso ( PyObject self,
PyObject args 
) [static]
PyObject * OffsetSurfacePy::uIso ( PyObject args  ) 

implementer for the uIso() method

Definition at line 80 of file OffsetSurfacePyImp.cpp.

PyObject * OffsetSurfacePy::vIso ( PyObject args  ) 

implementer for the vIso() method

Definition at line 86 of file OffsetSurfacePyImp.cpp.


Member Data Documentation

PyGetSetDef OffsetSurfacePy::GetterSetter [static]
Initial value:
 {
    {"OffsetValue",
        (getter) staticCallback_getOffsetValue,
        (setter) staticCallback_setOffsetValue, 
        "\n                                     Sets or gets the offset value to offset the underlying surface.\n                               ",
        NULL
    },
    {"BasisSurface",
        (getter) staticCallback_getBasisSurface,
        (setter) staticCallback_setBasisSurface, 
        "\n                                     Sets or gets the basic surface.\n                               ",
        NULL
    },
    {NULL, NULL, NULL, NULL, NULL}              
}

Attribute structure of OffsetSurfacePy.

Reimplemented from Part::GeometrySurfacePy.

Definition at line 25 of file OffsetSurfacePy.h.

PyMethodDef OffsetSurfacePy::Methods [static]
Initial value:
 {
    {"uIso",
        (PyCFunction) staticCallback_uIso,
        METH_VARARGS,
        "Builds the U isoparametric line of this surface"
    },
    {"vIso",
        (PyCFunction) staticCallback_vIso,
        METH_VARARGS,
        "Builds the V isoparametric line of this surface"
    },
    {NULL, NULL, 0, NULL}               
}

Methods structure of OffsetSurfacePy.

Reimplemented from Part::GeometrySurfacePy.

Definition at line 24 of file OffsetSurfacePy.h.

Referenced by _getattr().

PyParentObject OffsetSurfacePy::Parents = { PARENTSPartOffsetSurfacePy } [static]

Reimplemented from Part::GeometrySurfacePy.

Definition at line 26 of file OffsetSurfacePy.h.

PyTypeObject OffsetSurfacePy::Type [static]

Type structure of OffsetSurfacePy.

Reimplemented from Part::GeometrySurfacePy.

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