itom 2.0.0
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 #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 &number)) ito::ITOM_API_FUNCS_GRAPH[0])
00066 
00067     #define apiPaletteGetColorBarName \
00068         (*(ito::RetVal (*)(const QString &name, ito::ItomPalette &palette)) ito::ITOM_API_FUNCS_GRAPH[1])
00069 
00070     #define apiPaletteGetColorBarIdx \
00071         (*(ito::RetVal (*)(const int index, ito::ItomPalette &palette)) ito::ITOM_API_FUNCS_GRAPH[2])
00072 
00073     #define apiGetFigure \
00074         (*(ito::RetVal (*)(const QString &figCategoryName, const QString &figClassName, ito::uint32 &UID, QWidget **figure, QWidget *parent)) ito::ITOM_API_FUNCS_GRAPH[3])
00075 
00076     #define apiGetPluginList \
00077         (*(ito::RetVal (*)(const ito::pluginInfo requirements, QHash<QString, ito::pluginInfo> &pluginList, const QString preference)) ito::ITOM_API_FUNCS_GRAPH[4])
00078 
00079     #define apiStartLiveData \
00080         (*(ito::RetVal (*)(QObject *liveDataSource, QObject *liveDataView)) ito::ITOM_API_FUNCS_GRAPH[5])
00081 
00082     #define apiStopLiveData \
00083         (*(ito::RetVal (*)(QObject *liveDataSource, QObject *liveDataView)) ito::ITOM_API_FUNCS_GRAPH[6])
00084 
00085     #define apiConnectLiveData \
00086         (*(ito::RetVal (*)(QObject *liveDataSource, QObject *liveDataView)) ito::ITOM_API_FUNCS_GRAPH[7])
00087 
00088     #define apiDisconnectLiveData \
00089         (*(ito::RetVal (*)(QObject *liveDataSource, QObject *liveDataView)) ito::ITOM_API_FUNCS_GRAPH[8])
00090 
00091     #define apiPaletteGetColorBarIdxFromName \
00092         (*(ito::RetVal (*)(const QString &name, ito::int32 &index)) ito::ITOM_API_FUNCS_GRAPH[9])
00093 
00094     #define apiGetFigureSetting \
00095         (*(QVariant (*)(const QObject *figureClass, const QString &key, const QVariant &defaultValue, ito::RetVal *retval)) ito::ITOM_API_FUNCS_GRAPH[10])
00096 
00097     #define apiGetPluginWidget \
00098         (*(ito::RetVal (*)(void *, QVector<ito::ParamBase> *paramsMand, QVector<ito::ParamBase> *paramsOpt, QPointer<QWidget>*widget)) ito::ITOM_API_FUNCS_GRAPH[11])
00099 
00100     #define apiGetFigureIDbyHandle \
00101         (*(ito::RetVal (*)(QObject *figure, ito::uint32 &figureUID)) ito::ITOM_API_FUNCS_GRAPH[12])
00102 
00103     #define apiGetItomPlotHandleByID \
00104         (*(ito::RetVal (*)(const ito::uint32 &figureUID, ito::ItomPlotHandle &plotHandle)) ito::ITOM_API_FUNCS_GRAPH[13])
00105 
00107     /*#if defined(ITOM_IMPORT_PLOTAPI)
00108     static int importItomPlotApi(void** apiArray)
00109     {
00110         ito::ITOM_API_FUNCS_GRAPH = apiArray;
00111         return 0;
00112     }
00113     #endif*/
00114 
00115 } //end namespace ito
00116 
00117 #endif // Q_MOC_RUN
00118 #endif // APIFUNCTIONSGRAPHINC_H
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends