GeometryPy.h
Go to the documentation of this file.00001
00002
00003
00004 #ifndef PART_GEOMETRYPY_H
00005 #define PART_GEOMETRYPY_H
00006
00007 #include <Base/PyObjectBase.h>
00008 #include <Mod/Part/App/Geometry.h>
00009 #include <string>
00010
00011 namespace Part
00012 {
00013
00014
00015
00016
00017
00020 class PartExport GeometryPy : 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 GeometryPy(Geometry *pcObject, PyTypeObject *T = &Type);
00032 static PyObject *PyMake(struct _typeobject *, PyObject *, PyObject *);
00033 virtual int PyInit(PyObject* args, PyObject*k);
00034 ~GeometryPy();
00035
00036 typedef Geometry* PointerType ;
00037
00038 virtual PyObject *_repr(void);
00039 std::string representation(void) const;
00040
00043
00044 static PyObject * staticCallback_mirror (PyObject *self, PyObject *args);
00046 PyObject* mirror(PyObject *args);
00048 static PyObject * staticCallback_rotate (PyObject *self, PyObject *args);
00050 PyObject* rotate(PyObject *args);
00052 static PyObject * staticCallback_scale (PyObject *self, PyObject *args);
00054 PyObject* scale(PyObject *args);
00056 static PyObject * staticCallback_transform (PyObject *self, PyObject *args);
00058 PyObject* transform(PyObject *args);
00060 static PyObject * staticCallback_translate (PyObject *self, PyObject *args);
00062 PyObject* translate(PyObject *args);
00064
00065
00068
00069 static PyObject * staticCallback_getConstruction (PyObject *self, void *closure);
00071 Py::Boolean getConstruction(void) const;
00073 static int staticCallback_setConstruction (PyObject *self, PyObject *value, void *closure);
00075 void setConstruction(Py::Boolean arg);
00077
00079 PyObject *getCustomAttributes(const char* attr) const;
00081 int setCustomAttributes(const char* attr, PyObject *obj);
00082 PyObject *_getattr(char *attr);
00083 int _setattr(char *attr, PyObject *value);
00084
00086 Geometry *getGeometryPtr(void) const;
00087
00090
00092 };
00093
00094 #define PARENTSPartGeometryPy &GeometryPy::Type,PARENTSBasePyObjectBase
00095
00096 }
00097
00098 #endif // PART_GEOMETRYPY_H
00099
00100