23 #ifndef PYTHONAUTOINTERVAL
24 #define PYTHONAUTOINTERVAL
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
32 #if (defined _DEBUG) && (defined WIN32)
34 #include "python/pythonWrapper.h"
37 #include "python/pythonWrapper.h"
41 #include "../../common/typeDefs.h"
42 #include "../../common/interval.h"
43 #include "../../common/qtMetaTypeDeclarations.h"
44 #include "structmember.h"
65 #define PyAutoInterval_Check(op) PyObject_TypeCheck(op, &ito::PythonAutoInterval::PyAutoIntervalType)
73 static PyObject *PyAutoInterval_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
74 static int PyAutoInterval_init(
PyAutoInterval *
self, PyObject *args, PyObject *kwds);
86 static PyObject* PyAutoInterval_RichCompare(
PyAutoInterval *
self, PyObject *other,
int cmp_op);
88 static PyGetSetDef PyAutoInterval_getseters[];
90 static PyObject* PyAutoInterval_getValue(
PyAutoInterval *
self,
void *closure);
91 static int PyAutoInterval_setValue(
PyAutoInterval *
self, PyObject *value,
void *closure);
93 static PyObject* PyAutoInterval_Reduce(
PyAutoInterval *
self, PyObject *args);
94 static PyObject* PyAutoInterval_SetState(
PyAutoInterval *
self, PyObject *args);
99 static PyObject* PyAutoInterval_getMin(
PyAutoInterval *
self,
void *closure);
100 static int PyAutoInterval_setMin(
PyAutoInterval *
self, PyObject *value,
void *closure);
102 static PyObject* PyAutoInterval_getMax(
PyAutoInterval *
self,
void *closure);
103 static int PyAutoInterval_setMax(
PyAutoInterval *
self, PyObject *value,
void *closure);
105 static PyObject* PyAutoInterval_getAuto(
PyAutoInterval *
self,
void *closure);
106 static int PyAutoInterval_setAuto(
PyAutoInterval *
self, PyObject *value,
void *closure);
112 static PyMemberDef PyAutoInterval_members[];
113 static PyMethodDef PyAutoInterval_methods[];
114 static PyTypeObject PyAutoIntervalType;
115 static PyModuleDef PyAutoIntervalModule;
Definition: apiFunctionsGraph.cpp:39
Definition: pythonAutoInterval.h:49
Definition: pythonAutoInterval.h:57
class for a interval type containing a min-max-range and an auto-flag.
Definition: interval.h:49