ConstraintPy.h
Go to the documentation of this file.00001
00002
00003
00004 #ifndef SKETCHER_CONSTRAINTPY_H
00005 #define SKETCHER_CONSTRAINTPY_H
00006
00007 #include <Base/PersistencePy.h>
00008 #include <Mod/Sketcher/App/Constraint.h>
00009 #include <string>
00010
00011 namespace Sketcher
00012 {
00013
00014
00015
00016
00017
00020 class SketcherExport ConstraintPy : public Base::PersistencePy
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 ConstraintPy(Constraint *pcObject, PyTypeObject *T = &Type);
00032 static PyObject *PyMake(struct _typeobject *, PyObject *, PyObject *);
00033 virtual int PyInit(PyObject* args, PyObject*k);
00034 ~ConstraintPy();
00035
00036 typedef Constraint* PointerType ;
00037
00038 virtual PyObject *_repr(void);
00039 std::string representation(void) const;
00040
00043
00044
00045
00048
00049 static PyObject * staticCallback_getFirst (PyObject *self, void *closure);
00051 Py::Int getFirst(void) const;
00053 static int staticCallback_setFirst (PyObject *self, PyObject *value, void *closure);
00055 void setFirst(Py::Int arg);
00057 static PyObject * staticCallback_getSecond (PyObject *self, void *closure);
00059 Py::Int getSecond(void) const;
00061 static int staticCallback_setSecond (PyObject *self, PyObject *value, void *closure);
00063 void setSecond(Py::Int arg);
00065
00067 PyObject *getCustomAttributes(const char* attr) const;
00069 int setCustomAttributes(const char* attr, PyObject *obj);
00070 PyObject *_getattr(char *attr);
00071 int _setattr(char *attr, PyObject *value);
00072
00074 Constraint *getConstraintPtr(void) const;
00075
00078
00080 };
00081
00082 #define PARENTSSketcherConstraintPy &ConstraintPy::Type,PARENTSBasePersistencePy
00083
00084 }
00085
00086 #endif // SKETCHER_CONSTRAINTPY_H
00087
00088