itom 2.2.1
ito::PythonShape Class Reference

List of all members.

Classes

struct  PyShape

Static Public Member Functions

static void PyShape_dealloc (PyShape *self)
static PyObject * PyShape_new (PyTypeObject *type, PyObject *args, PyObject *kwds)
static int PyShape_init (PyShape *self, PyObject *args, PyObject *kwds)
static PyObject * createPyShape (const Shape &shape)
static PyObject * PyShape_repr (PyShape *self)
static PyObject * PyShape_rotateDeg (PyShape *self, PyObject *args)
static PyObject * PyShape_rotateRad (PyShape *self, PyObject *args)
static PyObject * PyShape_translate (PyShape *self, PyObject *args)
static PyObject * PyShape_region (PyShape *self)
static PyObject * PyShape_normalized (PyShape *self)
static PyObject * PyShape_contour (PyShape *self, PyObject *args, PyObject *kwds)
static PyObject * PyShape_reduce (PyShape *self, PyObject *args)
static PyObject * PyShape_setState (PyShape *self, PyObject *args)
static PyObject * PyShape_getType (PyShape *self, void *closure)
static PyObject * PyShape_getValid (PyShape *self, void *closure)
static PyObject * PyShape_getFlags (PyShape *self, void *closure)
static int PyShape_setFlags (PyShape *self, PyObject *value, void *closure)
static PyObject * PyShape_getIndex (PyShape *self, void *closure)
static int PyShape_setIndex (PyShape *self, PyObject *value, void *closure)
static PyObject * PyShape_getName (PyShape *self, void *closure)
static int PyShape_setName (PyShape *self, PyObject *value, void *closure)
static PyObject * PyShape_getTransform (PyShape *self, void *closure)
static int PyShape_setTransform (PyShape *self, PyObject *value, void *closure)
static PyObject * PyShape_getArea (PyShape *self, void *closure)
static PyObject * PyShape_getBasePoints (PyShape *self, void *closure)
static PyObject * PyShape_getPoint1 (PyShape *self, void *closure)
static int PyShape_setPoint1 (PyShape *self, PyObject *value, void *closure)
static PyObject * PyShape_getPoint2 (PyShape *self, void *closure)
static int PyShape_setPoint2 (PyShape *self, PyObject *value, void *closure)
static PyObject * PyShape_getCenter (PyShape *self, void *closure)
static int PyShape_setCenter (PyShape *self, PyObject *value, void *closure)
static PyObject * PyShape_getAngleDeg (PyShape *self, void *closure)
static int PyShape_setAngleDeg (PyShape *self, PyObject *value, void *closure)
static PyObject * PyShape_getAngleRad (PyShape *self, void *closure)
static int PyShape_setAngleRad (PyShape *self, PyObject *value, void *closure)
static PyObject * PyShape_getRadius (PyShape *self, void *closure)
static int PyShape_setRadius (PyShape *self, PyObject *value, void *closure)
static PyObject * PyShape_getWidth (PyShape *self, void *closure)
static int PyShape_setWidth (PyShape *self, PyObject *value, void *closure)
static PyObject * PyShape_getHeight (PyShape *self, void *closure)
static int PyShape_setHeight (PyShape *self, PyObject *value, void *closure)
static void PyShape_addTpDict (PyObject *tp_dict)

Static Public Attributes

static PyMethodDef PyShape_methods []
static PyGetSetDef PyShape_getseters []
static PyTypeObject PyShapeType
static PyModuleDef PyShapeModule

Static Private Member Functions

static QPointF PyObject2PointF (PyObject *value, ito::RetVal &retval, const char *paramName)
static PyObject * PointF2PyObject (const QPointF &point)

Member Data Documentation

PyGetSetDef ito::PythonShape::PyShape_getseters [static]
Initial value:
 {
    {"valid",  (getter)PyShape_getValid,          (setter)NULL,                   shape_getValid_doc, NULL },
    {"type",  (getter)PyShape_getType,          (setter)NULL,                   shape_getType_doc, NULL },
    {"flags", (getter)PyShape_getFlags,         (setter)PyShape_setFlags,       shape_getFlags_doc, NULL},
    {"index", (getter)PyShape_getIndex,         (setter)PyShape_setIndex,       shape_getIndex_doc, NULL},
    {"name",  (getter)PyShape_getName,         (setter)PyShape_setName,         shape_getName_doc, NULL},
    {"transform", (getter)PyShape_getTransform, (setter)PyShape_setTransform,   shape_getTransform_doc, NULL}, 
    {"area", (getter)PyShape_getArea,           (setter)NULL,                   shape_getArea_doc, NULL},
    {"basePoints", (getter)PyShape_getBasePoints, (setter)NULL,                 shape_basePoints_doc, NULL},
    {"point1", (getter)PyShape_getPoint1,         (setter)PyShape_setPoint1,    shape_point1_doc, NULL},
    {"point2", (getter)PyShape_getPoint2,         (setter)PyShape_setPoint2,    shape_point2_doc, NULL},
    {"center", (getter)PyShape_getCenter,         (setter)PyShape_setCenter,    shape_center_doc, NULL},
    {"angleDeg", (getter)PyShape_getAngleDeg,         (setter)PyShape_setAngleDeg,    shape_angleDeg_doc, NULL},
    {"angleRad", (getter)PyShape_getAngleRad,         (setter)PyShape_setAngleRad,    shape_angleRad_doc, NULL},
    {"radius", (getter)PyShape_getRadius,         (setter)PyShape_setRadius,    shape_radius_doc, NULL},
    {"width", (getter)PyShape_getWidth,         (setter)PyShape_setWidth,    shape_width_doc, NULL},
    {"height", (getter)PyShape_getHeight,         (setter)PyShape_setHeight,    shape_height_doc, NULL},
    {NULL}  
}
PyMethodDef ito::PythonShape::PyShape_methods [static]
Initial value:
 {
    { "__reduce__", (PyCFunction)PyShape_reduce, METH_VARARGS,      "__reduce__ method for handle pickling commands"},
    { "__setstate__", (PyCFunction)PyShape_setState, METH_VARARGS,  "__setstate__ method for handle unpickling commands"},
    { "rotateDeg", (PyCFunction)PyShape_rotateDeg, METH_VARARGS, shape_rotateDeg_doc },
    { "rotateRad", (PyCFunction)PyShape_rotateRad, METH_VARARGS, shape_rotateRad_doc },
    { "translate", (PyCFunction)PyShape_translate, METH_VARARGS, shape_translate_doc },
    { "region", (PyCFunction)PyShape_region, METH_NOARGS, shape_region_doc },
    { "contour", (PyCFunction)PyShape_contour, METH_VARARGS | METH_KEYWORDS, shape_contour_doc },
    { "normalized", (PyCFunction)PyShape_normalized, METH_NOARGS, shape_normalized_doc },
    {NULL}  
}
PyModuleDef ito::PythonShape::PyShapeModule [static]
Initial value:
 {
    PyModuleDef_HEAD_INIT, "shape", "Shape (Point, Line, Rectangle, Ellipse, Polygon...)", -1,
    NULL, NULL, NULL, NULL, NULL
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Friends