The python export class for Geom2dCurve. More...
#include <Curve2dPy.h>
Public Types | |
typedef Geom2dCurve * | PointerType |
Public Types inherited from Part::Geometry2dPy | |
typedef Geometry2d * | PointerType |
Public Types inherited from Base::PyObjectBase | |
typedef void * | PointerType |
enum | Status { Valid = 0, Immutable = 1, Notify = 2, NoTrack = 3 } |
Public Member Functions | |
Curve2dPy (Geom2dCurve *pcObject, PyTypeObject *T=&Type) | |
virtual PyTypeObject * | GetType (void) |
virtual int | PyInit (PyObject *args, PyObject *k) |
PyInit method Override this method to initialize a newly created instance of the class (Constructor) More... | |
std::string | representation (void) const |
Public Member Functions inherited from Part::Geometry2dPy | |
Geometry2dPy (Geometry2d *pcObject, PyTypeObject *T=&Type) | |
std::string | representation (void) const |
PyObject * | getCustomAttributes (const char *attr) const |
getter method for special attributes (e.g. dynamic ones) More... | |
int | setCustomAttributes (const char *attr, PyObject *obj) |
setter for special attributes (e.g. More... | |
Geometry2d * | getGeometry2dPtr (void) const |
getter for the object handled by this class More... | |
PyObject * | mirror (PyObject *args) |
implementer for the mirror() method More... | |
PyObject * | rotate (PyObject *args) |
implementer for the rotate() method More... | |
PyObject * | scale (PyObject *args) |
implementer for the scale() method More... | |
PyObject * | transform (PyObject *args) |
implementer for the transform() method More... | |
PyObject * | translate (PyObject *args) |
implementer for the translate() method More... | |
PyObject * | copy (PyObject *args) |
implementer for the copy() method More... | |
Public Member Functions inherited from Base::PyObjectBase | |
PyObjectBase * | DecRef (void) |
decref method wrapper (see python extending manual) More... | |
PyObjectBase * | IncRef (void) |
incref method wrapper (see python extending manual) More... | |
bool | isConst () |
bool | isNotTracking () const |
bool | isValid () |
PyObjectBase (void *, PyTypeObject *T) | |
Constructor Sets the Type of the object (for inheritance) and decrease the the reference count of the PyObject. More... | |
void | setConst () |
void | setInvalid () |
void | setNotTracking (bool on=true) |
void | setShouldNotify (bool on) |
bool | shouldNotify () const |
void | startNotify () |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Member Functions inherited from Part::Geometry2dPy | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
static PyObject * | staticCallback_mirror (PyObject *self, PyObject *args) |
callback for the mirror() method More... | |
static PyObject * | staticCallback_rotate (PyObject *self, PyObject *args) |
callback for the rotate() method More... | |
static PyObject * | staticCallback_scale (PyObject *self, PyObject *args) |
callback for the scale() method More... | |
static PyObject * | staticCallback_transform (PyObject *self, PyObject *args) |
callback for the transform() method More... | |
static PyObject * | staticCallback_translate (PyObject *self, PyObject *args) |
callback for the translate() method More... | |
static PyObject * | staticCallback_copy (PyObject *self, PyObject *args) |
callback for the copy() method More... | |
Static Public Member Functions inherited from Base::PyObjectBase | |
static void | PyDestructor (PyObject *P) |
Wrapper for the Python destructor. More... | |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of Curve2dPy. More... | |
static PyMethodDef | Methods [] |
Methods structure of Curve2dPy. More... | |
static PyTypeObject | Type |
Type structure of Curve2dPy. More... | |
Static Public Attributes inherited from Part::Geometry2dPy | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of Geometry2dPy. More... | |
static PyMethodDef | Methods [] |
Methods structure of Geometry2dPy. More... | |
static PyTypeObject | Type |
Type structure of Geometry2dPy. More... | |
Static Public Attributes inherited from Base::PyObjectBase | |
static PyMethodDef | Methods [] |
static PyTypeObject | Type |
Py_Header struct from python.h. More... | |
Protected Member Functions | |
~Curve2dPy () | |
Protected Member Functions inherited from Part::Geometry2dPy | |
~Geometry2dPy () | |
Protected Member Functions inherited from Base::PyObjectBase | |
virtual | ~PyObjectBase () |
destructor More... | |
callbacks and implementers for the python object attributes | |
Py::String | getContinuity (void) const |
getter for the Continuity attribute More... | |
Py::Boolean | getClosed (void) const |
getter for the Closed attribute More... | |
Py::Boolean | getPeriodic (void) const |
getter for the Periodic attribute More... | |
Py::Float | getFirstParameter (void) const |
getter for the FirstParameter attribute More... | |
Py::Float | getLastParameter (void) const |
getter for the LastParameter attribute More... | |
PyObject * | getCustomAttributes (const char *attr) const |
getter method for special attributes (e.g. dynamic ones) More... | |
int | setCustomAttributes (const char *attr, PyObject *obj) |
setter for special attributes (e.g. More... | |
Geom2dCurve * | getGeom2dCurvePtr (void) const |
getter for the object handled by this class More... | |
static PyObject * | staticCallback_getContinuity (PyObject *self, void *closure) |
getter callback for the Continuity attribute More... | |
static int | staticCallback_setContinuity (PyObject *self, PyObject *value, void *closure) |
setter callback for the Continuity attribute More... | |
static PyObject * | staticCallback_getClosed (PyObject *self, void *closure) |
getter callback for the Closed attribute More... | |
static int | staticCallback_setClosed (PyObject *self, PyObject *value, void *closure) |
setter callback for the Closed attribute More... | |
static PyObject * | staticCallback_getPeriodic (PyObject *self, void *closure) |
getter callback for the Periodic attribute More... | |
static int | staticCallback_setPeriodic (PyObject *self, PyObject *value, void *closure) |
setter callback for the Periodic attribute More... | |
static PyObject * | staticCallback_getFirstParameter (PyObject *self, void *closure) |
getter callback for the FirstParameter attribute More... | |
static int | staticCallback_setFirstParameter (PyObject *self, PyObject *value, void *closure) |
setter callback for the FirstParameter attribute More... | |
static PyObject * | staticCallback_getLastParameter (PyObject *self, void *closure) |
getter callback for the LastParameter attribute More... | |
static int | staticCallback_setLastParameter (PyObject *self, PyObject *value, void *closure) |
setter callback for the LastParameter attribute More... | |
Additional Inherited Members | |
Protected Attributes inherited from Base::PyObjectBase | |
std::bitset< 32 > | StatusBits |
Detailed Description
The python export class for Geom2dCurve.
Member Typedef Documentation
◆ PointerType
typedef Geom2dCurve* Part::Curve2dPy::PointerType |
Constructor & Destructor Documentation
◆ ~Curve2dPy()
|
protected |
◆ Curve2dPy()
Curve2dPy::Curve2dPy | ( | Geom2dCurve * | pcObject, |
PyTypeObject * | T = &Type |
||
) |
Member Function Documentation
◆ approximateBSpline()
implementer for the approximateBSpline() method
References Part::Geometry2dPy::getGeometry2dPtr(), and Part::PartExceptionOCCError.
Referenced by staticCallback_approximateBSpline().
◆ centerOfCurvature()
implementer for the centerOfCurvature() method
References Part::Geometry2dPy::getGeometry2dPtr(), and Part::PartExceptionOCCError.
Referenced by staticCallback_centerOfCurvature().
◆ curvature()
implementer for the curvature() method
References Part::Geometry2dPy::getGeometry2dPtr(), and Part::PartExceptionOCCError.
Referenced by discretize(), and staticCallback_curvature().
◆ discretize()
implementer for the discretize() method
References curvature(), Part::Geometry2dPy::getGeometry2dPtr(), and Part::PartExceptionOCCError.
Referenced by staticCallback_discretize().
◆ getClosed()
Py::Boolean Curve2dPy::getClosed | ( | void | ) | const |
getter for the Closed attribute
References Part::Geometry2dPy::getGeometry2dPtr().
Referenced by staticCallback_getClosed().
◆ getContinuity()
Py::String Curve2dPy::getContinuity | ( | void | ) | const |
getter for the Continuity attribute
References Part::Geometry2dPy::getGeometry2dPtr().
Referenced by staticCallback_getContinuity().
◆ getCustomAttributes()
PyObject * Curve2dPy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
◆ getFirstParameter()
Py::Float Curve2dPy::getFirstParameter | ( | void | ) | const |
getter for the FirstParameter attribute
References Part::Geometry2dPy::getGeometry2dPtr().
Referenced by staticCallback_getFirstParameter().
◆ getGeom2dCurvePtr()
Geom2dCurve * Curve2dPy::getGeom2dCurvePtr | ( | void | ) | const |
getter for the object handled by this class
Referenced by reverse().
◆ getLastParameter()
Py::Float Curve2dPy::getLastParameter | ( | void | ) | const |
getter for the LastParameter attribute
References Part::Geometry2dPy::getGeometry2dPtr().
Referenced by staticCallback_getLastParameter().
◆ getPeriodic()
Py::Boolean Curve2dPy::getPeriodic | ( | void | ) | const |
getter for the Periodic attribute
References Part::Geometry2dPy::getGeometry2dPtr().
Referenced by staticCallback_getPeriodic().
◆ GetType()
|
virtual |
Reimplemented from Part::Geometry2dPy.
Reimplemented in Part::ArcOfCircle2dPy, Part::ArcOfConic2dPy, Part::ArcOfEllipse2dPy, Part::ArcOfHyperbola2dPy, Part::ArcOfParabola2dPy, Part::BezierCurve2dPy, Part::BSplineCurve2dPy, Part::Circle2dPy, Part::Conic2dPy, Part::Ellipse2dPy, Part::Hyperbola2dPy, Part::Line2dPy, Part::Line2dSegmentPy, Part::OffsetCurve2dPy, and Part::Parabola2dPy.
◆ intersectCC()
implementer for the intersectCC() method
References Part::Geometry2dPy::getGeometry2dPtr(), and Type.
Referenced by staticCallback_intersectCC().
◆ length()
implementer for the length() method
References Part::Geometry2dPy::getGeometry2dPtr(), and Part::PartExceptionOCCError.
Referenced by staticCallback_length().
◆ normal()
implementer for the normal() method
References Part::Geometry2dPy::getGeometry2dPtr(), and Part::PartExceptionOCCError.
Referenced by staticCallback_normal().
◆ parameter()
implementer for the parameter() method
References Part::Geometry2dPy::getGeometry2dPtr(), and Part::PartExceptionOCCError.
Referenced by Part::BSplineCurve2dPy::getCardinalSplineTangents(), and staticCallback_parameter().
◆ parameterAtDistance()
implementer for the parameterAtDistance() method
References Part::Geometry2dPy::getGeometry2dPtr(), and Part::PartExceptionOCCError.
Referenced by staticCallback_parameterAtDistance().
◆ PyInit()
PyInit method Override this method to initialize a newly created instance of the class (Constructor)
Reimplemented from Part::Geometry2dPy.
Reimplemented in Part::ArcOfCircle2dPy, Part::ArcOfConic2dPy, Part::ArcOfEllipse2dPy, Part::ArcOfHyperbola2dPy, Part::ArcOfParabola2dPy, Part::BezierCurve2dPy, Part::BSplineCurve2dPy, Part::Circle2dPy, Part::Conic2dPy, Part::Ellipse2dPy, Part::Hyperbola2dPy, Part::Line2dPy, Part::Line2dSegmentPy, Part::OffsetCurve2dPy, and Part::Parabola2dPy.
◆ PyMake()
◆ representation()
std::string Curve2dPy::representation | ( | void | ) | const |
Referenced by config_control_design.pcurve::wr1(), config_control_design.degenerate_pcurve::wr1(), automotive_design.motion_link_relationship::wr1(), automotive_design.pcurve::wr1(), automotive_design.degenerate_pcurve::wr1(), config_control_design.pcurve::wr2(), config_control_design.degenerate_pcurve::wr2(), automotive_design.pcurve::wr2(), and automotive_design.degenerate_pcurve::wr2().
◆ reverse()
implementer for the reverse() method
References getGeom2dCurvePtr(), and Part::PartExceptionOCCError.
Referenced by staticCallback_reverse().
◆ setCustomAttributes()
int Curve2dPy::setCustomAttributes | ( | const char * | attr, |
PyObject * | obj | ||
) |
setter for special attributes (e.g.
dynamic ones) Output: Success=1, Failure=-1, Ignore=0
◆ staticCallback_approximateBSpline()
◆ staticCallback_centerOfCurvature()
callback for the centerOfCurvature() method
References Base::BaseExceptionFreeCADError, centerOfCurvature(), Base::Console(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_curvature()
callback for the curvature() method
References Base::BaseExceptionFreeCADError, Base::Console(), curvature(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_discretize()
|
static |
callback for the discretize() method
References Base::BaseExceptionFreeCADError, Base::Console(), discretize(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getClosed()
getter callback for the Closed attribute
References Base::BaseExceptionFreeCADError, getClosed(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getContinuity()
getter callback for the Continuity attribute
References Base::BaseExceptionFreeCADError, getContinuity(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getFirstParameter()
getter callback for the FirstParameter attribute
References Base::BaseExceptionFreeCADError, getFirstParameter(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getLastParameter()
getter callback for the LastParameter attribute
References Base::BaseExceptionFreeCADError, getLastParameter(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getPeriodic()
getter callback for the Periodic attribute
References Base::BaseExceptionFreeCADError, getPeriodic(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_intersectCC()
callback for the intersectCC() method
References Base::BaseExceptionFreeCADError, Base::Console(), Base::ConsoleSingleton::Error(), intersectCC(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_length()
callback for the length() method
References Base::BaseExceptionFreeCADError, Base::Console(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), length(), Base::PyObjectBase::PyObjectBase(), and Base::PyObjectBase::startNotify().
◆ staticCallback_normal()
callback for the normal() method
References Base::BaseExceptionFreeCADError, Base::Console(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isValid(), normal(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_parameter()
◆ staticCallback_parameterAtDistance()
◆ staticCallback_reverse()
callback for the reverse() method
References Base::BaseExceptionFreeCADError, Base::Console(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), reverse(), and Base::PyObjectBase::startNotify().
◆ staticCallback_setClosed()
|
static |
setter callback for the Closed attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setContinuity()
|
static |
setter callback for the Continuity attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setFirstParameter()
|
static |
setter callback for the FirstParameter attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setLastParameter()
|
static |
setter callback for the LastParameter attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setPeriodic()
|
static |
setter callback for the Periodic attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_tangent()
callback for the tangent() method
References Base::BaseExceptionFreeCADError, Base::Console(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::PyObjectBase::startNotify(), and tangent().
◆ staticCallback_toBSpline()
◆ staticCallback_toShape()
callback for the toShape() method
References Base::BaseExceptionFreeCADError, Base::Console(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and toShape().
◆ staticCallback_value()
callback for the value() method
References Base::BaseExceptionFreeCADError, Base::Console(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::PyObjectBase::startNotify(), and value().
◆ tangent()
implementer for the tangent() method
References Part::Geometry2dPy::getGeometry2dPtr(), and Part::PartExceptionOCCError.
Referenced by staticCallback_tangent().
◆ toBSpline()
implementer for the toBSpline() method
References Part::Geometry2dPy::getGeometry2dPtr(), and Part::PartExceptionOCCError.
Referenced by staticCallback_toBSpline().
◆ toShape()
implementer for the toShape() method
References Part::create3dCurve(), Part::Geometry2dPy::getGeometry2dPtr(), Part::PartExceptionOCCError, Part::shape2pyshape(), Part::TopoShapeFacePy::Type, and Part::GeometrySurfacePy::Type.
Referenced by staticCallback_toShape().
◆ value()
implementer for the value() method
References Part::Geometry2dPy::getGeometry2dPtr(), and Part::PartExceptionOCCError.
Referenced by staticCallback_value().
Member Data Documentation
◆ GetterSetter
|
static |
Attribute structure of Curve2dPy.
◆ Methods
|
static |
Methods structure of Curve2dPy.
◆ Type
|
static |
Type structure of Curve2dPy.
Referenced by ArchPanel.CommandPanelSheet::Activated(), ArchStructure.StructSelectionObserver::addSelection(), ArchSite.Compass::buildCoordinates(), intersectCC(), ArchSchedule.CommandArchSchedule::IsActive(), ArchAxis.CommandArchGrid::IsActive(), Part::OffsetCurve2dPy::PyInit(), and Part::OffsetCurve2dPy::setBasisCurve().
The documentation for this class was generated from the following files:
- build/webdoc/src/Mod/Part/App/Geom2d/Curve2dPy.h
- src/Mod/Part/App/Geom2d/Curve2dPyImp.cpp
- build/webdoc/src/Mod/Part/App/Geom2d/Curve2dPy.cpp