RotationPy.h
Go to the documentation of this file.00001
00002
00003
00004 #ifndef BASE_ROTATIONPY_H
00005 #define BASE_ROTATIONPY_H
00006
00007 #include <Base/PyObjectBase.h>
00008 #include <Base/Rotation.h>
00009 #include <string>
00010
00011 namespace Base
00012 {
00013
00014
00015
00016
00017
00020 class BaseExport RotationPy : public Base::PyObjectBase
00021 {
00022 public:
00023 static PyTypeObject Type;
00024 static PyMethodDef Methods[];
00025 static PyGetSetDef GetterSetter[];
00026 static PyParentObject Parents[];
00027 virtual PyTypeObject *GetType(void) {return &Type;};
00028 virtual PyParentObject *GetParents(void) {return Parents;}
00029
00030 public:
00031 RotationPy(Rotation *pcObject, PyTypeObject *T = &Type);
00032 static PyObject *PyMake(struct _typeobject *, PyObject *, PyObject *);
00033 virtual int PyInit(PyObject* args, PyObject*k);
00034 ~RotationPy();
00035
00036 typedef Rotation* PointerType ;
00037
00038 virtual PyObject *_repr(void);
00039 std::string representation(void) const;
00040
00043
00044 static PyObject * staticCallback_invert (PyObject *self, PyObject *args);
00046 PyObject* invert(PyObject *args);
00048 static PyObject * staticCallback_multiply (PyObject *self, PyObject *args);
00050 PyObject* multiply(PyObject *args);
00052 static PyObject * staticCallback_multVec (PyObject *self, PyObject *args);
00054 PyObject* multVec(PyObject *args);
00056 static PyObject * staticCallback_toEuler (PyObject *self, PyObject *args);
00058 PyObject* toEuler(PyObject *args);
00060
00061
00064
00065 static PyObject * staticCallback_getQ (PyObject *self, void *closure);
00067 Py::Tuple getQ(void) const;
00069 static int staticCallback_setQ (PyObject *self, PyObject *value, void *closure);
00071 void setQ(Py::Tuple arg);
00073 static PyObject * staticCallback_getAxis (PyObject *self, void *closure);
00075 Py::Object getAxis(void) const;
00077 static int staticCallback_setAxis (PyObject *self, PyObject *value, void *closure);
00078
00080 static PyObject * staticCallback_getAngle (PyObject *self, void *closure);
00082 Py::Float getAngle(void) const;
00084 static int staticCallback_setAngle (PyObject *self, PyObject *value, void *closure);
00085
00087
00089 PyObject *getCustomAttributes(const char* attr) const;
00091 int setCustomAttributes(const char* attr, PyObject *obj);
00092 PyObject *_getattr(char *attr);
00093 int _setattr(char *attr, PyObject *value);
00094
00096 Rotation *getRotationPtr(void) const;
00097
00100
00101 public:
00102 RotationPy(const Rotation & mat, PyTypeObject *T = &Type)
00103 :PyObjectBase(new Rotation(mat),T){}
00104 Rotation value() const
00105 { return *(getRotationPtr()); }
00106
00108 };
00109
00110 #define PARENTSBaseRotationPy &RotationPy::Type,PARENTSBasePyObjectBase
00111
00112 }
00113
00114 #endif // BASE_ROTATIONPY_H
00115
00116