SketchObjectPy.h
Go to the documentation of this file.00001
00002
00003
00004 #ifndef SKETCHER_SKETCHOBJECTPY_H
00005 #define SKETCHER_SKETCHOBJECTPY_H
00006
00007 #include <Mod/Part/App/Part2DObjectPy.h>
00008 #include <Mod/Sketcher/App/SketchObject.h>
00009 #include <string>
00010
00011 namespace Sketcher
00012 {
00013
00014
00015
00016
00017
00020 class SketcherExport SketchObjectPy : public Part::Part2DObjectPy
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 SketchObjectPy(SketchObject *pcObject, PyTypeObject *T = &Type);
00032 static PyObject *PyMake(struct _typeobject *, PyObject *, PyObject *);
00033 virtual int PyInit(PyObject* args, PyObject*k);
00034 ~SketchObjectPy();
00035
00036 typedef SketchObject* PointerType ;
00037
00038 virtual PyObject *_repr(void);
00039 std::string representation(void) const;
00040
00043
00044 static PyObject * staticCallback_solve (PyObject *self, PyObject *args);
00046 PyObject* solve(PyObject *args);
00048 static PyObject * staticCallback_addGeometry (PyObject *self, PyObject *args);
00050 PyObject* addGeometry(PyObject *args);
00052 static PyObject * staticCallback_delGeometry (PyObject *self, PyObject *args);
00054 PyObject* delGeometry(PyObject *args);
00056 static PyObject * staticCallback_toggleConstruction (PyObject *self, PyObject *args);
00058 PyObject* toggleConstruction(PyObject *args);
00060 static PyObject * staticCallback_addConstraint (PyObject *self, PyObject *args);
00062 PyObject* addConstraint(PyObject *args);
00064 static PyObject * staticCallback_delConstraint (PyObject *self, PyObject *args);
00066 PyObject* delConstraint(PyObject *args);
00068 static PyObject * staticCallback_addExternal (PyObject *self, PyObject *args);
00070 PyObject* addExternal(PyObject *args);
00072 static PyObject * staticCallback_delExternal (PyObject *self, PyObject *args);
00074 PyObject* delExternal(PyObject *args);
00076 static PyObject * staticCallback_delConstraintOnPoint (PyObject *self, PyObject *args);
00078 PyObject* delConstraintOnPoint(PyObject *args);
00080 static PyObject * staticCallback_setDatum (PyObject *self, PyObject *args);
00082 PyObject* setDatum(PyObject *args);
00084 static PyObject * staticCallback_movePoint (PyObject *self, PyObject *args);
00086 PyObject* movePoint(PyObject *args);
00088 static PyObject * staticCallback_fillet (PyObject *self, PyObject *args);
00090 PyObject* fillet(PyObject *args);
00092 static PyObject * staticCallback_trim (PyObject *self, PyObject *args);
00094 PyObject* trim(PyObject *args);
00096
00097
00100
00101 static PyObject * staticCallback_getConstraintCount (PyObject *self, void *closure);
00103 Py::Int getConstraintCount(void) const;
00105 static int staticCallback_setConstraintCount (PyObject *self, PyObject *value, void *closure);
00106
00108 static PyObject * staticCallback_getGeometryCount (PyObject *self, void *closure);
00110 Py::Int getGeometryCount(void) const;
00112 static int staticCallback_setGeometryCount (PyObject *self, PyObject *value, void *closure);
00113
00115
00117 PyObject *getCustomAttributes(const char* attr) const;
00119 int setCustomAttributes(const char* attr, PyObject *obj);
00120 PyObject *_getattr(char *attr);
00121 int _setattr(char *attr, PyObject *value);
00122
00124 SketchObject *getSketchObjectPtr(void) const;
00125
00128
00130 };
00131
00132 #define PARENTSSketcherSketchObjectPy &SketchObjectPy::Type,PARENTSPartPart2DObjectPy
00133
00134 }
00135
00136 #endif // SKETCHER_SKETCHOBJECTPY_H
00137
00138