SketchPy.h

Go to the documentation of this file.
00001 
00002 // This file is generated by src/Tools/generateTemaplates/templateClassPyExport.py out of the XML file
00003 // Every change you make here get lost at the next full rebuild!
00004 #ifndef SKETCHER_SKETCHPY_H
00005 #define SKETCHER_SKETCHPY_H
00006 
00007 #include <Base/PersistencePy.h>
00008 #include <Mod/Sketcher/App/Sketch.h>
00009 #include <string>
00010 
00011 namespace Sketcher
00012 {
00013 
00014 //===========================================================================
00015 // SketchPy - Python wrapper
00016 //===========================================================================
00017 
00020 class SketcherExport SketchPy : 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     SketchPy(Sketch *pcObject, PyTypeObject *T = &Type);
00032     static PyObject *PyMake(struct _typeobject *, PyObject *, PyObject *);
00033     virtual int PyInit(PyObject* args, PyObject*k);
00034     ~SketchPy();
00035 
00036     typedef Sketch* PointerType ;
00037 
00038     virtual PyObject *_repr(void);        // the representation
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_addConstraint (PyObject *self, PyObject *args);
00054     PyObject*  addConstraint(PyObject *args);
00056     static PyObject * staticCallback_clear (PyObject *self, PyObject *args);
00058     PyObject*  clear(PyObject *args);
00060     static PyObject * staticCallback_movePoint (PyObject *self, PyObject *args);
00062     PyObject*  movePoint(PyObject *args);
00064 
00065 
00068 
00069     static PyObject * staticCallback_getConstraint (PyObject *self, void *closure);
00071     Py::Int getConstraint(void) const;
00073     static int staticCallback_setConstraint (PyObject *self, PyObject *value, void *closure);
00074     // no setter method,  Constraint is read only!
00076     static PyObject * staticCallback_getConstraints (PyObject *self, void *closure);
00078     Py::Tuple getConstraints(void) const;
00080     static int staticCallback_setConstraints (PyObject *self, PyObject *value, void *closure);
00081     // no setter method,  Constraints is read only!
00083     static PyObject * staticCallback_getGeometries (PyObject *self, void *closure);
00085     Py::Tuple getGeometries(void) const;
00087     static int staticCallback_setGeometries (PyObject *self, PyObject *value, void *closure);
00088     // no setter method,  Geometries is read only!
00090     static PyObject * staticCallback_getShape (PyObject *self, void *closure);
00092     Py::Object getShape(void) const;
00094     static int staticCallback_setShape (PyObject *self, PyObject *value, void *closure);
00095     // no setter method,  Shape is read only!
00097 
00099     PyObject *getCustomAttributes(const char* attr) const;
00101     int setCustomAttributes(const char* attr, PyObject *obj);
00102     PyObject *_getattr(char *attr);              // __getattr__ function
00103     int _setattr(char *attr, PyObject *value);        // __setattr__ function
00104 
00106     Sketch *getSketchPtr(void) const;
00107 
00110 
00112 };
00113 
00114 #define PARENTSSketcherSketchPy &SketchPy::Type,PARENTSBasePersistencePy
00115 
00116 }  //namespace Sketcher
00117 
00118 #endif  // SKETCHER_SKETCHPY_H
00119 
00120 

Generated on Wed Nov 23 19:00:38 2011 for FreeCAD by  doxygen 1.6.1