The python export class for Trajectory. More...
#include <TrajectoryPy.h>
Public Types | |
typedef Trajectory * | 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 |
TrajectoryPy (Trajectory *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 TrajectoryPy. More... | |
static PyMethodDef | Methods [] |
Methods structure of TrajectoryPy. More... | |
static PyTypeObject | Type |
Type structure of TrajectoryPy. 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 | |
~TrajectoryPy () | |
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 * | insertWaypoints (PyObject *args) |
implementer for the insertWaypoints() method More... | |
PyObject * | position (PyObject *args) |
implementer for the position() method More... | |
PyObject * | velocity (PyObject *args) |
implementer for the velocity() method More... | |
PyObject * | deleteLast (PyObject *args) |
implementer for the deleteLast() method More... | |
static PyObject * | staticCallback_insertWaypoints (PyObject *self, PyObject *args) |
callback for the insertWaypoints() method More... | |
static PyObject * | staticCallback_position (PyObject *self, PyObject *args) |
callback for the position() method More... | |
static PyObject * | staticCallback_velocity (PyObject *self, PyObject *args) |
callback for the velocity() method More... | |
static PyObject * | staticCallback_deleteLast (PyObject *self, PyObject *args) |
callback for the deleteLast() method More... | |
callbacks and implementers for the python object attributes | |
Py::Float | getDuration (void) const |
getter for the Duration attribute More... | |
Py::Float | getLength (void) const |
getter for the Length attribute More... | |
Py::List | getWaypoints (void) const |
getter for the Waypoints attribute More... | |
void | setWaypoints (Py::List arg) |
setter for the Waypoints 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... | |
Trajectory * | getTrajectoryPtr (void) const |
getter for the object handled by this class More... | |
static PyObject * | staticCallback_getDuration (PyObject *self, void *closure) |
getter callback for the Duration attribute More... | |
static int | staticCallback_setDuration (PyObject *self, PyObject *value, void *closure) |
setter callback for the Duration attribute More... | |
static PyObject * | staticCallback_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 PyObject * | staticCallback_getWaypoints (PyObject *self, void *closure) |
getter callback for the Waypoints attribute More... | |
static int | staticCallback_setWaypoints (PyObject *self, PyObject *value, void *closure) |
setter callback for the Waypoints attribute More... | |
Additional Inherited Members | |
Protected Attributes inherited from Base::PyObjectBase | |
std::bitset< 32 > | StatusBits |
Detailed Description
The python export class for Trajectory.
Member Typedef Documentation
◆ PointerType
Constructor & Destructor Documentation
◆ ~TrajectoryPy()
|
protected |
◆ TrajectoryPy()
TrajectoryPy::TrajectoryPy | ( | Trajectory * | pcObject, |
PyTypeObject * | T = &Type |
||
) |
Referenced by deleteLast(), insertWaypoints(), and PyMake().
Member Function Documentation
◆ deleteLast()
implementer for the deleteLast() method
References Robot::Trajectory::deleteLast(), getTrajectoryPtr(), and TrajectoryPy().
Referenced by staticCallback_deleteLast().
◆ getCustomAttributes()
PyObject * TrajectoryPy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
◆ getDuration()
Py::Float TrajectoryPy::getDuration | ( | void | ) | const |
getter for the Duration attribute
References getTrajectoryPtr().
Referenced by staticCallback_getDuration().
◆ getLength()
Py::Float TrajectoryPy::getLength | ( | void | ) | const |
getter for the Length attribute
References getTrajectoryPtr().
Referenced by staticCallback_getLength().
◆ getTrajectoryPtr()
Trajectory * TrajectoryPy::getTrajectoryPtr | ( | void | ) | const |
getter for the object handled by this class
Referenced by deleteLast(), getDuration(), getLength(), getWaypoints(), insertWaypoints(), position(), PyInit(), representation(), Robot::PropertyTrajectory::setPyObject(), and velocity().
◆ GetType()
|
virtual |
Reimplemented from Base::PersistencePy.
◆ getWaypoints()
Py::List TrajectoryPy::getWaypoints | ( | void | ) | const |
getter for the Waypoints attribute
References Robot::Trajectory::getSize(), and getTrajectoryPtr().
Referenced by staticCallback_getWaypoints().
◆ insertWaypoints()
implementer for the insertWaypoints() method
References Robot::Trajectory::addWaypoint(), Base::BaseExceptionFreeCADError, Robot::Trajectory::generateTrajectory(), getTrajectoryPtr(), TrajectoryPy(), Robot::WaypointPy::Type, and Base::PlacementPy::Type.
Referenced by staticCallback_insertWaypoints().
◆ position()
implementer for the position() method
References getTrajectoryPtr().
Referenced by staticCallback_position().
◆ PyInit()
PyInit method Override this method to initialize a newly created instance of the class (Constructor)
Reimplemented from Base::PersistencePy.
References Robot::Trajectory::addWaypoint(), Robot::Trajectory::generateTrajectory(), getTrajectoryPtr(), and Robot::WaypointPy::Type.
◆ PyMake()
References TrajectoryPy().
◆ representation()
std::string TrajectoryPy::representation | ( | void | ) | const |
References Robot::Trajectory::getDuration(), Robot::Trajectory::getLength(), Robot::Trajectory::getSize(), and getTrajectoryPtr().
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 TrajectoryPy::setCustomAttributes | ( | const char * | attr, |
PyObject * | obj | ||
) |
setter for special attributes (e.g.
dynamic ones) Output: Success=1, Failure=-1, Ignore=0
◆ setWaypoints()
void TrajectoryPy::setWaypoints | ( | Py::List | arg | ) |
setter for the Waypoints attribute
Referenced by staticCallback_setWaypoints().
◆ staticCallback_deleteLast()
◆ staticCallback_getDuration()
getter callback for the Duration attribute
References Base::BaseExceptionFreeCADError, getDuration(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getLength()
getter callback for the Length attribute
References Base::BaseExceptionFreeCADError, getLength(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_getWaypoints()
getter callback for the Waypoints attribute
References Base::BaseExceptionFreeCADError, getWaypoints(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_insertWaypoints()
◆ staticCallback_position()
◆ staticCallback_setDuration()
|
static |
setter callback for the Duration attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setLength()
|
static |
setter callback for the Length attribute
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
◆ staticCallback_setWaypoints()
|
static |
setter callback for the Waypoints attribute
References Base::BaseExceptionFreeCADError, Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), and setWaypoints().
◆ staticCallback_velocity()
◆ velocity()
implementer for the velocity() method
References getTrajectoryPtr().
Referenced by staticCallback_velocity().
Member Data Documentation
◆ GetterSetter
|
static |
Attribute structure of TrajectoryPy.
◆ Methods
|
static |
Methods structure of TrajectoryPy.
◆ Type
|
static |
Type structure of TrajectoryPy.
Referenced by ArchPanel.CommandPanelSheet::Activated(), ArchStructure.StructSelectionObserver::addSelection(), ArchSite.Compass::buildCoordinates(), ArchSchedule.CommandArchSchedule::IsActive(), ArchAxis.CommandArchGrid::IsActive(), and Robot::PropertyTrajectory::setPyObject().
The documentation for this class was generated from the following files:
- build/webdoc/src/Mod/Robot/App/TrajectoryPy.h
- src/Mod/Robot/App/TrajectoryPyImp.cpp
- build/webdoc/src/Mod/Robot/App/TrajectoryPy.cpp