28 #define PY_ARRAY_UNIQUE_SYMBOL itom_ARRAY_API //see numpy help ::array api :: Miscellaneous :: Importing the api (this line must bebefore include global.h)
29 #define NO_IMPORT_ARRAY
33 #if (defined _DEBUG) && (defined WIN32)
35 #include "python/pythonWrapper.h"
38 #include "python/pythonWrapper.h"
43 #include "../common/retVal.h"
60 #define PyShape_Check(op) PyObject_TypeCheck(op, &ito::PythonShape::PyShapeType)
65 static void PyShape_dealloc(
PyShape *
self);
66 static PyObject* PyShape_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
67 static int PyShape_init(
PyShape *
self, PyObject *args, PyObject *kwds);
69 static PyObject* createPyShape(
const Shape &shape);
74 static PyObject* PyShape_repr(
PyShape *
self);
75 static PyObject* PyShape_rotateDeg(
PyShape *
self, PyObject *args);
76 static PyObject* PyShape_rotateRad(
PyShape *
self, PyObject *args);
77 static PyObject* PyShape_translate(
PyShape *
self, PyObject *args);
78 static PyObject* PyShape_region(
PyShape *
self);
79 static PyObject* PyShape_normalized(
PyShape *
self);
80 static PyObject* PyShape_contour(
PyShape *
self, PyObject *args, PyObject *kwds);
81 static PyObject* PyShape_contains(
PyShape *
self, PyObject *args, PyObject *kwds);
82 static PyObject* PyShape_copy(
PyShape *
self);
87 static PyObject* PyShape_StaticPoint(PyObject *
self, PyObject *args, PyObject *kwds);
88 static PyObject* PyShape_StaticLine(PyObject *
self, PyObject *args, PyObject *kwds);
89 static PyObject* PyShape_StaticCircle(PyObject *
self, PyObject *args, PyObject *kwds);
90 static PyObject* PyShape_StaticEllipse(PyObject *
self, PyObject *args, PyObject *kwds);
91 static PyObject* PyShape_StaticSquare(PyObject *
self, PyObject *args, PyObject *kwds);
92 static PyObject* PyShape_StaticRectangle(PyObject *
self, PyObject *args, PyObject *kwds);
93 static PyObject* PyShape_StaticPolygon(PyObject *
self, PyObject *args, PyObject *kwds);
98 static PyObject* PyShape_reduce(
PyShape *
self, PyObject *args);
99 static PyObject* PyShape_setState(
PyShape *
self, PyObject *args);
104 static PyObject* PyShape_getType(
PyShape *
self,
void *closure);
106 static PyObject* PyShape_getValid(
PyShape *
self,
void *closure);
108 static PyObject* PyShape_getFlags(
PyShape *
self,
void *closure);
109 static int PyShape_setFlags(
PyShape *
self, PyObject *value,
void *closure);
111 static PyObject* PyShape_getIndex(
PyShape *
self,
void *closure);
112 static int PyShape_setIndex(
PyShape *
self, PyObject *value,
void *closure);
114 static PyObject* PyShape_getName(
PyShape *
self,
void *closure);
115 static int PyShape_setName(
PyShape *
self, PyObject *value,
void *closure);
117 static PyObject* PyShape_getColor(
PyShape *
self,
void *closure);
118 static int PyShape_setColor(
PyShape *
self, PyObject *value,
void *closure);
120 static PyObject* PyShape_getTransform(
PyShape *
self,
void *closure);
121 static int PyShape_setTransform(
PyShape *
self, PyObject *value,
void *closure);
123 static PyObject* PyShape_getArea(
PyShape *
self,
void *closure);
125 static PyObject* PyShape_getBasePoints(
PyShape *
self,
void *closure);
127 static PyObject* PyShape_getPoint1(
PyShape *
self,
void *closure);
128 static int PyShape_setPoint1(
PyShape *
self, PyObject *value,
void *closure);
130 static PyObject* PyShape_getPoint2(
PyShape *
self,
void *closure);
131 static int PyShape_setPoint2(
PyShape *
self, PyObject *value,
void *closure);
133 static PyObject* PyShape_getCenter(
PyShape *
self,
void *closure);
134 static int PyShape_setCenter(
PyShape *
self, PyObject *value,
void *closure);
136 static PyObject* PyShape_getAngleDeg(
PyShape *
self,
void *closure);
137 static int PyShape_setAngleDeg(
PyShape *
self, PyObject *value,
void *closure);
139 static PyObject* PyShape_getAngleRad(
PyShape *
self,
void *closure);
140 static int PyShape_setAngleRad(
PyShape *
self, PyObject *value,
void *closure);
142 static PyObject* PyShape_getRadius(
PyShape *
self,
void *closure);
143 static int PyShape_setRadius(
PyShape *
self, PyObject *value,
void *closure);
145 static PyObject* PyShape_getWidth(
PyShape *
self,
void *closure);
146 static int PyShape_setWidth(
PyShape *
self, PyObject *value,
void *closure);
148 static PyObject* PyShape_getHeight(
PyShape *
self,
void *closure);
149 static int PyShape_setHeight(
PyShape *
self, PyObject *value,
void *closure);
155 static PyMethodDef PyShape_methods[];
156 static PyGetSetDef PyShape_getseters[];
157 static PyTypeObject PyShapeType;
158 static PyModuleDef PyShapeModule;
160 static void PyShape_addTpDict(PyObject *tp_dict);
163 static QPointF PyObject2PointF(PyObject *value,
ito::RetVal &retval,
const char* paramName);
164 static PyObject* PointF2PyObject(
const QPointF &point);
Class for managing status values (like errors or warning)
Definition: retVal.h:54
Definition: pythonShape.h:53
Definition: pythonShape.h:50
Definition: apiFunctionsGraph.cpp:39