Part::TopoShapeEdgePy Class Reference

The python export class for TopoShape. More...

#include <TopoShapeEdgePy.h>

Inheritance diagram for Part::TopoShapeEdgePy:
Part::TopoShapePy Data::ComplexGeoDataPy Base::PersistencePy Base::BaseClassPy Base::PyObjectBase

List of all members.

Public Types

typedef TopoShapePointerType

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)
virtual PyParentObjectGetParents (void)
TopoShapegetTopoShapePtr (void) const
 getter for the object handled by this class
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)
 TopoShapeEdgePy (TopoShape *pcObject, PyTypeObject *T=&Type)
 ~TopoShapeEdgePy ()

Static Public Member Functions

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

Static Public Attributes

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

callbacks and implementers for the python object methods



PyObjectcenterOfCurvatureAt (PyObject *args)
 implementer for the centerOfCurvatureAt() method
PyObjectcurvatureAt (PyObject *args)
 implementer for the curvatureAt() method
PyObjectderivative1At (PyObject *args)
 implementer for the derivative1At() method
PyObjectderivative2At (PyObject *args)
 implementer for the derivative2At() method
PyObjectderivative3At (PyObject *args)
 implementer for the derivative3At() method
PyObjectnormalAt (PyObject *args)
 implementer for the normalAt() method
PyObjectsetTolerance (PyObject *args)
 implementer for the setTolerance() method
PyObjecttangentAt (PyObject *args)
 implementer for the tangentAt() method
PyObjectvalueAt (PyObject *args)
 implementer for the valueAt() method
static PyObjectstaticCallback_centerOfCurvatureAt (PyObject *self, PyObject *args)
 callback for the centerOfCurvatureAt() method
static PyObjectstaticCallback_curvatureAt (PyObject *self, PyObject *args)
 callback for the curvatureAt() method
static PyObjectstaticCallback_derivative1At (PyObject *self, PyObject *args)
 callback for the derivative1At() method
static PyObjectstaticCallback_derivative2At (PyObject *self, PyObject *args)
 callback for the derivative2At() method
static PyObjectstaticCallback_derivative3At (PyObject *self, PyObject *args)
 callback for the derivative3At() method
static PyObjectstaticCallback_normalAt (PyObject *self, PyObject *args)
 callback for the normalAt() method
static PyObjectstaticCallback_setTolerance (PyObject *self, PyObject *args)
 callback for the setTolerance() method
static PyObjectstaticCallback_tangentAt (PyObject *self, PyObject *args)
 callback for the tangentAt() method
static PyObjectstaticCallback_valueAt (PyObject *self, PyObject *args)
 callback for the valueAt() method

callbacks and implementers for the python object attributes



Py::Object getCenterOfMass (void) const
 getter for the CenterOfMass attribute
Py::Boolean getClosed (void) const
 getter for the Closed attribute
Py::Object getCurve (void) const
 getter for the Curve attribute
Py::Boolean getDegenerated (void) const
 getter for the Degenerated attribute
Py::Float getLength (void) const
 getter for the Length attribute
Py::Tuple getParameterRange (void) const
 getter for the ParameterRange attribute
static PyObjectstaticCallback_getCenterOfMass (PyObject *self, void *closure)
 getter callback for the CenterOfMass attribute
static PyObjectstaticCallback_getClosed (PyObject *self, void *closure)
 getter callback for the Closed attribute
static PyObjectstaticCallback_getCurve (PyObject *self, void *closure)
 getter callback for the Curve attribute
static PyObjectstaticCallback_getDegenerated (PyObject *self, void *closure)
 getter callback for the Degenerated attribute
static PyObjectstaticCallback_getLength (PyObject *self, void *closure)
 getter callback for the Length attribute
static PyObjectstaticCallback_getParameterRange (PyObject *self, void *closure)
 getter callback for the ParameterRange attribute
