itom 1.3.0
|
00001 /* ******************************************************************** 00002 itom software 00003 URL: http://www.uni-stuttgart.de/ito 00004 Copyright (C) 2013, Institut für Technische Optik (ITO), 00005 Universität Stuttgart, Germany 00006 00007 This file is part of itom and its software development toolkit (SDK). 00008 00009 itom is free software; you can redistribute it and/or modify it 00010 under the terms of the GNU Library General Public Licence as published by 00011 the Free Software Foundation; either version 2 of the Licence, or (at 00012 your option) any later version. 00013 00014 In addition, as a special exception, the Institut für Technische 00015 Optik (ITO) gives you certain additional rights. 00016 These rights are described in the ITO LGPL Exception version 1.0, 00017 which can be found in the file LGPL_EXCEPTION.txt in this package. 00018 00019 itom is distributed in the hope that it will be useful, but 00020 WITHOUT ANY WARRANTY; without even the implied warranty of 00021 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library 00022 General Public Licence for more details. 00023 00024 You should have received a copy of the GNU Library General Public License 00025 along with itom. If not, see <http://www.gnu.org/licenses/>. 00026 *********************************************************************** */ 00027 00028 #ifndef APIFUNCTIONSGRAPHINC_H 00029 #define APIFUNCTIONSGRAPHINC_H 00030 #ifndef Q_MOC_RUN 00031 00032 //#include "sharedStructures.h" 00033 //#include "sharedStructuresGraphics.h" 00034 00035 namespace ito 00036 { 00037 00038 #if defined(ITOM_IMPORT_PLOTAPI) && !defined(ITOM_CORE) 00039 void **ITOM_API_FUNCS_GRAPH; 00040 #else 00041 extern void **ITOM_API_FUNCS_GRAPH; 00042 #endif 00043 00064 #define apiPaletteGetNumberOfColorBars \ 00065 (*(ito::RetVal (*)(int &)) ito::ITOM_API_FUNCS_GRAPH[0]) 00066 00067 #define apiPaletteGetColorBarName \ 00068 (*(ito::RetVal (*)(const QString &, ito::ItomPalette &)) ito::ITOM_API_FUNCS_GRAPH[1]) 00069 00070 #define apiPaletteGetColorBarIdx \ 00071 (*(ito::RetVal (*)(const int, ito::ItomPalette &)) ito::ITOM_API_FUNCS_GRAPH[2]) 00072 00073 #define apiGetFigure \ 00074 (*(ito::RetVal (*)(const QString &, const QString &, ito::uint32 &, QWidget **, QWidget *parent)) ito::ITOM_API_FUNCS_GRAPH[3]) 00075 00076 00077 #define apiGetPluginList \ 00078 (*(ito::RetVal (*)(const ito::pluginInfo, QHash<QString, ito::pluginInfo> &, const QString)) ito::ITOM_API_FUNCS_GRAPH[4]) 00079 00080 #define apiStartLiveData \ 00081 (*(ito::RetVal (*)(QObject *, QObject *)) ito::ITOM_API_FUNCS_GRAPH[5]) 00082 00083 #define apiStopLiveData \ 00084 (*(ito::RetVal (*)(QObject *, QObject *)) ito::ITOM_API_FUNCS_GRAPH[6]) 00085 00086 #define apiConnectLiveData \ 00087 (*(ito::RetVal (*)(QObject *, QObject *)) ito::ITOM_API_FUNCS_GRAPH[7]) 00088 00089 #define apiDisconnectLiveData \ 00090 (*(ito::RetVal (*)(QObject *, QObject *)) ito::ITOM_API_FUNCS_GRAPH[8]) 00091 00092 #define apiPaletteGetColorBarIdxFromName \ 00093 (*(ito::RetVal (*)(const QString &, ito::int32 &)) ito::ITOM_API_FUNCS_GRAPH[9]) 00094 00095 #define apiGetFigureSetting \ 00096 (*(QVariant (*)(const QObject *, const QString &, const QVariant &, ito::RetVal *)) ito::ITOM_API_FUNCS_GRAPH[10]) 00097 00098 #define apiGetPluginWidget \ 00099 (*(ito::RetVal (*)(void *, QVector<ito::ParamBase> *, QVector<ito::ParamBase> *, QPointer<QWidget>*)) ito::ITOM_API_FUNCS_GRAPH[11]) 00100 00103 /*#if defined(ITOM_IMPORT_PLOTAPI) 00104 static int importItomPlotApi(void** apiArray) 00105 { 00106 ito::ITOM_API_FUNCS_GRAPH = apiArray; 00107 return 0; 00108 } 00109 #endif*/ 00110 00111 } //end namespace ito 00112 00113 #endif // Q_MOC_RUN 00114 #endif // APIFUNCTIONSGRAPHINC_H