itom  4.1.0
pythonPlotItem.h
1 /* ********************************************************************
2  itom software
3  URL: http://www.uni-stuttgart.de/ito
4  Copyright (C) 2020, Institut fuer Technische Optik (ITO),
5  Universitaet Stuttgart, Germany
6 
7  This file is part of itom.
8 
9  itom is free software; you can redistribute it and/or modify it
10  under the terms of the GNU Library General Public Licence as published by
11  the Free Software Foundation; either version 2 of the Licence, or (at
12  your option) any later version.
13 
14  itom is distributed in the hope that it will be useful, but
15  WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
17  General Public Licence for more details.
18 
19  You should have received a copy of the GNU Library General Public License
20  along with itom. If not, see <http://www.gnu.org/licenses/>.
21 *********************************************************************** */
22 
23 #ifndef PYTHONPLOTITEM_H
24 #define PYTHONPLOTITEM_H
25 
26 #include "pythonCommon.h"
27 #include "pythonUi.h"
28 #include "pythonQtConversion.h"
29 #include "pythonQtSignalMapper.h"
30 #include "pythonItomMetaObject.h"
31 
32 #include <qstring.h>
33 #include <qvariant.h>
34 #include <qobject.h>
35 #include <qhash.h>
36 #include <qsharedpointer.h>
37 #include <qpointer.h>
38 
39 namespace ito
40 {
41 
43 {
44 public:
45 
46  //#################################################################################################
47  // Figure
48  //#################################################################################################
49 
50  //-------------------------------------------------------------------------------------------------
51  // typedefs
52  //-------------------------------------------------------------------------------------------------
53 
54  typedef struct
55  {
56  PythonUi::PyUiItem uiItem;
57  }
58  PyPlotItem;
59 
60  //-------------------------------------------------------------------------------------------------
61  // macros
62  //-------------------------------------------------------------------------------------------------
63  #define PyPlotItem_Check(op) PyObject_TypeCheck(op, &ito::PythonPlotItem::PyPlotItemType)
64 
65  //-------------------------------------------------------------------------------------------------
66  // constructor, deconstructor, alloc, dellaoc
67  //-------------------------------------------------------------------------------------------------
68  static void PyPlotItem_dealloc(PyPlotItem *self);
69  static PyObject *PyPlotItem_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
70  static int PyPlotItem_init(PyPlotItem *self, PyObject *args, PyObject *kwds);
71 
72  //-------------------------------------------------------------------------------------------------
73  // general members
74  //-------------------------------------------------------------------------------------------------
75  static PyObject* PyPlotItem_repr(PyPlotItem *self);
76 
77  static PyObject* PyPlotItem_pickPoints(PyPlotItem *self, PyObject *args, PyObject *kwds);
78  static PyObject* PyPlotItem_drawAndPickElements(PyPlotItem *self, PyObject *args, PyObject *kwds);
79  //-------------------------------------------------------------------------------------------------
80  // getter / setter
81  //-------------------------------------------------------------------------------------------------
82 
83  //-------------------------------------------------------------------------------------------------
84  // static members
85  //-------------------------------------------------------------------------------------------------
86 
87 
88  //-------------------------------------------------------------------------------------------------
89  // type structures
90  //-------------------------------------------------------------------------------------------------
91  static PyGetSetDef PyPlotItem_getseters[];
92  static PyMemberDef PyPlotItem_members[];
93  static PyMethodDef PyPlotItem_methods[];
94  static PyTypeObject PyPlotItemType;
95  static PyModuleDef PyPlotItemModule;
96  static void PyPlotItem_addTpDict(PyObject *tp_dict);
97 
98 private:
99 
100 };
101 
102 }; //end namespace ito
103 
104 
105 #endif
Definition: pythonPlotItem.h:54
Definition: pythonPlotItem.h:42
Definition: apiFunctionsGraph.cpp:39
Definition: pythonUi.h:50