Part::GeometrySurfacePy Class Reference

The python export class for GeomSurface. More...

#include <GeometrySurfacePy.h>

Inheritance diagram for Part::GeometrySurfacePy:
Part::GeometryPy Base::PyObjectBase Part::BezierSurfacePy Part::BSplineSurfacePy Part::ConePy Part::CylinderPy Part::OffsetSurfacePy Part::PlanePy Part::RectangularTrimmedSurfacePy Part::SpherePy Part::SurfaceOfExtrusionPy Part::SurfaceOfRevolutionPy Part::ToroidPy

List of all members.

Public Types

typedef GeomSurfacePointerType

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

Static Public Member Functions

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

Static Public Attributes

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

callbacks and implementers for the python object methods



PyObjectbounds (PyObject *args)
 implementer for the bounds() method
PyObjectisUClosed (PyObject *args)
 implementer for the isUClosed() method
PyObjectisUPeriodic (PyObject *args)
 implementer for the isUPeriodic() method
PyObjectisVClosed (PyObject *args)
 implementer for the isVClosed() method
PyObjectisVPeriodic (PyObject *args)
 implementer for the isVPeriodic() method
PyObjectparameter (PyObject *args)
 implementer for the parameter() method
PyObjecttangent (PyObject *args)
 implementer for the tangent() method
PyObjecttoBSpline (PyObject *args)
 implementer for the toBSpline() method
PyObjecttoShape (PyObject *args)
 implementer for the toShape() method
PyObjectUPeriod (PyObject *args)
 implementer for the UPeriod() method
PyObjectvalue (PyObject *args)
 implementer for the value() method
PyObjectVPeriod (PyObject *args)
 implementer for the VPeriod() method
static PyObjectstaticCallback_bounds (PyObject *self, PyObject *args)
 callback for the bounds() method
static PyObjectstaticCallback_isUClosed (PyObject *self, PyObject *args)
 callback for the isUClosed() method
static PyObjectstaticCallback_isUPeriodic (PyObject *self, PyObject *args)
 callback for the isUPeriodic() method
static PyObjectstaticCallback_isVClosed (PyObject *self, PyObject *args)
 callback for the isVClosed() method
static PyObjectstaticCallback_isVPeriodic (PyObject *self, PyObject *args)
 callback for the isVPeriodic() 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_toBSpline (PyObject *self, PyObject *args)
 callback for the toBSpline() method
static PyObjectstaticCallback_toShape (PyObject *self, PyObject *args)
 callback for the toShape() method
static PyObjectstaticCallback_UPeriod (PyObject *self, PyObject *args)
 callback for the UPeriod() method
static PyObjectstaticCallback_value (PyObject *self, PyObject *args)
 callback for the value() method
static PyObjectstaticCallback_VPeriod (PyObject *self, PyObject *args)
 callback for the VPeriod() method

Detailed Description

The python export class for GeomSurface.

Definition at line 20 of file GeometrySurfacePy.h.


Member Typedef Documentation


Constructor & Destructor Documentation

