The python export class for Tool. More...

#include <ToolPy.h>

Public Types

typedef Tool * PointerType
 
- Public Types inherited from Base::PersistencePy
typedef Persistence * 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

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)
 
- Public Member Functions inherited from Base::PersistencePy
 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...
 
- 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::PersistencePy
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 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 ToolPy. More...
 
static PyMethodDef Methods []
 Methods structure of ToolPy. More...
 
static PyTypeObject Type
 Type structure of ToolPy. More...
 
- Static Public Attributes inherited from Base::PersistencePy
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 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

 ~ToolPy ()
 
- Protected Member Functions inherited from Base::PersistencePy
 ~PersistencePy ()
 
- 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 methods

PyObject * copy (PyObject *args)
 implementer for the copy() method More...
 
PyObject * getToolTypes (PyObject *args)
 implementer for the getToolTypes() method More...
 
PyObject * getToolMaterials (PyObject *args)
 implementer for the getToolMaterials() method More...
 
PyObject * setFromTemplate (PyObject *args)
 implementer for the setFromTemplate() method More...
 
PyObject * templateAttrs (PyObject *args)
 implementer for the templateAttrs() method More...
 
static PyObject * staticCallback_copy (PyObject *self, PyObject *args)
 callback for the copy() method More...
 
static PyObject * staticCallback_getToolTypes (PyObject *self, PyObject *args)
 callback for the getToolTypes() method More...
 
static PyObject * staticCallback_getToolMaterials (PyObject *self, PyObject *args)
 callback for the getToolMaterials() method More...
 
static PyObject * staticCallback_setFromTemplate (PyObject *self, PyObject *args)
 callback for the setFromTemplate() method More...
 
static PyObject * staticCallback_templateAttrs (PyObject *self, PyObject *args)
 callback for the templateAttrs() method 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

- Protected Attributes inherited from Base::PyObjectBase
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()

ToolPy::~ToolPy ( )
protected

◆ ToolPy()

ToolPy::ToolPy ( Tool *  pcObject,
PyTypeObject *  T = &Type 
)

Referenced by copy(), and PyMake().

Member Function Documentation

◆ copy()

PyObject * ToolPy::copy ( PyObject *  args)

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

getter for the Name attribute

References getToolPtr().

Referenced by staticCallback_getName().

◆ getToolMaterials()

PyObject * ToolPy::getToolMaterials ( PyObject *  args)

implementer for the getToolMaterials() method

References Path::Tool::ToolMaterials().

Referenced by staticCallback_getToolMaterials().

◆ getToolPtr()

◆ getToolType()

Py::String ToolPy::getToolType ( void  ) const

getter for the ToolType attribute

References getToolPtr(), Type, and Path::Tool::TypeName().

Referenced by staticCallback_getToolType().

◆ getToolTypes()

PyObject * ToolPy::getToolTypes ( PyObject *  args)

implementer for the getToolTypes() method

References Path::Tool::ToolTypes().

Referenced by staticCallback_getToolTypes().

◆ GetType()

virtual PyTypeObject* Path::ToolPy::GetType ( void  )
virtual

Reimplemented from Base::PersistencePy.

◆ PyInit()

int ToolPy::PyInit ( PyObject *  ,
PyObject *   
)
virtual

◆ PyMake()

PyObject * ToolPy::PyMake ( struct _typeobject *  ,
PyObject *  ,
PyObject *   
)
static

References ToolPy().

◆ representation()

◆ 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()

PyObject * ToolPy::setFromTemplate ( PyObject *  args)

◆ 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)

◆ 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()

◆ staticCallback_getCornerRadius()

PyObject * ToolPy::staticCallback_getCornerRadius ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_getCuttingEdgeAngle()

PyObject * ToolPy::staticCallback_getCuttingEdgeAngle ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_getCuttingEdgeHeight()

PyObject * ToolPy::staticCallback_getCuttingEdgeHeight ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_getDiameter()

PyObject * ToolPy::staticCallback_getDiameter ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_getFlatRadius()

PyObject * ToolPy::staticCallback_getFlatRadius ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_getLengthOffset()

PyObject * ToolPy::staticCallback_getLengthOffset ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_getMaterial()

PyObject * ToolPy::staticCallback_getMaterial ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_getName()

PyObject * ToolPy::staticCallback_getName ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_getToolMaterials()

◆ staticCallback_getToolType()

PyObject * ToolPy::staticCallback_getToolType ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_getToolTypes()

◆ staticCallback_setCornerRadius()

int ToolPy::staticCallback_setCornerRadius ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

◆ staticCallback_setCuttingEdgeAngle()

int ToolPy::staticCallback_setCuttingEdgeAngle ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

◆ staticCallback_setCuttingEdgeHeight()

int ToolPy::staticCallback_setCuttingEdgeHeight ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

◆ staticCallback_setDiameter()

int ToolPy::staticCallback_setDiameter ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

◆ staticCallback_setFlatRadius()

int ToolPy::staticCallback_setFlatRadius ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

◆ staticCallback_setFromTemplate()

◆ staticCallback_setLengthOffset()

int ToolPy::staticCallback_setLengthOffset ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

◆ staticCallback_setMaterial()

int ToolPy::staticCallback_setMaterial ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

◆ staticCallback_setName()

int ToolPy::staticCallback_setName ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

◆ staticCallback_setToolType()

int ToolPy::staticCallback_setToolType ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

◆ staticCallback_templateAttrs()

◆ templateAttrs()

PyObject * ToolPy::templateAttrs ( PyObject *  args)

Member Data Documentation

◆ GetterSetter

PyGetSetDef ToolPy::GetterSetter
static

Attribute structure of ToolPy.

◆ Methods

PyMethodDef ToolPy::Methods
static
Initial value:
= {
{"copy",
reinterpret_cast<PyCFunction>( staticCallback_copy ),
METH_VARARGS,
"returns a copy of this tool"
},
{"getToolTypes",
reinterpret_cast<PyCFunction>( staticCallback_getToolTypes ),
METH_VARARGS,
"returns all available tool types"
},
{"getToolMaterials",
reinterpret_cast<PyCFunction>( staticCallback_getToolMaterials ),
METH_VARARGS,
"returns all available tool materials"
},
{"setFromTemplate",
reinterpret_cast<PyCFunction>( staticCallback_setFromTemplate ),
METH_VARARGS,
"setFromTemplate(xmlString|dictionary) ... fills receiver with values from the template string or dictionary"
},
{"templateAttrs",
reinterpret_cast<PyCFunction>( staticCallback_templateAttrs ),
METH_VARARGS,
"templateAttrs() ... returns a dictionary with all attributes"
},
{NULL, NULL, 0, NULL}
}

Methods structure of ToolPy.

◆ Type


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
static PyObject * staticCallback_getToolTypes(PyObject *self, PyObject *args)
callback for the getToolTypes() method
Definition: ToolPy.cpp:265
static PyObject * staticCallback_getToolMaterials(PyObject *self, PyObject *args)
callback for the getToolMaterials() method
Definition: ToolPy.cpp:348
static PyObject * staticCallback_setFromTemplate(PyObject *self, PyObject *args)
callback for the setFromTemplate() method
Definition: ToolPy.cpp:431
static PyObject * staticCallback_templateAttrs(PyObject *self, PyObject *args)
callback for the templateAttrs() method
Definition: ToolPy.cpp:514
static PyObject * staticCallback_copy(PyObject *self, PyObject *args)
callback for the copy() method
Definition: ToolPy.cpp:182