itom 1.0.14
D:/git-itom/sources/itom/Common/apiFunctionsGraphInc.h
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 
00031 //#include "sharedStructures.h"
00032 //#include "sharedStructuresGraphics.h"
00033 
00034 namespace ito
00035 {
00036 
00037         #if defined(ITOM_IMPORT_PLOTAPI) && !defined(ITOM_CORE)
00038                 void **ITOM_API_FUNCS_GRAPH;
00039         #else
00040                 extern void **ITOM_API_FUNCS_GRAPH;
00041         #endif
00042 
00063         #define apiPaletteGetNumberOfColorBars \
00064                 (*(ito::RetVal (*)(int &)) ito::ITOM_API_FUNCS_GRAPH[0])
00065 
00066         #define apiPaletteGetColorBarName \
00067                 (*(ito::RetVal (*)(const QString &, ito::ItomPalette &)) ito::ITOM_API_FUNCS_GRAPH[1])
00068 
00069         #define apiPaletteGetColorBarIdx \
00070                 (*(ito::RetVal (*)(const int, ito::ItomPalette &)) ito::ITOM_API_FUNCS_GRAPH[2])
00071 
00072         #define apiGetFigure \
00073                 (*(ito::RetVal (*)(const QString &, const QString &, ito::uint32 &, QWidget **, QWidget *parent)) ito::ITOM_API_FUNCS_GRAPH[3])
00074 
00075 
00076         #define apiGetPluginList \
00077                 (*(ito::RetVal (*)(const ito::pluginInfo, QHash<QString, ito::pluginInfo> &, const QString)) ito::ITOM_API_FUNCS_GRAPH[4])
00078 
00079         #define apiStartLiveData \
00080                 (*(ito::RetVal (*)(QObject *, QObject *)) ito::ITOM_API_FUNCS_GRAPH[5])
00081 
00082         #define apiStopLiveData \
00083                 (*(ito::RetVal (*)(QObject *, QObject *)) ito::ITOM_API_FUNCS_GRAPH[6])
00084 
00085         #define apiConnectLiveData \
00086                 (*(ito::RetVal (*)(QObject *, QObject *)) ito::ITOM_API_FUNCS_GRAPH[7])
00087 
00088         #define apiDisconnectLiveData \
00089                 (*(ito::RetVal (*)(QObject *, QObject *)) ito::ITOM_API_FUNCS_GRAPH[8])
00090 
00091         #define apiPaletteGetColorBarIdxFromName \
00092                 (*(ito::RetVal (*)(const QString &, ito::int32 &)) ito::ITOM_API_FUNCS_GRAPH[9])
00093 
00094         #define apiGetFigureSetting \
00095                 (*(QVariant (*)(const QObject *, const QString &, const QVariant &, ito::RetVal *)) ito::ITOM_API_FUNCS_GRAPH[10])
00096 
00099         #if defined(ITOM_IMPORT_PLOTAPI)
00100         static int importItomPlotApi(void** apiArray)
00101         {
00102                 ito::ITOM_API_FUNCS_GRAPH = apiArray;
00103                 return 0;
00104         }
00105         #endif
00106 
00107 } //end namespace ito
00108 
00109 #endif // APIFUNCTIONSGRAPHINC_H
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends