The python export class for GeomSurface. More...
#include <GeometrySurfacePy.h>
Public Types | |
typedef GeomSurface * | PointerType |
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) | |
PyObject * | getCustomAttributes (const char *attr) const |
getter method for special attributes (e.g. dynamic ones) | |
GeomSurface * | getGeomSurfacePtr (void) const |
getter for the object handled by this class | |
virtual PyParentObject * | GetParents (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 PyObject * | PyMake (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 | |
| |
PyObject * | bounds (PyObject *args) |
implementer for the bounds() method | |
PyObject * | isUClosed (PyObject *args) |
implementer for the isUClosed() method | |
PyObject * | isUPeriodic (PyObject *args) |
implementer for the isUPeriodic() method | |
PyObject * | isVClosed (PyObject *args) |
implementer for the isVClosed() method | |
PyObject * | isVPeriodic (PyObject *args) |
implementer for the isVPeriodic() method | |
PyObject * | parameter (PyObject *args) |
implementer for the parameter() method | |
PyObject * | tangent (PyObject *args) |
implementer for the tangent() method | |
PyObject * | toBSpline (PyObject *args) |
implementer for the toBSpline() method | |
PyObject * | toShape (PyObject *args) |
implementer for the toShape() method | |
PyObject * | UPeriod (PyObject *args) |
implementer for the UPeriod() method | |
PyObject * | value (PyObject *args) |
implementer for the value() method | |
PyObject * | VPeriod (PyObject *args) |
implementer for the VPeriod() method | |
static PyObject * | staticCallback_bounds (PyObject *self, PyObject *args) |
callback for the bounds() method | |
static PyObject * | staticCallback_isUClosed (PyObject *self, PyObject *args) |
callback for the isUClosed() method | |
static PyObject * | staticCallback_isUPeriodic (PyObject *self, PyObject *args) |
callback for the isUPeriodic() method | |
static PyObject * | staticCallback_isVClosed (PyObject *self, PyObject *args) |
callback for the isVClosed() method | |
static PyObject * | staticCallback_isVPeriodic (PyObject *self, PyObject *args) |
callback for the isVPeriodic() method | |
static PyObject * | staticCallback_parameter (PyObject *self, PyObject *args) |
callback for the parameter() method | |
static PyObject * | staticCallback_tangent (PyObject *self, PyObject *args) |
callback for the tangent() method | |
static PyObject * | staticCallback_toBSpline (PyObject *self, PyObject *args) |
callback for the toBSpline() method | |
static PyObject * | staticCallback_toShape (PyObject *self, PyObject *args) |
callback for the toShape() method | |
static PyObject * | staticCallback_UPeriod (PyObject *self, PyObject *args) |
callback for the UPeriod() method | |
static PyObject * | staticCallback_value (PyObject *self, PyObject *args) |
callback for the value() method | |
static PyObject * | staticCallback_VPeriod (PyObject *self, PyObject *args) |
callback for the VPeriod() method |
The python export class for GeomSurface.
Definition at line 20 of file GeometrySurfacePy.h.
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 36 of file GeometrySurfacePy.h.
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.
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().
implementer for the bounds() method
Reimplemented in Part::BezierSurfacePy, and Part::BSplineSurfacePy.
Definition at line 184 of file GeometrySurfacePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), StartPage::StartPage::handle(), Py::new_reference_to(), Py::Tuple::setItem(), and draftlibs::fcgeo::v1().
PyObject * GeometrySurfacePy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
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 370 of file GeometrySurfacePyImp.cpp.
Referenced by _getattr().
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] |
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 28 of file GeometrySurfacePy.h.
virtual PyTypeObject* Part::GeometrySurfacePy::GetType | ( | void | ) | [inline, virtual] |
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 27 of file GeometrySurfacePy.h.
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().
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().
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().
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().
implementer for the parameter() method
Definition at line 154 of file GeometrySurfacePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), StartPage::StartPage::handle(), Py::new_reference_to(), draftTools::p, importDXF::prec(), Py::Tuple::setItem(), Base::VectorPy::Type, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
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.
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 58 of file GeometrySurfacePyImp.cpp.
std::string GeometrySurfacePy::representation | ( | void | ) | const |
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 53 of file GeometrySurfacePyImp.cpp.
Referenced by _repr().
int GeometrySurfacePy::setCustomAttributes | ( | const char * | attr, | |
PyObject * | obj | |||
) |
setter for special attributes (e.g. dynamic ones)
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 375 of file GeometrySurfacePyImp.cpp.
Referenced by _setattr().
callback for the bounds() method
Reimplemented in Part::BezierSurfacePy, and Part::BSplineSurfacePy.
Definition at line 371 of file GeometrySurfacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * GeometrySurfacePy::staticCallback_isUClosed | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the isUClosed() method
Reimplemented in Part::BezierSurfacePy, and Part::BSplineSurfacePy.
Definition at line 599 of file GeometrySurfacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * GeometrySurfacePy::staticCallback_isUPeriodic | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the isUPeriodic() method
Reimplemented in Part::BezierSurfacePy, and Part::BSplineSurfacePy.
Definition at line 447 of file GeometrySurfacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * GeometrySurfacePy::staticCallback_isVClosed | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the isVClosed() method
Reimplemented in Part::BezierSurfacePy, and Part::BSplineSurfacePy.
Definition at line 675 of file GeometrySurfacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * GeometrySurfacePy::staticCallback_isVPeriodic | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the isVPeriodic() method
Reimplemented in Part::BezierSurfacePy, and Part::BSplineSurfacePy.
Definition at line 523 of file GeometrySurfacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * GeometrySurfacePy::staticCallback_parameter | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the parameter() method
Definition at line 903 of file GeometrySurfacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
callback for the tangent() method
Definition at line 295 of file GeometrySurfacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
PyObject * GeometrySurfacePy::staticCallback_toBSpline | ( | PyObject * | self, | |
PyObject * | args | |||
) | [static] |
callback for the toBSpline() method
Definition at line 979 of file GeometrySurfacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
callback for the toShape() method
Definition at line 150 of file GeometrySurfacePy.cpp.
References Base::Console(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
callback for the UPeriod() method
Definition at line 751 of file GeometrySurfacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
callback for the value() method
Definition at line 219 of file GeometrySurfacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
callback for the VPeriod() method
Definition at line 827 of file GeometrySurfacePy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
implementer for the tangent() method
Definition at line 120 of file GeometrySurfacePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), Part::Geometry::handle(), Py::new_reference_to(), and Py::Tuple::setItem().
implementer for the toBSpline() method
Definition at line 309 of file GeometrySurfacePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), StartPage::StartPage::handle(), and importDXF::prec().
implementer for the toShape() method
Definition at line 72 of file GeometrySurfacePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), Part::Geometry::handle(), and draftlibs::fcgeo::v1().
implementer for the UPeriod() method
Definition at line 273 of file GeometrySurfacePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().
implementer for the value() method
Definition at line 97 of file GeometrySurfacePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), Part::Geometry::handle(), and draftTools::p.
Referenced by Part::BSplineSurfacePy::movePoint(), Part::SurfaceOfRevolutionPy::PyInit(), Part::SurfaceOfExtrusionPy::PyInit(), Part::PlanePy::PyInit(), Part::CylinderPy::PyInit(), Part::ConePy::PyInit(), Part::ToroidPy::setAxis(), Part::SpherePy::setAxis(), Part::PlanePy::setAxis(), Part::CylinderPy::setAxis(), Part::ConePy::setAxis(), Part::ToroidPy::setCenter(), Part::SpherePy::setCenter(), Part::CylinderPy::setCenter(), Part::ConePy::setCenter(), Part::SurfaceOfRevolutionPy::setDirection(), Part::SurfaceOfExtrusionPy::setDirection(), Part::SurfaceOfRevolutionPy::setLocation(), Part::BSplineSurfacePy::setPole(), Part::BezierSurfacePy::setPole(), and Part::PlanePy::setPosition().
implementer for the VPeriod() method
Definition at line 291 of file GeometrySurfacePyImp.cpp.
References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().
PyGetSetDef GeometrySurfacePy::GetterSetter [static] |
{ {NULL, NULL, NULL, NULL, NULL} }
Attribute structure of GeometrySurfacePy.
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 25 of file GeometrySurfacePy.h.
PyMethodDef GeometrySurfacePy::Methods [static] |
Methods structure of GeometrySurfacePy.
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 24 of file GeometrySurfacePy.h.
Referenced by _getattr().
PyParentObject GeometrySurfacePy::Parents = { PARENTSPartGeometrySurfacePy } [static] |
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 26 of file GeometrySurfacePy.h.
PyTypeObject GeometrySurfacePy::Type [static] |
Type structure of GeometrySurfacePy.
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 23 of file GeometrySurfacePy.h.
Referenced by Part::RectangularTrimmedSurfacePy::PyInit().