ViewProviderPythonFeaturePy.h
Go to the documentation of this file.00001
00002
00003
00004 #ifndef GUI_VIEWPROVIDERPYTHONFEATUREPY_H
00005 #define GUI_VIEWPROVIDERPYTHONFEATUREPY_H
00006
00007 #include <Gui/ViewProviderDocumentObjectPy.h>
00008 #include <Gui/ViewProviderPythonFeature.h>
00009 #include <string>
00010
00011 namespace Gui
00012 {
00013
00014
00015
00016
00017
00020 class GuiExport ViewProviderPythonFeaturePy : public Gui::ViewProviderDocumentObjectPy
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 ViewProviderPythonFeaturePy(ViewProviderDocumentObject *pcObject, PyTypeObject *T = &Type);
00032 static PyObject *PyMake(struct _typeobject *, PyObject *, PyObject *);
00033 virtual int PyInit(PyObject* args, PyObject*k);
00034 ~ViewProviderPythonFeaturePy();
00035
00036 typedef ViewProviderDocumentObject* PointerType ;
00037
00038 virtual PyObject *_repr(void);
00039 std::string representation(void) const;
00040
00043
00044 static PyObject * staticCallback_addDisplayMode (PyObject *self, PyObject *args);
00046 PyObject* addDisplayMode(PyObject *args);
00048 static PyObject * staticCallback_addProperty (PyObject *self, PyObject *args);
00050 PyObject* addProperty(PyObject *args);
00052 static PyObject * staticCallback_supportedProperties (PyObject *self, PyObject *args);
00054 PyObject* supportedProperties(PyObject *args);
00056
00057
00060
00061
00063 PyObject *getCustomAttributes(const char* attr) const;
00065 int setCustomAttributes(const char* attr, PyObject *obj);
00066 PyObject *_getattr(char *attr);
00067 int _setattr(char *attr, PyObject *value);
00068
00070 ViewProviderDocumentObject *getViewProviderPythonFeaturePtr(void) const;
00071
00074
00076 };
00077
00078 #define PARENTSGuiViewProviderPythonFeaturePy &ViewProviderPythonFeaturePy::Type,PARENTSGuiViewProviderDocumentObjectPy
00079
00080 }
00081
00082 #endif // GUI_VIEWPROVIDERPYTHONFEATUREPY_H
00083
00084