MeVisLab Resolution Independence API
Loading...
Searching...
No Matches
SoViewers.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#ifndef SO_VIEWERS_H
14#define SO_VIEWERS_H
15
17
18#include "mlInitSystemML.h"
19
20#include "mlOpenGL.h"
21
22#define SOVIEWERS_NEW(variable, name, parent) \
23 { \
24 QWidget* parentWidget = reinterpret_cast<QWidget*>(parent); \
25 QWidget* viewer = new name(parentWidget); \
26 QLayout* layout = parentWidget->layout(); \
27 if (layout != NULL) { \
28 layout->addWidget(viewer); \
29 } \
30 variable = viewer; \
31 }
32
33#include <qobject.h>
34#include <Inventor/Qt/SoQtRenderArea.h>
35#include <Inventor/Qt/viewers/SoQtFullViewer.h>
36#include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
37
38#include <cstdio>
39#include <iostream>
40
41#ifdef SO_VIEWERS_EXPORTS
42#define SO_VIEWERS_CLASS_SPEC ML_LIBRARY_EXPORT_ATTRIBUTE
43#else
44#define SO_VIEWERS_CLASS_SPEC ML_LIBRARY_IMPORT_ATTRIBUTE
45#endif
46
47
48#ifdef WIN32
49#include <io.h>
50#elif defined(LINUX)
51#include <sys/io.h>
52#endif
53
54#include "SoSFMLConnector.h"
55#include <mlModuleIncludes.h>
56
57#include <Inventor/fields/SoFields.h>
58#include <Inventor/nodes/SoSeparator.h>
59#include <Inventor/fields/SoSubField.h>
60#include <Inventor/nodes/SoSubNode.h>
61#include <Inventor/nodes/SoOrthographicCamera.h>
62#include <Inventor/nodes/SoPerspectiveCamera.h>
63#include <Inventor/sensors/SoNodeSensor.h>
64#include <Inventor/sensors/SoOneShotSensor.h>
65#include <Inventor/sensors/SoTimerSensor.h>
66#include <Inventor/sensors/SoFieldSensor.h>
67
68#endif // __SO_VIEWERS_H__