Robot::Robot6AxisPy Class Reference

The python export class for Robot6Axis. More...

#include <Robot6AxisPy.h>

Inheritance diagram for Robot::Robot6AxisPy:
Base::PersistencePy Base::BaseClassPy Base::PyObjectBase

List of all members.

Public Types

typedef Robot6AxisPointerType

Public Member Functions

PyObject_getattr (char *attr)
 GetAttribute implementation This method implements the retriavel of object attributes.
virtual PyObject_repr (void)
 _repr method Overide this method to return a string object with some invormation about the object.
int _setattr (char *attr, PyObject *value)
 SetAttribute implementation This method implements the seting of object attributes.
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones)
virtual PyParentObjectGetParents (void)
Robot6AxisgetRobot6AxisPtr (void) const
 getter for the object handled by this class
virtual PyTypeObject * GetType (void)
virtual int PyInit (PyObject *args, PyObject *k)
 PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).
std::string representation (void) const
 Robot6AxisPy (Robot6Axis *pcObject, PyTypeObject *T=&Type)
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. dynamic ones)
 ~Robot6AxisPy ()

Static Public Member Functions

static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)

Static Public Attributes

static PyGetSetDef GetterSetter []
 Attribute structure of Robot6AxisPy.
static PyMethodDef Methods []
 Methods structure of Robot6AxisPy.
static PyParentObject Parents [] = { PARENTSRobotRobot6AxisPy }
static PyTypeObject Type
 Type structure of Robot6AxisPy.

callbacks and implementers for the python object methods



PyObjectcheck (PyObject *args)
 implementer for the check() method
static PyObjectstaticCallback_check (PyObject *self, PyObject *args)
 callback for the check() method

callbacks and implementers for the python object attributes



Py::Float getAxis1 (void) const
 getter for the Axis1 attribute
Py::Float getAxis2 (void) const
 getter for the Axis2 attribute
Py::Float getAxis3 (void) const
 getter for the Axis3 attribute
Py::Float getAxis4 (void) const
 getter for the Axis4 attribute
Py::Float getAxis5 (void) const
 getter for the Axis5 attribute
Py::Float getAxis6 (void) const
 getter for the Axis6 attribute
Py::Object getBase (void) const
 getter for the Base attribute
Py::Object getTcp (void) const
 getter for the Tcp attribute
void setAxis1 (Py::Float arg)
 setter for the Axis1 attribute
void setAxis2 (Py::Float arg)
 setter for the Axis2 attribute
void setAxis3 (Py::Float arg)
 setter for the Axis3 attribute
void setAxis4 (Py::Float arg)
 setter for the Axis4 attribute
void setAxis5 (Py::Float arg)
 setter for the Axis5 attribute
void setAxis6 (Py::Float arg)
 setter for the Axis6 attribute
void setBase (Py::Object arg)
 setter for the Base attribute
void setTcp (Py::Object arg)
 setter for the Tcp attribute
static PyObjectstaticCallback_getAxis1 (PyObject *self, void *closure)
 getter callback for the Axis1 attribute
static PyObjectstaticCallback_getAxis2 (PyObject *self, void *closure)
 getter callback for the Axis2 attribute
static PyObjectstaticCallback_getAxis3 (PyObject *self, void *closure)
 getter callback for the Axis3 attribute
static PyObjectstaticCallback_getAxis4 (PyObject *self, void *closure)
 getter callback for the Axis4 attribute
static PyObjectstaticCallback_getAxis5 (PyObject *self, void *closure)
 getter callback for the Axis5 attribute
static PyObjectstaticCallback_getAxis6 (PyObject *self, void *closure)
 getter callback for the Axis6 attribute
static PyObjectstaticCallback_getBase (PyObject *self, void *closure)
 getter callback for the Base attribute
static PyObjectstaticCallback_getTcp (PyObject *self, void *closure)
 getter callback for the Tcp attribute
static int staticCallback_setAxis1 (PyObject *self, PyObject *value, void *closure)
 setter callback for the Axis1 attribute
static int staticCallback_setAxis2 (PyObject *self, PyObject *value, void *closure)
 setter callback for the Axis2 attribute
