52 #define PyShape_Check(op) PyObject_TypeCheck(op, &ito::PythonShape::PyShapeType)
57 static void PyShape_dealloc(
PyShape *self);
58 static PyObject* PyShape_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
59 static int PyShape_init(
PyShape *self, PyObject *args, PyObject *kwds);
61 static PyObject* createPyShape(
const Shape &shape);
66 static PyObject* PyShape_repr(
PyShape *self);
67 static PyObject* PyShape_rotateDeg(
PyShape *self, PyObject *args);
68 static PyObject* PyShape_rotateRad(
PyShape *self, PyObject *args);
69 static PyObject* PyShape_translate(
PyShape *self, PyObject *args);
70 static PyObject* PyShape_region(
PyShape *self);
71 static PyObject* PyShape_normalized(
PyShape *self);
72 static PyObject* PyShape_contour(
PyShape *self, PyObject *args, PyObject *kwds);
73 static PyObject* PyShape_contains(
PyShape *self, PyObject *args, PyObject *kwds);
74 static PyObject* PyShape_copy(
PyShape *self);
79 static PyObject* PyShape_StaticPoint(PyObject *self, PyObject *args, PyObject *kwds);
80 static PyObject* PyShape_StaticLine(PyObject *self, PyObject *args, PyObject *kwds);
81 static PyObject* PyShape_StaticCircle(PyObject *self, PyObject *args, PyObject *kwds);
82 static PyObject* PyShape_StaticEllipse(PyObject *self, PyObject *args, PyObject *kwds);
83 static PyObject* PyShape_StaticSquare(PyObject *self, PyObject *args, PyObject *kwds);
84 static PyObject* PyShape_StaticRectangle(PyObject *self, PyObject *args, PyObject *kwds);
85 static PyObject* PyShape_StaticPolygon(PyObject *self, PyObject *args, PyObject *kwds);
90 static PyObject* PyShape_reduce(
PyShape *self, PyObject *args);
91 static PyObject* PyShape_setState(
PyShape *self, PyObject *args);
96 static PyObject* PyShape_getType(
PyShape *self,
void *closure);
98 static PyObject* PyShape_getValid(
PyShape *self,
void *closure);
100 static PyObject* PyShape_getFlags(
PyShape *self,
void *closure);
101 static int PyShape_setFlags(
PyShape *self, PyObject *value,
void *closure);
103 static PyObject* PyShape_getIndex(
PyShape *self,
void *closure);
104 static int PyShape_setIndex(
PyShape *self, PyObject *value,
void *closure);
106 static PyObject* PyShape_getName(
PyShape *self,
void *closure);
107 static int PyShape_setName(
PyShape *self, PyObject *value,
void *closure);
109 static PyObject* PyShape_getColor(
PyShape *self,
void *closure);
110 static int PyShape_setColor(
PyShape *self, PyObject *value,
void *closure);
112 static PyObject* PyShape_getTransform(
PyShape *self,
void *closure);
113 static int PyShape_setTransform(
PyShape *self, PyObject *value,
void *closure);
115 static PyObject* PyShape_getArea(
PyShape *self,
void *closure);
117 static PyObject* PyShape_getBasePoints(
PyShape *self,
void *closure);
119 static PyObject* PyShape_getPoint1(
PyShape *self,
void *closure);
120 static int PyShape_setPoint1(
PyShape *self, PyObject *value,
void *closure);
122 static PyObject* PyShape_getPoint2(
PyShape *self,
void *closure);
123 static int PyShape_setPoint2(
PyShape *self, PyObject *value,
void *closure);
125 static PyObject* PyShape_getCenter(
PyShape *self,
void *closure);
126 static int PyShape_setCenter(
PyShape *self, PyObject *value,
void *closure);
128 static PyObject* PyShape_getAngleDeg(
PyShape *self,
void *closure);
129 static int PyShape_setAngleDeg(
PyShape *self, PyObject *value,
void *closure);
131 static PyObject* PyShape_getAngleRad(
PyShape *self,
void *closure);
132 static int PyShape_setAngleRad(
PyShape *self, PyObject *value,
void *closure);
134 static PyObject* PyShape_getRadius(
PyShape *self,
void *closure);
135 static int PyShape_setRadius(
PyShape *self, PyObject *value,
void *closure);
137 static PyObject* PyShape_getWidth(
PyShape *self,
void *closure);
138 static int PyShape_setWidth(
PyShape *self, PyObject *value,
void *closure);
140 static PyObject* PyShape_getHeight(
PyShape *self,
void *closure);
141 static int PyShape_setHeight(
PyShape *self, PyObject *value,
void *closure);
147 static PyMethodDef PyShape_methods[];
148 static PyGetSetDef PyShape_getseters[];
149 static PyTypeObject PyShapeType;
150 static PyModuleDef PyShapeModule;
152 static void PyShape_addTpDict(PyObject *tp_dict);
155 static QPointF PyObject2PointF(PyObject *value,
ito::RetVal &retval,
const char* paramName);
156 static PyObject* PointF2PyObject(
const QPointF &point);