The python export class for Toolpath. More...

#include <PathPy.h>

Public Types

typedef ToolpathPointerType
 
- Public Types inherited from Base::PersistencePy
typedef PersistencePointerType
 
- Public Types inherited from Base::BaseClassPy
typedef BaseClassPointerType
 
- 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)
 
 PathPy (Toolpath *pcObject, PyTypeObject *T=&Type)
 
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::PersistencePy
 PersistencePy (Persistence *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
PyObjectdumpContent (PyObject *args, PyObject *kwd)
 implementer for the dumpContent() method More...
 
PyObjectrestoreContent (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...
 
PyObjectgetCustomAttributes (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...
 
PersistencegetPersistencePtr (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
 
PyObjectisDerivedFrom (PyObject *args)
 implementer for the isDerivedFrom() method More...
 
PyObjectgetAllDerivedFrom (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...
 
PyObjectgetCustomAttributes (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...
 
BaseClassgetBaseClassPtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from Base::PyObjectBase
PyObjectBaseDecRef (void)
 decref method wrapper (see python extending manual)
More...
 
PyObjectBaseIncRef (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 PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
- Static Public Member Functions inherited from Base::PersistencePy
static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObjectstaticCallback_dumpContent (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the dumpContent() method More...
 
static PyObjectstaticCallback_restoreContent (PyObject *self, PyObject *args)
 callback for the restoreContent() method More...
 
static PyObjectstaticCallback_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 PyObjectstaticCallback_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 PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObjectstaticCallback_isDerivedFrom (PyObject *self, PyObject *args)
 callback for the isDerivedFrom() method More...
 
static PyObjectstaticCallback_getAllDerivedFrom (PyObject *self, PyObject *args)
 callback for the getAllDerivedFrom() method More...
 
static PyObjectstaticCallback_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 PyObjectstaticCallback_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 PathPy. More...
 
static PyMethodDef Methods []
 Methods structure of PathPy. More...
 
static PyTypeObject Type
 Type structure of PathPy. 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

 ~PathPy ()
 
- 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

PyObjectaddCommands (PyObject *args)
 implementer for the addCommands() method More...
 
PyObjectinsertCommand (PyObject *args)
 implementer for the insertCommand() method More...
 
PyObjectdeleteCommand (PyObject *args)
 implementer for the deleteCommand() method More...
 
PyObjectsetFromGCode (PyObject *args)
 implementer for the setFromGCode() method More...
 
PyObjecttoGCode (PyObject *args)
 implementer for the toGCode() method More...
 
PyObjectcopy (PyObject *args)
 implementer for the copy() method More...
 
static PyObjectstaticCallback_addCommands (PyObject *self, PyObject *args)
 callback for the addCommands() method More...
 
static PyObjectstaticCallback_insertCommand (PyObject *self, PyObject *args)
 callback for the insertCommand() method More...
 
static PyObjectstaticCallback_deleteCommand (PyObject *self, PyObject *args)
 callback for the deleteCommand() method More...
 
static PyObjectstaticCallback_setFromGCode (PyObject *self, PyObject *args)
 callback for the setFromGCode() method More...
 
static PyObjectstaticCallback_toGCode (PyObject *self, PyObject *args)
 callback for the toGCode() method More...
 
static PyObjectstaticCallback_copy (PyObject *self, PyObject *args)
 callback for the copy() method More...
 

callbacks and implementers for the python object attributes

Py::Float getLength (void) const
 getter for the Length attribute More...
 
Py::Long getSize (void) const
 getter for the Size attribute More...
 
Py::List getCommands (void) const
 getter for the Commands attribute More...
 
void setCommands (Py::List arg)
 setter for the Commands attribute More...
 
Py::Object getCenter (void) const
 getter for the Center attribute More...
 
void setCenter (Py::Object arg)
 setter for the Center attribute More...
 
PyObjectgetCustomAttributes (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...
 
ToolpathgetToolpathPtr (void) const
 getter for the object handled by this class More...
 
static PyObjectstaticCallback_getLength (PyObject *self, void *closure)
 getter callback for the Length attribute More...
 
static int staticCallback_setLength (PyObject *self, PyObject *value, void *closure)
 setter callback for the Length attribute More...
 
static PyObjectstaticCallback_getSize (PyObject *self, void *closure)
 getter callback for the Size attribute More...
 
static int staticCallback_setSize (PyObject *self, PyObject *value, void *closure)
 setter callback for the Size attribute More...
 
static PyObjectstaticCallback_getCommands (PyObject *self, void *closure)
 getter callback for the Commands attribute More...
 
static int staticCallback_setCommands (PyObject *self, PyObject *value, void *closure)
 setter callback for the Commands attribute More...
 
static PyObjectstaticCallback_getCenter (PyObject *self, void *closure)
 getter callback for the Center attribute More...
 
static int staticCallback_setCenter (PyObject *self, PyObject *value, void *closure)
 setter callback for the Center attribute More...
 

Additional Inherited Members

- Protected Attributes inherited from Base::PyObjectBase
std::bitset< 32 > StatusBits
 

Detailed Description

The python export class for Toolpath.

Member Typedef Documentation

◆ PointerType

typedef Toolpath* Path::PathPy::PointerType

Constructor & Destructor Documentation

◆ ~PathPy()

PathPy::~PathPy ( )
protected

◆ PathPy()

PathPy::PathPy ( Toolpath pcObject,
PyTypeObject *  T = &Type 
)

Member Function Documentation

◆ addCommands()

◆ copy()

PyObject * PathPy::copy ( PyObject args)

implementer for the copy() method

References getToolpathPtr(), and PathPy().

Referenced by staticCallback_copy().

◆ deleteCommand()

PyObject * PathPy::deleteCommand ( PyObject args)

◆ getCenter()

Py::Object PathPy::getCenter ( void  ) const

getter for the Center attribute

References getToolpathPtr().

Referenced by staticCallback_getCenter().

◆ getCommands()

Py::List PathPy::getCommands ( void  ) const

getter for the Commands attribute

References Path::Toolpath::getSize(), and getToolpathPtr().

Referenced by staticCallback_getCommands().

◆ getCustomAttributes()

PyObject * PathPy::getCustomAttributes ( const char *  attr) const

getter method for special attributes (e.g. dynamic ones)

◆ getLength()

Py::Float PathPy::getLength ( void  ) const

getter for the Length attribute

References getToolpathPtr().

Referenced by staticCallback_getLength().

◆ getSize()

Py::Long PathPy::getSize ( void  ) const

getter for the Size attribute

References getToolpathPtr().

Referenced by staticCallback_getSize().

◆ getToolpathPtr()

◆ GetType()

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

Reimplemented from Base::PersistencePy.

◆ insertCommand()

◆ PyInit()

int PathPy::PyInit ( PyObject ,
PyObject  
)
virtual

PyInit method Override this method to initialize a newly created instance of the class (Constructor)

Reimplemented from Base::PersistencePy.

References Path::Toolpath::addCommand(), getToolpathPtr(), Path::Toolpath::setFromGCode(), and Path::CommandPy::Type.

◆ PyMake()

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

References PathPy().

◆ representation()

◆ setCenter()

void PathPy::setCenter ( Py::Object  arg)

setter for the Center attribute

References getToolpathPtr(), and Path::Toolpath::setCenter().

Referenced by staticCallback_setCenter().

◆ setCommands()

void PathPy::setCommands ( Py::List  arg)

◆ setCustomAttributes()

int PathPy::setCustomAttributes ( const char *  attr,
PyObject obj 
)

setter for special attributes (e.g.

dynamic ones) Output: Success=1, Failure=-1, Ignore=0

◆ setFromGCode()

PyObject * PathPy::setFromGCode ( PyObject args)

implementer for the setFromGCode() method

References getToolpathPtr(), and Path::Toolpath::setFromGCode().

Referenced by staticCallback_setFromGCode().

◆ staticCallback_addCommands()

◆ staticCallback_copy()

PyObject * PathPy::staticCallback_copy ( PyObject self,
PyObject args 
)
static

◆ staticCallback_deleteCommand()

◆ staticCallback_getCenter()

PyObject * PathPy::staticCallback_getCenter ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getCommands()

PyObject * PathPy::staticCallback_getCommands ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getLength()

PyObject * PathPy::staticCallback_getLength ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getSize()

PyObject * PathPy::staticCallback_getSize ( PyObject self,
void *  closure 
)
static

◆ staticCallback_insertCommand()

◆ staticCallback_setCenter()

int PathPy::staticCallback_setCenter ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_setCommands()

int PathPy::staticCallback_setCommands ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_setFromGCode()

◆ staticCallback_setLength()

int PathPy::staticCallback_setLength ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Length attribute

References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().

◆ staticCallback_setSize()

int PathPy::staticCallback_setSize ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Size attribute

References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().

◆ staticCallback_toGCode()

◆ toGCode()

PyObject * PathPy::toGCode ( PyObject args)

implementer for the toGCode() method

References getToolpathPtr(), and Path::Toolpath::toGCode().

Referenced by staticCallback_toGCode().

Member Data Documentation

◆ GetterSetter

PyGetSetDef PathPy::GetterSetter
static
Initial value:
= {
{"Length",
"the total length of this path in mm",
NULL
},
{"Size",
"the number of commands in this path",
NULL
},
{"Commands",
"the list of commands of this path",
NULL
},
{"Center",
"the center position for all rotational parameters",
NULL
},
{NULL, NULL, NULL, NULL, NULL}
}

Attribute structure of PathPy.

◆ Methods

PyMethodDef PathPy::Methods
static

Methods structure of PathPy.

◆ Type


The documentation for this class was generated from the following files:
  • build/webdoc/src/Mod/Path/App/PathPy.h
  • src/Mod/Path/App/PathPyImp.cpp
  • build/webdoc/src/Mod/Path/App/PathPy.cpp
static PyObject * staticCallback_getLength(PyObject *self, void *closure)
getter callback for the Length attribute
Definition: PathPy.cpp:632
static PyObject * staticCallback_getCenter(PyObject *self, void *closure)
getter callback for the Center attribute
Definition: PathPy.cpp:740
static PyObject * staticCallback_getCommands(PyObject *self, void *closure)
getter callback for the Commands attribute
Definition: PathPy.cpp:696
static int staticCallback_setSize(PyObject *self, PyObject *value, void *closure)
setter callback for the Size attribute
Definition: PathPy.cpp:682
static int staticCallback_setCommands(PyObject *self, PyObject *value, void *closure)
setter callback for the Commands attribute
Definition: PathPy.cpp:714
static int staticCallback_setLength(PyObject *self, PyObject *value, void *closure)
setter callback for the Length attribute
Definition: PathPy.cpp:650
static PyObject * staticCallback_getSize(PyObject *self, void *closure)
getter callback for the Size attribute
Definition: PathPy.cpp:664
static int staticCallback_setCenter(PyObject *self, PyObject *value, void *closure)
setter callback for the Center attribute
Definition: PathPy.cpp:758