static int staticCallback_setAxis3 (PyObject *self, PyObject *value, void *closure)
 setter callback for the Axis3 attribute
static int staticCallback_setAxis4 (PyObject *self, PyObject *value, void *closure)
 setter callback for the Axis4 attribute
static int staticCallback_setAxis5 (PyObject *self, PyObject *value, void *closure)
 setter callback for the Axis5 attribute
static int staticCallback_setAxis6 (PyObject *self, PyObject *value, void *closure)
 setter callback for the Axis6 attribute
static int staticCallback_setBase (PyObject *self, PyObject *value, void *closure)
 setter callback for the Base attribute
static int staticCallback_setTcp (PyObject *self, PyObject *value, void *closure)
 setter callback for the Tcp attribute

Detailed Description

The python export class for Robot6Axis.

Definition at line 20 of file Robot6AxisPy.h.


Member Typedef Documentation

Reimplemented from Base::PersistencePy.

Definition at line 36 of file Robot6AxisPy.h.


Constructor & Destructor Documentation

Robot6AxisPy::Robot6AxisPy ( Robot6Axis pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 576 of file Robot6AxisPy.cpp.

Referenced by PyMake().

Robot6AxisPy::~Robot6AxisPy (  ) 

Definition at line 585 of file Robot6AxisPy.cpp.

References Base::PyObjectBase::_pcTwinPointer.


Member Function Documentation

PyObject * Robot6AxisPy::_getattr ( char *  attr  )  [virtual]

GetAttribute implementation This method implements the retriavel of object attributes.

If you want to implement attributes in your class, reimplement this method. You have to call the method of the base class. Note: if you reimplement _gettattr() in a inheriting class you need to call the method of the base class! Otherwise even the methods of the object will disapiear!

Reimplemented from Base::PersistencePy.

Definition at line 603 of file Robot6AxisPy.cpp.

References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().

PyObject * Robot6AxisPy::_repr ( void   )  [virtual]

_repr method Overide this method to return a string object with some invormation about the object.

 PyObject *MeshFeaturePy::_repr(void)
 {
   std::stringstream a;
   a << "MeshFeature: [ ";
   a << "some realy important info about the object!";
   a << "]" << std::endl;
   return Py_BuildValue("s", a.str().c_str());
 }

Reimplemented from Base::PersistencePy.

Definition at line 595 of file Robot6AxisPy.cpp.

References representation().

int Robot6AxisPy::_setattr ( char *  attr,
PyObject value 
) [virtual]

SetAttribute implementation This method implements the seting of object attributes.

If you want to implement attributes in your class, reimplement this method. You have to call the method of the base class.

Reimplemented from Base::PersistencePy.

Definition at line 671 of file Robot6AxisPy.cpp.

References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().

PyObject * Robot6AxisPy::check ( PyObject args  ) 

implementer for the check() method

Definition at line 51 of file Robot6AxisPyImp.cpp.

Py::Float Robot6AxisPy::getAxis1 ( void   )  const

getter for the Axis1 attribute

Definition at line 59 of file Robot6AxisPyImp.cpp.

References getRobot6AxisPtr().

Referenced by staticCallback_getAxis1().

Py::Float Robot6AxisPy::getAxis2 ( void   )  const

getter for the Axis2 attribute

Definition at line 69 of file Robot6AxisPyImp.cpp.

References getRobot6AxisPtr().

Referenced by staticCallback_getAxis2().

Py::Float Robot6AxisPy::getAxis3 ( void   )  const

getter for the Axis3 attribute

Definition at line 79 of file Robot6AxisPyImp.cpp.

References getRobot6AxisPtr().

Referenced by staticCallback_getAxis3().

Py::Float Robot6AxisPy::getAxis4 ( void   )  const

getter for the Axis4 attribute

Definition at line 89 of file Robot6AxisPyImp.cpp.

References getRobot6AxisPtr().

Referenced by staticCallback_getAxis4().

Py::Float Robot6AxisPy::getAxis5 ( void   )  const

getter for the Axis5 attribute

Definition at line 99 of file Robot6AxisPyImp.cpp.

References getRobot6AxisPtr().

Referenced by staticCallback_getAxis5().

Py::Float Robot6AxisPy::getAxis6 ( void   )  const

getter for the Axis6 attribute

Definition at line 109 of file Robot6AxisPyImp.cpp.

References getRobot6AxisPtr().

Referenced by staticCallback_getAxis6().

Py::Object Robot6AxisPy::getBase ( void   )  const

getter for the Base attribute

Definition at line 145 of file Robot6AxisPyImp.cpp.

Referenced by staticCallback_getBase().

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

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

Reimplemented from Base::PersistencePy.

Definition at line 155 of file Robot6AxisPyImp.cpp.

Referenced by _getattr().

virtual PyParentObject* Robot::Robot6AxisPy::GetParents ( void   )  [inline, virtual]

Reimplemented from Base::PersistencePy.

Definition at line 28 of file Robot6AxisPy.h.

Robot6Axis * Robot6AxisPy::getRobot6AxisPtr ( void   )  const
Py::Object Robot6AxisPy::getTcp ( void   )  const

getter for the Tcp attribute

Definition at line 119 of file Robot6AxisPyImp.cpp.

References getRobot6AxisPtr().

Referenced by staticCallback_getTcp().

virtual PyTypeObject* Robot::Robot6AxisPy::GetType ( void   )  [inline, virtual]

Reimplemented from Base::PersistencePy.

Definition at line 27 of file Robot6AxisPy.h.

int Robot6AxisPy::PyInit ( PyObject ,
PyObject  
) [virtual]

PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).

