The python export class for Tool. More...
#include <ToolPy.h>
Public Types | |
typedef Tool * 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 | |
ToolPy (Tool *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 ToolPy. More... | |
static PyMethodDef Methods [] | |
Methods structure of ToolPy. More... | |
static PyTypeObject Type | |
Type structure of ToolPy. 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 | |
~ToolPy () | |
![]() | |
~PersistencePy () | |
![]() | |
~BaseClassPy () | |
![]() | |
virtual ~PyObjectBase () | |
destructor More... | |
callbacks and implementers for the python object attributes | |
Py::String getName (void) const | |
getter for the Name attribute More... | |
void setName (Py::String arg) | |
setter for the Name attribute More... | |
Py::String getToolType (void) const | |
getter for the ToolType attribute More... | |
void setToolType (Py::String arg) | |
setter for the ToolType attribute More... | |
Py::String getMaterial (void) const | |
getter for the Material attribute More... | |
void setMaterial (Py::String arg) | |
setter for the Material attribute More... | |
Py::Float getDiameter (void) const | |
getter for the Diameter attribute More... | |
void setDiameter (Py::Float arg) | |
setter for the Diameter attribute More... | |
Py::Float getLengthOffset (void) const | |
getter for the LengthOffset attribute More... | |
void setLengthOffset (Py::Float arg) | |
setter for the LengthOffset attribute More... | |
Py::Float getFlatRadius (void) const | |
getter for the FlatRadius attribute More... | |
void setFlatRadius (Py::Float arg) | |
setter for the FlatRadius attribute More... | |
Py::Float getCornerRadius (void) const | |
getter for the CornerRadius attribute More... | |
void setCornerRadius (Py::Float arg) | |
setter for the CornerRadius attribute More... | |
Py::Float getCuttingEdgeAngle (void) const | |
getter for the CuttingEdgeAngle attribute More... | |
void setCuttingEdgeAngle (Py::Float arg) | |
setter for the CuttingEdgeAngle attribute More... | |
Py::Float getCuttingEdgeHeight (void) const | |
getter for the CuttingEdgeHeight attribute More... | |
void setCuttingEdgeHeight (Py::Float arg) | |
setter for the CuttingEdgeHeight 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... | |
Tool * getToolPtr (void) const | |
getter for the object handled by this class More... | |
static PyObject * staticCallback_getName (PyObject *self, void *closure) | |
getter callback for the Name attribute More... | |
static int staticCallback_setName (PyObject *self, PyObject *value, void *closure) | |
setter callback for the Name attribute More... | |
static PyObject * staticCallback_getToolType (PyObject *self, void *closure) | |
getter callback for the ToolType attribute More... | |
static int staticCallback_setToolType (PyObject *self, PyObject *value, void *closure) | |
setter callback for the ToolType attribute More... | |
static PyObject * staticCallback_getMaterial (PyObject *self, void *closure) | |
getter callback for the Material attribute More... | |
static int staticCallback_setMaterial (PyObject *self, PyObject *value, void *closure) | |
setter callback for the Material attribute More... | |
static PyObject * staticCallback_getDiameter (PyObject *self, void *closure) | |
getter callback for the Diameter attribute More... | |
static int staticCallback_setDiameter (PyObject *self, PyObject *value, void *closure) | |
setter callback for the Diameter attribute More... | |
static PyObject * staticCallback_getLengthOffset (PyObject *self, void *closure) | |
getter callback for the LengthOffset attribute More... | |
static int staticCallback_setLengthOffset (PyObject *self, PyObject *value, void *closure) | |
setter callback for the LengthOffset attribute More... | |
static PyObject * staticCallback_getFlatRadius (PyObject *self, void *closure) | |
getter callback for the FlatRadius attribute More... | |
static int staticCallback_setFlatRadius (PyObject *self, PyObject *value, void *closure) | |
setter callback for the FlatRadius attribute More... | |
static PyObject * staticCallback_getCornerRadius (PyObject *self, void *closure) | |
getter callback for the CornerRadius attribute More... | |
static int staticCallback_setCornerRadius (PyObject *self, PyObject *value, void *closure) | |
setter callback for the CornerRadius attribute More... | |
static PyObject * staticCallback_getCuttingEdgeAngle (PyObject *self, void *closure) | |
getter callback for the CuttingEdgeAngle attribute More... | |
static int staticCallback_setCuttingEdgeAngle (PyObject *self, PyObject *value, void *closure) | |
setter callback for the CuttingEdgeAngle attribute More... | |
static PyObject * staticCallback_getCuttingEdgeHeight (PyObject *self, void *closure) | |
getter callback for the CuttingEdgeHeight attribute More... | |
static int staticCallback_setCuttingEdgeHeight (PyObject *self, PyObject *value, void *closure) | |
setter callback for the CuttingEdgeHeight attribute More... | |
Additional Inherited Members | |
![]() | |
std::bitset< 32 > StatusBits | |
Detailed Description
The python export class for Tool.
Member Typedef Documentation
◆ PointerType
typedef Tool* Path::ToolPy::PointerType |
Constructor & Destructor Documentation
◆ ~ToolPy()
|
protected |
◆ ToolPy()
Member Function Documentation
◆ copy()
implementer for the copy() method
References getToolPtr(), and ToolPy().
Referenced by staticCallback_copy().
◆ getCornerRadius()
Py::Float ToolPy::getCornerRadius | ( | void | ) | const |
getter for the CornerRadius attribute
References getToolPtr().
Referenced by staticCallback_getCornerRadius().
◆ getCustomAttributes()
PyObject * ToolPy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
◆ getCuttingEdgeAngle()
Py::Float ToolPy::getCuttingEdgeAngle | ( | void | ) | const |
getter for the CuttingEdgeAngle attribute
References getToolPtr().
Referenced by staticCallback_getCuttingEdgeAngle().
◆ getCuttingEdgeHeight()
Py::Float ToolPy::getCuttingEdgeHeight | ( | void | ) | const |
getter for the CuttingEdgeHeight attribute
References getToolPtr().
Referenced by staticCallback_getCuttingEdgeHeight().
◆ getDiameter()
Py::Float ToolPy::getDiameter | ( | void | ) | const |
getter for the Diameter attribute
References getToolPtr().
Referenced by staticCallback_getDiameter().
◆ getFlatRadius()
Py::Float ToolPy::getFlatRadius | ( | void | ) | const |
getter for the FlatRadius attribute
References getToolPtr().
Referenced by staticCallback_getFlatRadius().
◆ getLengthOffset()
Py::Float ToolPy::getLengthOffset | ( | void | ) | const |
getter for the LengthOffset attribute
References getToolPtr().
Referenced by staticCallback_getLengthOffset().
◆ getMaterial()
Py::String ToolPy::getMaterial | ( | void | ) | const |
getter for the Material attribute
References getToolPtr(), and Path::Tool::MaterialName().
Referenced by staticCallback_getMaterial().
◆ getName()
Py::String ToolPy::getName | ( | void | ) | const |
◆ getToolMaterials()
implementer for the getToolMaterials() method
References Path::Tool::ToolMaterials().
Referenced by staticCallback_getToolMaterials().
◆ getToolPtr()
Tool * ToolPy::getToolPtr | ( | void | ) | const |
getter for the object handled by this class
Referenced by copy(), getCornerRadius(), getCuttingEdgeAngle(), getCuttingEdgeHeight(), getDiameter(), getFlatRadius(), getLengthOffset(), getMaterial(), getName(), getToolType(), PyInit(), representation(), setCornerRadius(), setCuttingEdgeAngle(), setCuttingEdgeHeight(), setDiameter(), setFlatRadius(), setFromTemplate(), setLengthOffset(), setMaterial(), setName(), Path::PropertyTool::setPyObject(), setToolType(), and templateAttrs().
◆ getToolType()
Py::String ToolPy::getToolType | ( | void | ) | const |
getter for the ToolType attribute
References getToolPtr(), Type, and Path::Tool::TypeName().
Referenced by staticCallback_getToolType().
◆ getToolTypes()
implementer for the getToolTypes() method
References Path::Tool::ToolTypes().
Referenced by staticCallback_getToolTypes().
◆ GetType()
|
virtual |
Reimplemented from Base::PersistencePy.
◆ PyInit()
PyInit method Override this method to initialize a newly created instance of the class (Constructor)
Reimplemented from Base::PersistencePy.
References Path::Tool::CornerRadius, Path::Tool::CuttingEdgeAngle, Path::Tool::CuttingEdgeHeight, Path::Tool::Diameter, Path::Tool::FlatRadius, Path::Tool::getToolMaterial(), getToolPtr(), Path::Tool::getToolType(), Path::Tool::LengthOffset, Path::Tool::Material, Path::Tool::Name, and Path::Tool::Type.
Referenced by setFromTemplate().
◆ PyMake()
References ToolPy().
◆ representation()
std::string ToolPy::representation | ( | void | ) | const |
References getToolPtr(), and Path::Tool::Name.
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().
◆ setCornerRadius()
void ToolPy::setCornerRadius | ( | Py::Float | arg | ) |
setter for the CornerRadius attribute
References Path::Tool::CornerRadius, and getToolPtr().
Referenced by staticCallback_setCornerRadius().
◆ setCustomAttributes()
int ToolPy::setCustomAttributes | ( | const char * | attr, |
PyObject * | obj | ||
) |
setter for special attributes (e.g.
dynamic ones) Output: Success=1, Failure=-1, Ignore=0
◆ setCuttingEdgeAngle()
void ToolPy::setCuttingEdgeAngle | ( | Py::Float | arg | ) |
setter for the CuttingEdgeAngle attribute
References Path::Tool::CuttingEdgeAngle, and getToolPtr().
Referenced by staticCallback_setCuttingEdgeAngle().
◆ setCuttingEdgeHeight()
void ToolPy::setCuttingEdgeHeight | ( | Py::Float | arg | ) |
setter for the CuttingEdgeHeight attribute
References Path::Tool::CuttingEdgeHeight, and getToolPtr().
Referenced by staticCallback_setCuttingEdgeHeight().
◆ setDiameter()
void ToolPy::setDiameter | ( | Py::Float | arg | ) |
setter for the Diameter attribute
References Path::Tool::Diameter, and getToolPtr().
Referenced by staticCallback_setDiameter().
◆ setFlatRadius()
void ToolPy::setFlatRadius | ( | Py::Float | arg | ) |
setter for the FlatRadius attribute
References Path::Tool::FlatRadius, and getToolPtr().
Referenced by staticCallback_setFlatRadius().
◆ setFromTemplate()
implementer for the setFromTemplate() method
References getToolPtr(), PyInit(), and Path::Tool::Restore().
Referenced by Path::TooltablePy::setTools(), and staticCallback_setFromTemplate().
◆ setLengthOffset()
void ToolPy::setLengthOffset | ( | Py::Float | arg | ) |
setter for the LengthOffset attribute
References getToolPtr(), and Path::Tool::LengthOffset.
Referenced by staticCallback_setLengthOffset().
◆ setMaterial()
void ToolPy::setMaterial | ( | Py::String | arg | ) |
setter for the Material attribute
References Path::Tool::getToolMaterial(), getToolPtr(), and Path::Tool::Material.
Referenced by staticCallback_setMaterial().
◆ setName()
void ToolPy::setName | ( | Py::String | arg | ) |
setter for the Name attribute
References getToolPtr(), and Path::Tool::Name.
Referenced by staticCallback_setName().
◆ setToolType()
void ToolPy::setToolType | ( | Py::String | arg | ) |
setter for the ToolType attribute
References getToolPtr(), Path::Tool::getToolType(), and Path::Tool::Type.
Referenced by staticCallback_setToolType().
◆ staticCallback_copy()
callback for the copy() method
References Base::BaseExceptionFreeCADError, Base::Console(), copy(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and Base::PyObjectBase::startNotify().
◆ staticCallback_getCornerRadius()
getter callback for the CornerRadius attribute
References Base::BaseExceptionFreeCADError, getCornerRadius(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getCuttingEdgeAngle()
getter callback for the CuttingEdgeAngle attribute
References Base::BaseExceptionFreeCADError, getCuttingEdgeAngle(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getCuttingEdgeHeight()
getter callback for the CuttingEdgeHeight attribute
References Base::BaseExceptionFreeCADError, getCuttingEdgeHeight(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getDiameter()
getter callback for the Diameter attribute
References Base::BaseExceptionFreeCADError, getDiameter(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getFlatRadius()
getter callback for the FlatRadius attribute
References Base::BaseExceptionFreeCADError, getFlatRadius(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getLengthOffset()
getter callback for the LengthOffset attribute
References Base::BaseExceptionFreeCADError, getLengthOffset(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getMaterial()
getter callback for the Material attribute
References Base::BaseExceptionFreeCADError, getMaterial(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getName()
getter callback for the Name attribute
References Base::BaseExceptionFreeCADError, getName(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getToolMaterials()
◆ staticCallback_getToolType()
getter callback for the ToolType attribute
References Base::BaseExceptionFreeCADError, getToolType(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getToolTypes()
◆ staticCallback_setCornerRadius()
|
static |
setter callback for the CornerRadius attribute
References Base::BaseExceptionFreeCADError, Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and setCornerRadius().
◆ staticCallback_setCuttingEdgeAngle()
|
static |
setter callback for the CuttingEdgeAngle attribute
References Base::BaseExceptionFreeCADError, Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and setCuttingEdgeAngle().
◆ staticCallback_setCuttingEdgeHeight()
|
static |
setter callback for the CuttingEdgeHeight attribute
References Base::BaseExceptionFreeCADError, Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and setCuttingEdgeHeight().
◆ staticCallback_setDiameter()
setter callback for the Diameter attribute
References Base::BaseExceptionFreeCADError, Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and setDiameter().
◆ staticCallback_setFlatRadius()
|
static |
setter callback for the FlatRadius attribute
References Base::BaseExceptionFreeCADError, Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and setFlatRadius().
◆ staticCallback_setFromTemplate()
◆ staticCallback_setLengthOffset()
|
static |
setter callback for the LengthOffset attribute
References Base::BaseExceptionFreeCADError, Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and setLengthOffset().
◆ staticCallback_setMaterial()
setter callback for the Material attribute
References Base::BaseExceptionFreeCADError, Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and setMaterial().
◆ staticCallback_setName()
setter callback for the Name attribute
References Base::BaseExceptionFreeCADError, Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and setName().
◆ staticCallback_setToolType()
setter callback for the ToolType attribute
References Base::BaseExceptionFreeCADError, Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and setToolType().
◆ staticCallback_templateAttrs()
callback for the templateAttrs() method
References Base::BaseExceptionFreeCADError, Base::Console(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and templateAttrs().
◆ templateAttrs()
implementer for the templateAttrs() method
References getToolPtr(), Path::Tool::MaterialName(), Type, and Path::Tool::TypeName().
Referenced by staticCallback_templateAttrs(), and Path::TooltablePy::templateAttrs().
Member Data Documentation
◆ GetterSetter
|
static |
Attribute structure of ToolPy.
◆ Methods
|
static |
Methods structure of ToolPy.
◆ Type
|
static |
Type structure of ToolPy.
Referenced by ArchPanel.CommandPanelSheet::Activated(), ArchStructure.StructSelectionObserver::addSelection(), Path::TooltablePy::addTools(), ArchSite.Compass::buildCoordinates(), getToolType(), ArchSchedule.CommandArchSchedule::IsActive(), ArchAxis.CommandArchGrid::IsActive(), Path::TooltablePy::PyInit(), Path::PropertyTool::setPyObject(), Path::TooltablePy::setTool(), Path::TooltablePy::setTools(), and templateAttrs().
The documentation for this class was generated from the following files:
- build/webdoc/src/Mod/Path/App/ToolPy.h
- src/Mod/Path/App/ToolPyImp.cpp
- build/webdoc/src/Mod/Path/App/ToolPy.cpp