GeometrySurfacePy::GeometrySurfacePy ( GeomSurface pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 1062 of file GeometrySurfacePy.cpp.

GeometrySurfacePy::~GeometrySurfacePy (  ) 

Definition at line 1071 of file GeometrySurfacePy.cpp.


Member Function Documentation

PyObject * GeometrySurfacePy::_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::BezierSurfacePy, Part::BSplineSurfacePy, Part::ConePy, Part::CylinderPy, Part::OffsetSurfacePy, Part::PlanePy, Part::RectangularTrimmedSurfacePy, Part::SpherePy, Part::SurfaceOfExtrusionPy, Part::SurfaceOfRevolutionPy, and Part::ToroidPy.

Definition at line 1086 of file GeometrySurfacePy.cpp.

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

PyObject * GeometrySurfacePy::_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::BezierSurfacePy, Part::BSplineSurfacePy, Part::ConePy, Part::CylinderPy, Part::OffsetSurfacePy, Part::PlanePy, Part::RectangularTrimmedSurfacePy, Part::SpherePy, Part::SurfaceOfExtrusionPy, Part::SurfaceOfRevolutionPy, and Part::ToroidPy.

Definition at line 1078 of file GeometrySurfacePy.cpp.

References representation().

int GeometrySurfacePy::_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::BezierSurfacePy, Part::BSplineSurfacePy, Part::ConePy, Part::CylinderPy, Part::OffsetSurfacePy, Part::PlanePy, Part::RectangularTrimmedSurfacePy, Part::SpherePy, Part::SurfaceOfExtrusionPy, Part::SurfaceOfRevolutionPy, and Part::ToroidPy.

Definition at line 1154 of file GeometrySurfacePy.cpp.

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

PyObject * GeometrySurfacePy::bounds ( PyObject args  ) 
PyObject * GeometrySurfacePy::getCustomAttributes ( const char *  attr  )  const
GeomSurface * GeometrySurfacePy::getGeomSurfacePtr ( void   )  const

getter for the object handled by this class

Definition at line 1213 of file GeometrySurfacePy.cpp.

References Base::PyObjectBase::_pcTwinPointer.

Referenced by Part::RectangularTrimmedSurfacePy::PyInit().

virtual PyParentObject* Part::GeometrySurfacePy::GetParents ( void   )  [inline, virtual]
virtual PyTypeObject* Part::GeometrySurfacePy::GetType ( void   )  [inline, virtual]
PyObject * GeometrySurfacePy::isUClosed ( PyObject args  ) 

implementer for the isUClosed() method

Reimplemented in Part::BezierSurfacePy, and Part::BSplineSurfacePy.

Definition at line 237 of file GeometrySurfacePyImp.cpp.

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

PyObject * GeometrySurfacePy::isUPeriodic ( PyObject args  ) 

implementer for the isUPeriodic() method

Reimplemented in Part::BezierSurfacePy, and Part::BSplineSurfacePy.

Definition at line 201 of file GeometrySurfacePyImp.cpp.

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

PyObject * GeometrySurfacePy::isVClosed ( PyObject args  ) 

implementer for the isVClosed() method

Reimplemented in Part::BezierSurfacePy, and Part::BSplineSurfacePy.

Definition at line 255 of file GeometrySurfacePyImp.cpp.

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

PyObject * GeometrySurfacePy::isVPeriodic ( PyObject args  ) 

implementer for the isVPeriodic() method

Reimplemented in Part::BezierSurfacePy, and Part::BSplineSurfacePy.

Definition at line 219 of file GeometrySurfacePyImp.cpp.

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

PyObject * GeometrySurfacePy::parameter ( PyObject args  ) 
int GeometrySurfacePy::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::BezierSurfacePy, Part::BSplineSurfacePy, Part::ConePy, Part::CylinderPy, Part::OffsetSurfacePy, Part::PlanePy, Part::RectangularTrimmedSurfacePy, Part::SpherePy, Part::SurfaceOfExtrusionPy, Part::SurfaceOfRevolutionPy, and Part::ToroidPy.

Definition at line 67 of file GeometrySurfacePyImp.cpp.

PyObject * GeometrySurfacePy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
) [static]
std::string GeometrySurfacePy::representation ( void   )  const
int GeometrySurfacePy::setCustomAttributes ( const char *  attr,
PyObject obj 
)
PyObject * GeometrySurfacePy::staticCallback_bounds ( PyObject self,
PyObject args 
) [static]
PyObject * GeometrySurfacePy::staticCallback_isUClosed ( PyObject self,
PyObject args 
) [static]
PyObject * GeometrySurfacePy::staticCallback_isUPeriodic ( PyObject self,
PyObject args 
) [static]
PyObject * GeometrySurfacePy::staticCallback_isVClosed ( PyObject self,
PyObject args 
) [static]
PyObject * GeometrySurfacePy::staticCallback_isVPeriodic ( PyObject self,
PyObject args 
) [static]
PyObject * GeometrySurfacePy::staticCallback_parameter ( PyObject self,
PyObject args 
) [static]
PyObject * GeometrySurfacePy::staticCallback_tangent ( PyObject self,
PyObject args 
) [static]
PyObject * GeometrySurfacePy::staticCallback_toBSpline ( PyObject self,
PyObject args 
) [static]
PyObject * GeometrySurfacePy::staticCallback_toShape ( PyObject self,
PyObject args 
) [static]
PyObject * GeometrySurfacePy::staticCallback_UPeriod ( PyObject self,
PyObject args 
) [static]
PyObject * GeometrySurfacePy::staticCallback_value ( PyObject self,
PyObject args 
) [static]
PyObject * GeometrySurfacePy::staticCallback_VPeriod ( PyObject self,
PyObject args 
) [static]
PyObject * GeometrySurfacePy::tangent ( PyObject args  ) 
PyObject * GeometrySurfacePy::toBSpline ( PyObject args  ) 

implementer for the toBSpline() method

Definition at line 309 of file GeometrySurfacePyImp.cpp.

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

PyObject * GeometrySurfacePy::toShape ( PyObject args  ) 

implementer for the toShape() method

Definition at line 72 of file GeometrySurfacePyImp.cpp.

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

PyObject * GeometrySurfacePy::UPeriod ( PyObject args  ) 

implementer for the UPeriod() method

Definition at line 273 of file GeometrySurfacePyImp.cpp.

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

PyObject * GeometrySurfacePy::value ( PyObject args  ) 
PyObject * GeometrySurfacePy::VPeriod ( PyObject args  ) 

implementer for the VPeriod() method

Definition at line 291 of file GeometrySurfacePyImp.cpp.

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


Member Data Documentation

PyGetSetDef GeometrySurfacePy::GetterSetter [static]
PyMethodDef GeometrySurfacePy::Methods [static]
PyParentObject GeometrySurfacePy::Parents = { PARENTSPartGeometrySurfacePy } [static]
PyTypeObject GeometrySurfacePy::Type [static]

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