Reimplemented from Base::PersistencePy.

Definition at line 45 of file Robot6AxisPyImp.cpp.

PyObject * Robot6AxisPy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
) [static]

Reimplemented from Base::PersistencePy.

Definition at line 38 of file Robot6AxisPyImp.cpp.

References Robot6AxisPy().

std::string Robot6AxisPy::representation ( void   )  const
void Robot6AxisPy::setAxis1 ( Py::Float  arg  ) 

setter for the Axis1 attribute

Definition at line 64 of file Robot6AxisPyImp.cpp.

References getRobot6AxisPtr(), and Robot::Robot6Axis::setAxis().

void Robot6AxisPy::setAxis2 ( Py::Float  arg  ) 

setter for the Axis2 attribute

Definition at line 74 of file Robot6AxisPyImp.cpp.

References getRobot6AxisPtr(), and Robot::Robot6Axis::setAxis().

void Robot6AxisPy::setAxis3 ( Py::Float  arg  ) 

setter for the Axis3 attribute

Definition at line 84 of file Robot6AxisPyImp.cpp.

References getRobot6AxisPtr(), and Robot::Robot6Axis::setAxis().

void Robot6AxisPy::setAxis4 ( Py::Float  arg  ) 

setter for the Axis4 attribute

Definition at line 94 of file Robot6AxisPyImp.cpp.

References getRobot6AxisPtr(), and Robot::Robot6Axis::setAxis().

void Robot6AxisPy::setAxis5 ( Py::Float  arg  ) 

setter for the Axis5 attribute

Definition at line 104 of file Robot6AxisPyImp.cpp.

References getRobot6AxisPtr(), and Robot::Robot6Axis::setAxis().

void Robot6AxisPy::setAxis6 ( Py::Float  arg  ) 

setter for the Axis6 attribute

Definition at line 114 of file Robot6AxisPyImp.cpp.

References getRobot6AxisPtr(), and Robot::Robot6Axis::setAxis().

void Robot6AxisPy::setBase ( Py::Object  arg  ) 

setter for the Base attribute

Definition at line 150 of file Robot6AxisPyImp.cpp.

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

setter for special attributes (e.g. dynamic ones)

Reimplemented from Base::PersistencePy.

Definition at line 160 of file Robot6AxisPyImp.cpp.

Referenced by _setattr().

void Robot6AxisPy::setTcp ( Py::Object  arg  ) 
PyObject * Robot6AxisPy::staticCallback_check ( PyObject self,
PyObject args 
) [static]
PyObject * Robot6AxisPy::staticCallback_getAxis1 ( PyObject self,
void *  closure 
) [static]

getter callback for the Axis1 attribute

Definition at line 217 of file Robot6AxisPy.cpp.

