FacetPy.h
Go to the documentation of this file.00001
00002
00003
00004 #ifndef MESH_FACETPY_H
00005 #define MESH_FACETPY_H
00006
00007 #include <Base/PyObjectBase.h>
00008 #include <Mod/Mesh/App/Facet.h>
00009 #include <string>
00010
00011 namespace Mesh
00012 {
00013
00014
00015
00016
00017
00020 class MeshExport FacetPy : 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 FacetPy(Facet *pcObject, PyTypeObject *T = &Type);
00032 static PyObject *PyMake(struct _typeobject *, PyObject *, PyObject *);
00033 virtual int PyInit(PyObject* args, PyObject*k);
00034 ~FacetPy();
00035
00036 typedef Facet* PointerType ;
00037
00038 virtual PyObject *_repr(void);
00039 std::string representation(void) const;
00040
00043
00044 static PyObject * staticCallback_unbound (PyObject *self, PyObject *args);
00046 PyObject* unbound(PyObject *args);
00048 static PyObject * staticCallback_intersect (PyObject *self, PyObject *args);
00050 PyObject* intersect(PyObject *args);
00052
00053
00056
00057 static PyObject * staticCallback_getIndex (PyObject *self, void *closure);
00059 Py::Int getIndex(void) const;
00061 static int staticCallback_setIndex (PyObject *self, PyObject *value, void *closure);
00062
00064 static PyObject * staticCallback_getBound (PyObject *self, void *closure);
00066 Py::Boolean getBound(void) const;
00068 static int staticCallback_setBound (PyObject *self, PyObject *value, void *closure);
00069
00071 static PyObject * staticCallback_getNormal (PyObject *self, void *closure);
00073 Py::Object getNormal(void) const;
00075 static int staticCallback_setNormal (PyObject *self, PyObject *value, void *closure);
00076
00078 static PyObject * staticCallback_getPoints (PyObject *self, void *closure);
00080 Py::List getPoints(void) const;
00082 static int staticCallback_setPoints (PyObject *self, PyObject *value, void *closure);
00083
00085
00087 PyObject *getCustomAttributes(const char* attr) const;
00089 int setCustomAttributes(const char* attr, PyObject *obj);
00090 PyObject *_getattr(char *attr);
00091 int _setattr(char *attr, PyObject *value);
00092
00094 Facet *getFacetPtr(void) const;
00095
00098
00100 };
00101
00102 #define PARENTSMeshFacetPy &FacetPy::Type,PARENTSBasePyObjectBase
00103
00104 }
00105
00106 #endif // MESH_FACETPY_H
00107
00108