The python export class for Area. More...
#include <AreaPy.h>
Public Types | |
typedef Area * | PointerType |
Public Types inherited from Base::BaseClassPy | |
typedef BaseClass * | PointerType |
Public Types inherited from Base::PyObjectBase | |
typedef void * | PointerType |
enum | Status { Valid = 0, Immutable = 1, Notify = 2, NoTrack = 3 } |
Public Member Functions | |
AreaPy (Area *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 Base::BaseClassPy | |
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... | |
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 Base::BaseClassPy | |
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 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 AreaPy. More... | |
static PyMethodDef | Methods [] |
Methods structure of AreaPy. More... | |
static PyTypeObject | Type |
Type structure of AreaPy. More... | |
Static Public Attributes inherited from Base::BaseClassPy | |
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 Public Attributes inherited from Base::PyObjectBase | |
static PyMethodDef | Methods [] |
static PyTypeObject | Type |
Py_Header struct from python.h. More... | |
Protected Member Functions | |
~AreaPy () | |
Protected Member Functions inherited from Base::BaseClassPy | |
~BaseClassPy () | |
Protected Member Functions inherited from Base::PyObjectBase | |
virtual | ~PyObjectBase () |
destructor More... | |
callbacks and implementers for the python object attributes | |
Py::List | getSections (void) const |
getter for the Sections attribute More... | |
Py::Object | getWorkplane (void) const |
getter for the Workplane attribute More... | |
void | setWorkplane (Py::Object arg) |
setter for the Workplane attribute More... | |
Py::List | getShapes (void) const |
getter for the Shapes 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... | |
Area * | getAreaPtr (void) const |
getter for the object handled by this class More... | |
static PyObject * | staticCallback_getSections (PyObject *self, void *closure) |
getter callback for the Sections attribute More... | |
static int | staticCallback_setSections (PyObject *self, PyObject *value, void *closure) |
setter callback for the Sections attribute More... | |
static PyObject * | staticCallback_getWorkplane (PyObject *self, void *closure) |
getter callback for the Workplane attribute More... | |
static int | staticCallback_setWorkplane (PyObject *self, PyObject *value, void *closure) |
setter callback for the Workplane attribute More... | |
static PyObject * | staticCallback_getShapes (PyObject *self, void *closure) |
getter callback for the Shapes attribute More... | |
static int | staticCallback_setShapes (PyObject *self, PyObject *value, void *closure) |
setter callback for the Shapes attribute More... | |
Additional Inherited Members | |
Protected Attributes inherited from Base::PyObjectBase | |
std::bitset< 32 > | StatusBits |
Detailed Description
The python export class for Area.
Member Typedef Documentation
◆ PointerType
typedef Area* Path::AreaPy::PointerType |
Constructor & Destructor Documentation
◆ ~AreaPy()
|
protected |
◆ AreaPy()
Referenced by makeSections(), and PyMake().
Member Function Documentation
◆ abort()
implementer for the abort() method
Referenced by staticCallback_abort().
◆ add()
implementer for the add() method
References Path::Area::add(), getAreaPtr(), PARAM_FARG, PARAM_FIELD_STRINGS, PARAM_PY_DECLARE_INIT, PARAM_PY_FIELDS, PARAM_PY_KWDS, PARAM_REF, and Part::TopoShapePy::Type.
Referenced by staticCallback_add().
◆ getAreaPtr()
Area * AreaPy::getAreaPtr | ( | void | ) | const |
getter for the object handled by this class
Referenced by add(), getParams(), getSections(), getShape(), getShapes(), getWorkplane(), makeOffset(), makePocket(), makeSections(), representation(), setParams(), setPlane(), and setWorkplane().
◆ getCustomAttributes()
PyObject * AreaPy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
◆ getDefaultParams()
implementer for the getDefaultParams() method
Referenced by staticCallback_getDefaultParams().
◆ getParams()
implementer for the getParams() method
References getAreaPtr(), Path::Area::getParams(), and PARAM_PY_DICT_SET_VALUE.
Referenced by staticCallback_getParams().
◆ getParamsDesc()
implementer for the getParamsDesc() method
Referenced by staticCallback_getParamsDesc().
◆ getSections()
Py::List AreaPy::getSections | ( | void | ) | const |
getter for the Sections attribute
References getAreaPtr(), Path::Area::getSectionCount(), getShape(), and Part::shape2pyshape().
Referenced by staticCallback_getSections().
◆ getShape()
implementer for the getShape() method
References Path::Area::clean(), getAreaPtr(), and Part::shape2pyshape().
Referenced by getSections(), and staticCallback_getShape().
◆ getShapes()
Py::List AreaPy::getShapes | ( | void | ) | const |
getter for the Shapes attribute
References getAreaPtr(), Path::Area::getChildren(), and Part::shape2pyshape().
Referenced by staticCallback_getShapes().
◆ GetType()
|
virtual |
Reimplemented from Base::BaseClassPy.
◆ getWorkplane()
Py::Object AreaPy::getWorkplane | ( | void | ) | const |
getter for the Workplane attribute
References getAreaPtr(), and Part::shape2pyshape().
Referenced by staticCallback_getWorkplane().
◆ makeOffset()
implementer for the makeOffset() method
References getAreaPtr(), Path::Area::makeOffset(), PARAM_FARG, PARAM_FIELD_STRINGS, PARAM_PY_DECLARE_INIT, PARAM_PY_FIELDS, PARAM_PY_KWDS, PARAM_REF, and Part::shape2pyshape().
Referenced by staticCallback_makeOffset().
◆ makePocket()
implementer for the makePocket() method
References getAreaPtr(), Path::Area::makePocket(), PARAM_FARG, PARAM_FIELD_STRINGS, PARAM_PY_DECLARE_INIT, PARAM_PY_FIELDS, PARAM_PY_KWDS, PARAM_REF, and Part::shape2pyshape().
Referenced by staticCallback_makePocket().
◆ makeSections()
implementer for the makeSections() method
References AreaPy(), getAreaPtr(), Path::Area::makeSections(), PARAM_FARG, PARAM_FIELD_STRINGS, PARAM_PY_DECLARE_INIT, PARAM_PY_FIELDS, PARAM_PY_KWDS, PARAM_REF, and Part::TopoShapePy::Type.
Referenced by staticCallback_makeSections().
◆ PyInit()
PyInit method Override this method to initialize a newly created instance of the class (Constructor)
Reimplemented from Base::BaseClassPy.
◆ PyMake()
References AreaPy(), and setParams().
◆ representation()
std::string AreaPy::representation | ( | void | ) | const |
References getAreaPtr().
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 AreaPy::setCustomAttributes | ( | const char * | attr, |
PyObject * | obj | ||
) |
setter for special attributes (e.g.
dynamic ones) Output: Success=1, Failure=-1, Ignore=0
◆ setDefaultParams()
implementer for the setDefaultParams() method
Referenced by staticCallback_setDefaultParams().
◆ setParams()
implementer for the setParams() method
References getAreaPtr(), Path::Area::getParams(), PARAM_FIELD_STRINGS, PARAM_FNAME, PARAM_FOREACH, PARAM_PY_DECLARE, PARAM_PY_KWDS, PARAM_REF, and Path::Area::setParams().
Referenced by PyMake(), and staticCallback_setParams().
◆ setPlane()
implementer for the setPlane() method
References getAreaPtr(), Path::Area::setPlane(), and Part::TopoShapePy::Type.
Referenced by staticCallback_setPlane().
◆ setWorkplane()
void AreaPy::setWorkplane | ( | Py::Object | arg | ) |
setter for the Workplane attribute
References getAreaPtr(), Path::Area::setPlane(), and Part::TopoShapePy::Type.
Referenced by staticCallback_setWorkplane().
◆ staticCallback_abort()
callback for the abort() method
References abort(), Base::BaseExceptionFreeCADError, Base::Console(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and Base::PyObjectBase::startNotify().
◆ staticCallback_add()
callback for the add() method
References add(), Base::BaseExceptionFreeCADError, Base::Console(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and Base::PyObjectBase::startNotify().
◆ staticCallback_getDefaultParams()
◆ staticCallback_getParams()
◆ staticCallback_getParamsDesc()
◆ staticCallback_getSections()
getter callback for the Sections attribute
References Base::BaseExceptionFreeCADError, getSections(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getShape()
◆ staticCallback_getShapes()
getter callback for the Shapes attribute
References Base::BaseExceptionFreeCADError, getShapes(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getWorkplane()
getter callback for the Workplane attribute
References Base::BaseExceptionFreeCADError, getWorkplane(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_makeOffset()
◆ staticCallback_makePocket()
◆ staticCallback_makeSections()
◆ staticCallback_setDefaultParams()
◆ staticCallback_setParams()
◆ staticCallback_setPlane()
◆ staticCallback_setSections()
setter callback for the Sections attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setShapes()
setter callback for the Shapes attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setWorkplane()
|
static |
setter callback for the Workplane attribute
References Base::BaseExceptionFreeCADError, Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and setWorkplane().
Member Data Documentation
◆ GetterSetter
|
static |
Attribute structure of AreaPy.
◆ Methods
|
static |
Methods structure of AreaPy.
Referenced by AreaPyModifier::AreaPyModifier().
◆ Type
|
static |
The documentation for this class was generated from the following files:
- build/webdoc/src/Mod/Path/App/AreaPy.h
- src/Mod/Path/App/AreaPyImp.cpp
- build/webdoc/src/Mod/Path/App/AreaPy.cpp