itom
Loading...
Searching...
No Matches
apiFunctionsGraphInc.h
1/* ********************************************************************
2 itom software
3 URL: http://www.uni-stuttgart.de/ito
4 Copyright (C) 2018, Institut für Technische Optik (ITO),
5 Universität Stuttgart, Germany
6
7 This file is part of itom and its software development toolkit (SDK).
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 In addition, as a special exception, the Institut für Technische
15 Optik (ITO) gives you certain additional rights.
16 These rights are described in the ITO LGPL Exception version 1.0,
17 which can be found in the file LGPL_EXCEPTION.txt in this package.
18
19 itom is distributed in the hope that it will be useful, but
20 WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
22 General Public Licence for more details.
23
24 You should have received a copy of the GNU Library General Public License
25 along with itom. If not, see <http://www.gnu.org/licenses/>.
26*********************************************************************** */
27
28#ifndef APIFUNCTIONSGRAPHINC_H
29#define APIFUNCTIONSGRAPHINC_H
30#ifndef Q_MOC_RUN
31
32//#include "sharedStructures.h"
33//#include "sharedStructuresGraphics.h"
34
35namespace ito
36{
37
38 #if defined(ITOM_IMPORT_PLOTAPI) //&& !defined(ITOM_CORE)
39 void **ITOM_API_FUNCS_GRAPH;
40 #else
41 extern void **ITOM_API_FUNCS_GRAPH;
42 #endif
43
64 #define apiPaletteGetNumberOfColorBars \
65 (*(ito::RetVal (*)(int &number)) ito::ITOM_API_FUNCS_GRAPH[0])
66
67 #define apiPaletteGetColorBarName \
68 (*(ito::RetVal (*)(const QString &name, ito::ItomPalette &palette)) ito::ITOM_API_FUNCS_GRAPH[1])
69
70 #define apiPaletteGetColorBarIdx \
71 (*(ito::RetVal (*)(const int index, ito::ItomPalette &palette)) ito::ITOM_API_FUNCS_GRAPH[2])
72
73 #define apiGetFigure \
74 (*(ito::RetVal (*)(const QString &figCategoryName, const QString &figClassName, ito::uint32 &UID, QWidget **figure, QWidget *parent)) ito::ITOM_API_FUNCS_GRAPH[3])
75
76 #define apiGetPluginList \
77 (*(ito::RetVal (*)(const ito::pluginInfo requirements, QHash<QString, ito::pluginInfo> &pluginList, const QString preference)) ito::ITOM_API_FUNCS_GRAPH[4])
78
79 #define apiStartLiveData \
80 (*(ito::RetVal (*)(QObject *liveDataSource, QObject *liveDataView)) ito::ITOM_API_FUNCS_GRAPH[5])
81
82 #define apiStopLiveData \
83 (*(ito::RetVal (*)(QObject *liveDataSource, QObject *liveDataView)) ito::ITOM_API_FUNCS_GRAPH[6])
84
85 #define apiConnectLiveData \
86 (*(ito::RetVal (*)(QObject *liveDataSource, QObject *liveDataView)) ito::ITOM_API_FUNCS_GRAPH[7])
87
88 #define apiDisconnectLiveData \
89 (*(ito::RetVal (*)(QObject *liveDataSource, QObject *liveDataView)) ito::ITOM_API_FUNCS_GRAPH[8])
90
91 #define apiPaletteGetColorBarIdxFromName \
92 (*(ito::RetVal (*)(const QString &name, ito::int32 &index)) ito::ITOM_API_FUNCS_GRAPH[9])
93
94 #define apiGetFigureSetting \
95 (*(QVariant (*)(const QObject *figureClass, const QString &key, const QVariant &defaultValue, ito::RetVal *retval)) ito::ITOM_API_FUNCS_GRAPH[10])
96
97 #define apiGetPluginWidget \
98 (*(ito::RetVal (*)(void *, QVector<ito::ParamBase> *paramsMand, QVector<ito::ParamBase> *paramsOpt, QPointer<QWidget>*widget)) ito::ITOM_API_FUNCS_GRAPH[11])
99
100 #define apiGetFigureIDbyHandle \
101 (*(ito::RetVal (*)(QObject *figure, ito::uint32 &figureUID)) ito::ITOM_API_FUNCS_GRAPH[12])
102
103 #define apiGetItomPlotHandleByID \
104 (*(ito::RetVal (*)(const ito::uint32 &figureUID, ito::ItomPlotHandle &plotHandle)) ito::ITOM_API_FUNCS_GRAPH[13])
105
107
118 #define apiSendParamToPyWorkspace \
119 (* (ito::RetVal (*)(const QString &varname, const QSharedPointer<ito::ParamBase> &value)) ito::ITOM_API_FUNCS_GRAPH[14])
120
122
133 #define apiSendParamsToPyWorkspace \
134 (* (ito::RetVal (*)(const QStringList &varnames, const QVector<QSharedPointer<ito::ParamBase> > &values)) ito::ITOM_API_FUNCS_GRAPH[15])
135
137
144 #define apiQObjectPropertyRead \
145 (* (ito::RetVal (*)(const QObject *object, const char* propName, QVariant &value)) ito::ITOM_API_FUNCS_GRAPH[16])
146
148
155 #define apiQObjectPropertyWrite \
156 (* (ito::RetVal (*)(QObject *object, const char* propName, const QVariant &value)) ito::ITOM_API_FUNCS_GRAPH[17])
157
159
166 #define apiConnectToOutputAndErrorStream \
167 (* (ito::RetVal (*)(const QObject *receiver, const char *method, ito::tStreamMessageType messageType)) ito::ITOM_API_FUNCS_GRAPH[18])
168
170
177 #define apiDisconnectFromOutputAndErrorStream \
178 (* (ito::RetVal (*)(const QObject *receiver, const char *method, ito::tStreamMessageType messageType)) ito::ITOM_API_FUNCS_GRAPH[19])
179
180} //end namespace ito
181
182#endif // Q_MOC_RUN
183#endif // APIFUNCTIONSGRAPHINC_H
Definition apiFunctionsGraph.cpp:40