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) 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);
85 static PyObject* PyShape_reduce(
PyShape *
self, PyObject *args);
86 static PyObject* PyShape_setState(
PyShape *
self, PyObject *args);
91 static PyObject* PyShape_getType(
PyShape *
self,
void *closure);
93 static PyObject* PyShape_getValid(
PyShape *
self,
void *closure);
95 static PyObject* PyShape_getFlags(
PyShape *
self,
void *closure);
96 static int PyShape_setFlags(
PyShape *
self, PyObject *value,
void *closure);
98 static PyObject* PyShape_getIndex(
PyShape *
self,
void *closure);
99 static int PyShape_setIndex(
PyShape *
self, PyObject *value,
void *closure);
101 static PyObject* PyShape_getName(
PyShape *
self,
void *closure);
102 static int PyShape_setName(
PyShape *
self, PyObject *value,
void *closure);
104 static PyObject* PyShape_getTransform(
PyShape *
self,
void *closure);
105 static int PyShape_setTransform(
PyShape *
self, PyObject *value,
void *closure);
107 static PyObject* PyShape_getArea(
PyShape *
self,
void *closure);
109 static PyObject* PyShape_getBasePoints(
PyShape *
self,
void *closure);
111 static PyObject* PyShape_getPoint1(
PyShape *
self,
void *closure);
112 static int PyShape_setPoint1(
PyShape *
self, PyObject *value,
void *closure);
114 static PyObject* PyShape_getPoint2(
PyShape *
self,
void *closure);
115 static int PyShape_setPoint2(
PyShape *
self, PyObject *value,
void *closure);
117 static PyObject* PyShape_getCenter(
PyShape *
self,
void *closure);
118 static int PyShape_setCenter(
PyShape *
self, PyObject *value,
void *closure);
120 static PyObject* PyShape_getAngleDeg(
PyShape *
self,
void *closure);
121 static int PyShape_setAngleDeg(
PyShape *
self, PyObject *value,
void *closure);
123 static PyObject* PyShape_getAngleRad(
PyShape *
self,
void *closure);
124 static int PyShape_setAngleRad(
PyShape *
self, PyObject *value,
void *closure);
126 static PyObject* PyShape_getRadius(
PyShape *
self,
void *closure);
127 static int PyShape_setRadius(
PyShape *
self, PyObject *value,
void *closure);
129 static PyObject* PyShape_getWidth(
PyShape *
self,
void *closure);
130 static int PyShape_setWidth(
PyShape *
self, PyObject *value,
void *closure);
132 static PyObject* PyShape_getHeight(
PyShape *
self,
void *closure);
133 static int PyShape_setHeight(
PyShape *
self, PyObject *value,
void *closure);
139 static PyMethodDef PyShape_methods[];
140 static PyGetSetDef PyShape_getseters[];
141 static PyTypeObject PyShapeType;
142 static PyModuleDef PyShapeModule;
144 static void PyShape_addTpDict(PyObject *tp_dict);
147 static QPointF PyObject2PointF(PyObject *value,
ito::RetVal &retval,
const char* paramName);
148 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