static int staticCallback_setCenterOfMass (PyObject *self, PyObject *value, void *closure)
 setter callback for the CenterOfMass attribute
static int staticCallback_setClosed (PyObject *self, PyObject *value, void *closure)
 setter callback for the Closed attribute
static int staticCallback_setCurve (PyObject *self, PyObject *value, void *closure)
 setter callback for the Curve attribute
static int staticCallback_setDegenerated (PyObject *self, PyObject *value, void *closure)
 setter callback for the Degenerated attribute
static int staticCallback_setLength (PyObject *self, PyObject *value, void *closure)
 setter callback for the Length attribute
static int staticCallback_setParameterRange (PyObject *self, PyObject *value, void *closure)
 setter callback for the ParameterRange attribute

Detailed Description

The python export class for TopoShape.

Definition at line 20 of file TopoShapeEdgePy.h.


Member Typedef Documentation

Reimplemented from Part::TopoShapePy.

Definition at line 36 of file TopoShapeEdgePy.h.


Constructor & Destructor Documentation

TopoShapeEdgePy::TopoShapeEdgePy ( TopoShape pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 1052 of file TopoShapeEdgePy.cpp.

Referenced by PyMake().

TopoShapeEdgePy::~TopoShapeEdgePy (  ) 

Definition at line 1061 of file TopoShapeEdgePy.cpp.


Member Function Documentation

PyObject * TopoShapeEdgePy::_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::TopoShapePy.

Definition at line 1076 of file TopoShapeEdgePy.cpp.

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

PyObject * TopoShapeEdgePy::_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::TopoShapePy.

Definition at line 1068 of file TopoShapeEdgePy.cpp.

References representation().

int TopoShapeEdgePy::_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::TopoShapePy.

Definition at line 1144 of file TopoShapeEdgePy.cpp.

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

PyObject * TopoShapeEdgePy::centerOfCurvatureAt ( PyObject args  ) 

implementer for the centerOfCurvatureAt() method

Definition at line 278 of file TopoShapeEdgePyImp.cpp.

References getTopoShapePtr(), and Base::Length.

PyObject * TopoShapeEdgePy::curvatureAt ( PyObject args  ) 

implementer for the curvatureAt() method

Definition at line 248 of file TopoShapeEdgePyImp.cpp.

References getTopoShapePtr(), Base::Length, and Py::new_reference_to().

PyObject * TopoShapeEdgePy::derivative1At ( PyObject args  ) 

implementer for the derivative1At() method

Definition at line 309 of file TopoShapeEdgePyImp.cpp.

References getTopoShapePtr(), and Base::Length.

PyObject * TopoShapeEdgePy::derivative2At ( PyObject args  ) 

implementer for the derivative2At() method

Definition at line 339 of file TopoShapeEdgePyImp.cpp.

References getTopoShapePtr(), and Base::Length.

PyObject * TopoShapeEdgePy::derivative3At ( PyObject args  ) 

implementer for the derivative3At() method

Definition at line 369 of file TopoShapeEdgePyImp.cpp.

References getTopoShapePtr(), and Base::Length.

Py::Object TopoShapeEdgePy::getCenterOfMass ( void   )  const

getter for the CenterOfMass attribute

Definition at line 500 of file TopoShapeEdgePyImp.cpp.

References getTopoShapePtr().

Referenced by staticCallback_getCenterOfMass().

Py::Boolean TopoShapeEdgePy::getClosed ( void   )  const

getter for the Closed attribute

Definition at line 508 of file TopoShapeEdgePyImp.cpp.

References getTopoShapePtr().

Referenced by staticCallback_getClosed().

Py::Object TopoShapeEdgePy::getCurve ( void   )  const
PyObject * TopoShapeEdgePy::getCustomAttributes ( const char *  attr  )  const

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

Reimplemented from Part::TopoShapePy.

Definition at line 520 of file TopoShapeEdgePyImp.cpp.

Referenced by _getattr().

Py::Boolean TopoShapeEdgePy::getDegenerated ( void   )  const

getter for the Degenerated attribute

Definition at line 514 of file TopoShapeEdgePyImp.cpp.

References getTopoShapePtr().

Referenced by staticCallback_getDegenerated().

Py::Float TopoShapeEdgePy::getLength ( void   )  const

getter for the Length attribute

Reimplemented from Part::TopoShapePy.

Definition at line 412 of file TopoShapeEdgePyImp.cpp.

References getTopoShapePtr(), and Base::Length.

Referenced by staticCallback_getLength().

Py::Tuple TopoShapeEdgePy::getParameterRange ( void   )  const

getter for the ParameterRange attribute

Definition at line 487 of file TopoShapeEdgePyImp.cpp.

References getTopoShapePtr(), Py::Tuple::setItem(), and RobotExample::t.

Referenced by staticCallback_getParameterRange().

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

Reimplemented from Part::TopoShapePy.

Definition at line 28 of file TopoShapeEdgePy.h.

TopoShape * TopoShapeEdgePy::getTopoShapePtr ( void   )  const
virtual PyTypeObject* Part::TopoShapeEdgePy::GetType ( void   )  [inline, virtual]

Reimplemented from Part::TopoShapePy.

Definition at line 27 of file TopoShapeEdgePy.h.

PyObject * TopoShapeEdgePy::normalAt ( PyObject args  ) 

implementer for the normalAt() method

Definition at line 217 of file TopoShapeEdgePyImp.cpp.

References getTopoShapePtr(), and Base::Length.

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

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

Reimplemented from Part::TopoShapePy.

Definition at line 94 of file TopoShapeEdgePyImp.cpp.

References Part::TopoShape::_Shape, getTopoShapePtr(), Part::Geometry::handle(), Part::TopoShapeVertexPy::Type, Part::TopoShapePy::Type, Part::GeometryPy::Type, and draftlibs::fcgeo::v1().

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

Reimplemented from Part::TopoShapePy.

Definition at line 87 of file TopoShapeEdgePyImp.cpp.

References TopoShapeEdgePy().

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

Reimplemented from Part::TopoShapePy.

Definition at line 79 of file TopoShapeEdgePyImp.cpp.

References getTopoShapePtr().

Referenced by _repr().

int TopoShapeEdgePy::setCustomAttributes ( const char *  attr,
PyObject obj 
)

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

Reimplemented from Part::TopoShapePy.

Definition at line 525 of file TopoShapeEdgePyImp.cpp.

Referenced by _setattr().

PyObject * TopoShapeEdgePy::setTolerance ( PyObject args  ) 

implementer for the setTolerance() method

Definition at line 399 of file TopoShapeEdgePyImp.cpp.

References getTopoShapePtr(), and Py_Return.

PyObject * TopoShapeEdgePy::staticCallback_centerOfCurvatureAt ( PyObject self,
PyObject args 
) [static]
PyObject * TopoShapeEdgePy::staticCallback_curvatureAt ( PyObject self,
PyObject args 
) [static]
PyObject * TopoShapeEdgePy::staticCallback_derivative1At ( PyObject self,
PyObject args 
) [static]
PyObject * TopoShapeEdgePy::staticCallback_derivative2At ( PyObject self,
PyObject args 
) [static]
PyObject * TopoShapeEdgePy::staticCallback_derivative3At ( PyObject self,
PyObject args 
) [static]
PyObject * TopoShapeEdgePy::staticCallback_getCenterOfMass ( PyObject self,
void *  closure 
) [static]

getter callback for the CenterOfMass attribute

Definition at line 949 of file TopoShapeEdgePy.cpp.

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

PyObject * TopoShapeEdgePy::staticCallback_getClosed ( PyObject self,
void *  closure 
) [static]

getter callback for the Closed attribute

Definition at line 981 of file TopoShapeEdgePy.cpp.

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

PyObject * TopoShapeEdgePy::staticCallback_getCurve ( PyObject self,
void *  closure 
) [static]

getter callback for the Curve attribute

Definition at line 917 of file TopoShapeEdgePy.cpp.

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

PyObject * TopoShapeEdgePy::staticCallback_getDegenerated ( PyObject self,
void *  closure 
) [static]

getter callback for the Degenerated attribute

Definition at line 1013 of file TopoShapeEdgePy.cpp.

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

PyObject * TopoShapeEdgePy::staticCallback_getLength ( PyObject self,
void *  closure 
) [static]

getter callback for the Length attribute

Reimplemented from Part::TopoShapePy.

Definition at line 853 of file TopoShapeEdgePy.cpp.

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

PyObject * TopoShapeEdgePy::staticCallback_getParameterRange ( PyObject self,
void *  closure 
) [static]

getter callback for the ParameterRange attribute

Definition at line 885 of file TopoShapeEdgePy.cpp.

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

PyObject * TopoShapeEdgePy::staticCallback_normalAt ( PyObject self,
PyObject args 
) [static]
int TopoShapeEdgePy::staticCallback_setCenterOfMass ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the CenterOfMass attribute

Definition at line 967 of file TopoShapeEdgePy.cpp.

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

int TopoShapeEdgePy::staticCallback_setClosed ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Closed attribute

Definition at line 999 of file TopoShapeEdgePy.cpp.

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

int TopoShapeEdgePy::staticCallback_setCurve ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Curve attribute

Definition at line 935 of file TopoShapeEdgePy.cpp.

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

int TopoShapeEdgePy::staticCallback_setDegenerated ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Degenerated attribute

Definition at line 1031 of file TopoShapeEdgePy.cpp.

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

int TopoShapeEdgePy::staticCallback_setLength ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Length attribute

Reimplemented from Part::TopoShapePy.

Definition at line 871 of file TopoShapeEdgePy.cpp.

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

int TopoShapeEdgePy::staticCallback_setParameterRange ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the ParameterRange attribute

Definition at line 903 of file TopoShapeEdgePy.cpp.

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

PyObject * TopoShapeEdgePy::staticCallback_setTolerance ( PyObject self,
PyObject args 
) [static]
PyObject * TopoShapeEdgePy::staticCallback_tangentAt ( PyObject self,
PyObject args 
) [static]
PyObject * TopoShapeEdgePy::staticCallback_valueAt ( PyObject self,
PyObject args 
) [static]
PyObject * TopoShapeEdgePy::tangentAt ( PyObject args  ) 

implementer for the tangentAt() method

Definition at line 187 of file TopoShapeEdgePyImp.cpp.

References getTopoShapePtr(), and Base::Length.

PyObject * TopoShapeEdgePy::valueAt ( PyObject args  ) 

implementer for the valueAt() method

Definition at line 162 of file TopoShapeEdgePyImp.cpp.

References getTopoShapePtr(), and Base::Length.


Member Data Documentation

PyGetSetDef TopoShapeEdgePy::GetterSetter [static]

Attribute structure of TopoShapeEdgePy.

Reimplemented from Part::TopoShapePy.

Definition at line 25 of file TopoShapeEdgePy.h.

PyMethodDef TopoShapeEdgePy::Methods [static]

Methods structure of TopoShapeEdgePy.

Reimplemented from Part::TopoShapePy.

Definition at line 24 of file TopoShapeEdgePy.h.

Referenced by _getattr().

PyParentObject TopoShapeEdgePy::Parents = { PARENTSPartTopoShapeEdgePy } [static]

Reimplemented from Part::TopoShapePy.

Definition at line 26 of file TopoShapeEdgePy.h.

PyTypeObject TopoShapeEdgePy::Type [static]

Type structure of TopoShapeEdgePy.

Reimplemented from Part::TopoShapePy.

Definition at line 23 of file TopoShapeEdgePy.h.

Referenced by initPart(), and makeFilledFace().


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

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