References getAxis1(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().

PyObject * Robot6AxisPy::staticCallback_getAxis2 ( PyObject self,
void *  closure 
) [static]

getter callback for the Axis2 attribute

Definition at line 261 of file Robot6AxisPy.cpp.

References getAxis2(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().

PyObject * Robot6AxisPy::staticCallback_getAxis3 ( PyObject self,
void *  closure 
) [static]

getter callback for the Axis3 attribute

Definition at line 305 of file Robot6AxisPy.cpp.

References getAxis3(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().

PyObject * Robot6AxisPy::staticCallback_getAxis4 ( PyObject self,
void *  closure 
) [static]

getter callback for the Axis4 attribute

Definition at line 349 of file Robot6AxisPy.cpp.

References getAxis4(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().

PyObject * Robot6AxisPy::staticCallback_getAxis5 ( PyObject self,
void *  closure 
) [static]

getter callback for the Axis5 attribute

Definition at line 393 of file Robot6AxisPy.cpp.

References getAxis5(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().

PyObject * Robot6AxisPy::staticCallback_getAxis6 ( PyObject self,
void *  closure 
) [static]

getter callback for the Axis6 attribute

Definition at line 437 of file Robot6AxisPy.cpp.

References getAxis6(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().

PyObject * Robot6AxisPy::staticCallback_getBase ( PyObject self,
void *  closure 
) [static]

getter callback for the Base attribute

Definition at line 525 of file Robot6AxisPy.cpp.

References getBase(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().

PyObject * Robot6AxisPy::staticCallback_getTcp ( PyObject self,
void *  closure 
) [static]

getter callback for the Tcp attribute

Definition at line 481 of file Robot6AxisPy.cpp.

References getTcp(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().

int Robot6AxisPy::staticCallback_setAxis1 ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Axis1 attribute

Definition at line 235 of file Robot6AxisPy.cpp.

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

int Robot6AxisPy::staticCallback_setAxis2 ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Axis2 attribute

Definition at line 279 of file Robot6AxisPy.cpp.

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

int Robot6AxisPy::staticCallback_setAxis3 ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Axis3 attribute

Definition at line 323 of file Robot6AxisPy.cpp.

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

int Robot6AxisPy::staticCallback_setAxis4 ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Axis4 attribute

Definition at line 367 of file Robot6AxisPy.cpp.

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

int Robot6AxisPy::staticCallback_setAxis5 ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Axis5 attribute

Definition at line 411 of file Robot6AxisPy.cpp.

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

int Robot6AxisPy::staticCallback_setAxis6 ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Axis6 attribute

Definition at line 455 of file Robot6AxisPy.cpp.

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

int Robot6AxisPy::staticCallback_setBase ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Base attribute

Definition at line 543 of file Robot6AxisPy.cpp.

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

int Robot6AxisPy::staticCallback_setTcp ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Tcp attribute

Definition at line 499 of file Robot6AxisPy.cpp.

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


Member Data Documentation

PyGetSetDef Robot6AxisPy::GetterSetter [static]

Attribute structure of Robot6AxisPy.

Reimplemented from Base::PersistencePy.

Definition at line 25 of file Robot6AxisPy.h.

PyMethodDef Robot6AxisPy::Methods [static]
Initial value:
 {
    {"check",
        (PyCFunction) staticCallback_check,
        METH_VARARGS,
        "Checks the shape and report errors in the shape structure.\nThis is a more detailed check as done in isValid()."
    },
    {NULL, NULL, 0, NULL}               
}

Methods structure of Robot6AxisPy.

Reimplemented from Base::PersistencePy.

Definition at line 24 of file Robot6AxisPy.h.

Referenced by _getattr().

PyParentObject Robot6AxisPy::Parents = { PARENTSRobotRobot6AxisPy } [static]

Reimplemented from Base::PersistencePy.

Definition at line 26 of file Robot6AxisPy.h.

PyTypeObject Robot6AxisPy::Type [static]

Type structure of Robot6AxisPy.

Reimplemented from Base::PersistencePy.

Definition at line 23 of file Robot6AxisPy.h.

Referenced by initRobot().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:45 2011 for FreeCAD by  doxygen 1.6.1