The python export class for Sketch. More...
#include <SketchPy.h>
Public Types | |
typedef Sketch * PointerType | |
![]() | |
typedef Persistence * PointerType | |
![]() | |
typedef BaseClass * PointerType | |
![]() | |
typedef void * PointerType | |
enum Status { Valid = 0, Immutable = 1, Notify = 2, NoTrack = 3 } | |
Public Member Functions | |
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 | |
SketchPy (Sketch *pcObject, PyTypeObject *T=&Type) | |
![]() | |
PersistencePy (Persistence *pcObject, PyTypeObject *T=&Type) | |
std::string representation (void) const | |
PyObject * dumpContent (PyObject *args, PyObject *kwd) | |
implementer for the dumpContent() method More... | |
PyObject * restoreContent (PyObject *args) | |
implementer for the restoreContent() method More... | |
Py::String getContent (void) const | |
getter for the Content attribute More... | |
Py::Int getMemSize (void) const | |
getter for the MemSize 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... | |
Persistence * getPersistencePtr (void) const | |
getter for the object handled by this class More... | |
![]() | |
BaseClassPy (BaseClass *pcObject, PyTypeObject *T=&Type) | |
std::string representation (void) const | |
PyObject * isDerivedFrom (PyObject *args) | |
implementer for the isDerivedFrom() method More... | |
PyObject * getAllDerivedFrom (PyObject *args) | |
implementer for the getAllDerivedFrom() method More... | |
Py::String getTypeId (void) const | |
getter for the TypeId attribute More... | |
Py::String getModule (void) const | |
getter for the Module 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... | |
BaseClass * getBaseClassPtr (void) const | |
getter for the object handled by this class More... | |
![]() | |
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 PyObject * PyMake (struct _typeobject *, PyObject *, PyObject *) | |
static PyObject * staticCallback_dumpContent (PyObject *self, PyObject *args, PyObject *kwd) | |
callback for the dumpContent() method More... | |
static PyObject * staticCallback_restoreContent (PyObject *self, PyObject *args) | |
callback for the restoreContent() method More... | |
static PyObject * staticCallback_getContent (PyObject *self, void *closure) | |
getter callback for the Content attribute More... | |
static int staticCallback_setContent (PyObject *self, PyObject *value, void *closure) | |
setter callback for the Content attribute More... | |
static PyObject * staticCallback_getMemSize (PyObject *self, void *closure) | |
getter callback for the MemSize attribute More... | |
static int staticCallback_setMemSize (PyObject *self, PyObject *value, void *closure) | |
setter callback for the MemSize attribute More... | |
![]() | |
static PyObject * PyMake (struct _typeobject *, PyObject *, PyObject *) | |
static PyObject * staticCallback_isDerivedFrom (PyObject *self, PyObject *args) | |
callback for the isDerivedFrom() method More... | |
static PyObject * staticCallback_getAllDerivedFrom (PyObject *self, PyObject *args) | |
callback for the getAllDerivedFrom() method More... | |
static PyObject * staticCallback_getTypeId (PyObject *self, void *closure) | |
getter callback for the TypeId attribute More... | |
static int staticCallback_setTypeId (PyObject *self, PyObject *value, void *closure) | |
setter callback for the TypeId attribute More... | |
static PyObject * staticCallback_getModule (PyObject *self, void *closure) | |
getter callback for the Module attribute More... | |
static int staticCallback_setModule (PyObject *self, PyObject *value, void *closure) | |
setter callback for the Module attribute More... | |
![]() | |
static void PyDestructor (PyObject *P) | |
Wrapper for the Python destructor. More... | |
Static Public Attributes | |
static PyGetSetDef GetterSetter [] | |
Attribute structure of SketchPy. More... | |
static PyMethodDef Methods [] | |
Methods structure of SketchPy. More... | |
static PyTypeObject Type | |
Type structure of SketchPy. More... | |
![]() | |
static PyGetSetDef GetterSetter [] | |
Attribute structure of PersistencePy. More... | |
static PyMethodDef Methods [] | |
Methods structure of PersistencePy. More... | |
static PyTypeObject Type | |
Type structure of PersistencePy. More... | |
![]() | |
static PyGetSetDef GetterSetter [] | |
Attribute structure of BaseClassPy. More... | |
static PyMethodDef Methods [] | |
Methods structure of BaseClassPy. More... | |
static PyTypeObject Type | |
Type structure of BaseClassPy. More... | |
![]() | |
static PyMethodDef Methods [] | |
static PyTypeObject Type | |
Py_Header struct from python.h. More... | |
Protected Member Functions | |
~SketchPy () | |
![]() | |
~PersistencePy () | |
![]() | |
~BaseClassPy () | |
![]() | |
virtual ~PyObjectBase () | |
destructor More... | |
callbacks and implementers for the python object attributes | |
Py::Long getConstraint (void) const | |
getter for the Constraint attribute More... | |
Py::Tuple getConflicts (void) const | |
getter for the Conflicts attribute More... | |
Py::Tuple getRedundancies (void) const | |
getter for the Redundancies attribute More... | |
Py::Tuple getGeometries (void) const | |
getter for the Geometries attribute More... | |
Py::Object getShape (void) const | |
getter for the Shape 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... | |
Sketch * getSketchPtr (void) const | |
getter for the object handled by this class More... | |
static PyObject * staticCallback_getConstraint (PyObject *self, void *closure) | |
getter callback for the Constraint attribute More... | |
static int staticCallback_setConstraint (PyObject *self, PyObject *value, void *closure) | |
setter callback for the Constraint attribute More... | |
static PyObject * staticCallback_getConflicts (PyObject *self, void *closure) | |
getter callback for the Conflicts attribute More... | |
static int staticCallback_setConflicts (PyObject *self, PyObject *value, void *closure) | |
setter callback for the Conflicts attribute More... | |
static PyObject * staticCallback_getRedundancies (PyObject *self, void *closure) | |
getter callback for the Redundancies attribute More... | |
static int staticCallback_setRedundancies (PyObject *self, PyObject *value, void *closure) | |
setter callback for the Redundancies attribute More... | |
static PyObject * staticCallback_getGeometries (PyObject *self, void *closure) | |
getter callback for the Geometries attribute More... | |
static int staticCallback_setGeometries (PyObject *self, PyObject *value, void *closure) | |
setter callback for the Geometries attribute More... | |
static PyObject * staticCallback_getShape (PyObject *self, void *closure) | |
getter callback for the Shape attribute More... | |
static int staticCallback_setShape (PyObject *self, PyObject *value, void *closure) | |
setter callback for the Shape attribute More... | |
Additional Inherited Members | |
![]() | |
std::bitset< 32 > StatusBits | |
Detailed Description
The python export class for Sketch.
Member Typedef Documentation
◆ PointerType
typedef Sketch* Sketcher::SketchPy::PointerType |
Constructor & Destructor Documentation
◆ ~SketchPy()
|
protected |
◆ SketchPy()
Member Function Documentation
◆ addConstraint()
implementer for the addConstraint() method
References Sketcher::ConstraintPy::getConstraintPtr(), and Sketcher::ConstraintPy::Type.
Referenced by staticCallback_addConstraint().
◆ addGeometry()
implementer for the addGeometry() method
References Part::GeometryPy::Type.
Referenced by staticCallback_addGeometry().
◆ clear()
implementer for the clear() method
Referenced by staticCallback_clear().
◆ getConflicts()
Py::Tuple SketchPy::getConflicts | ( | void | ) | const |
getter for the Conflicts attribute
Referenced by staticCallback_getConflicts().
◆ getConstraint()
Py::Long SketchPy::getConstraint | ( | void | ) | const |
getter for the Constraint attribute
Referenced by staticCallback_getConstraint().
◆ getCustomAttributes()
PyObject * SketchPy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
◆ getGeometries()
Py::Tuple SketchPy::getGeometries | ( | void | ) | const |
getter for the Geometries attribute
Referenced by staticCallback_getGeometries().
◆ getRedundancies()
Py::Tuple SketchPy::getRedundancies | ( | void | ) | const |
getter for the Redundancies attribute
Referenced by staticCallback_getRedundancies().
◆ getShape()
Py::Object SketchPy::getShape | ( | void | ) | const |
getter for the Shape attribute
Referenced by staticCallback_getShape().
◆ getSketchPtr()
Sketch * SketchPy::getSketchPtr | ( | void | ) | const |
getter for the object handled by this class
◆ GetType()
|
virtual |
Reimplemented from Base::PersistencePy.
◆ movePoint()
implementer for the movePoint() method
References Base::VectorPy::Type.
Referenced by staticCallback_movePoint().
◆ PyInit()
PyInit method Override this method to initialize a newly created instance of the class (Constructor)
Reimplemented from Base::PersistencePy.
◆ PyMake()
◆ representation()
std::string SketchPy::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().
◆ setCustomAttributes()
int SketchPy::setCustomAttributes | ( | const char * | attr, |
PyObject * | obj | ||
) |
setter for special attributes (e.g.
dynamic ones) Output: Success=1, Failure=-1, Ignore=0
◆ solve()
implementer for the solve() method
Referenced by staticCallback_solve().
◆ staticCallback_addConstraint()
◆ staticCallback_addGeometry()
◆ staticCallback_clear()
callback for the clear() method
References Base::BaseExceptionFreeCADError, clear(), Base::Console(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and Base::PyObjectBase::startNotify().
◆ staticCallback_getConflicts()
getter callback for the Conflicts attribute
References Base::BaseExceptionFreeCADError, getConflicts(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getConstraint()
getter callback for the Constraint attribute
References Base::BaseExceptionFreeCADError, getConstraint(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getGeometries()
getter callback for the Geometries attribute
References Base::BaseExceptionFreeCADError, getGeometries(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getRedundancies()
getter callback for the Redundancies attribute
References Base::BaseExceptionFreeCADError, getRedundancies(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getShape()
getter callback for the Shape attribute
References Base::BaseExceptionFreeCADError, getShape(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_movePoint()
◆ staticCallback_setConflicts()
|
static |
setter callback for the Conflicts attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setConstraint()
|
static |
setter callback for the Constraint attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setGeometries()
|
static |
setter callback for the Geometries attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setRedundancies()
|
static |
setter callback for the Redundancies attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setShape()
setter callback for the Shape attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_solve()
callback for the solve() method
References Base::BaseExceptionFreeCADError, Base::Console(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), solve(), and Base::PyObjectBase::startNotify().
Member Data Documentation
◆ GetterSetter
|
static |
Attribute structure of SketchPy.
◆ Methods
|
static |
Methods structure of SketchPy.
◆ Type
|
static |
The documentation for this class was generated from the following files:
- build/webdoc/src/Mod/Sketcher/App/SketchPy.h
- src/Mod/Sketcher/App/SketchPyImp.cpp
- build/webdoc/src/Mod/Sketcher/App/SketchPy.cpp