MeVisLab Resolution Independence API
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
QWidget* parentWidget = reinterpret_cast<QWidget*>(parent); \
24
QWidget* viewer = new name(parentWidget); \
25
QLayout* layout = parentWidget->layout(); \
26
if (layout != NULL) { \
27
layout->addWidget(viewer); \
28
} \
29
variable = viewer; \
30
}
31
32
#include <qobject.h>
33
#include <Inventor/Qt/SoQtRenderArea.h>
34
#include <Inventor/Qt/viewers/SoQtFullViewer.h>
35
#include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
36
37
#include <cstdio>
38
#include <iostream>
39
40
#ifdef SO_VIEWERS_EXPORTS
41
#define SO_VIEWERS_CLASS_SPEC ML_LIBRARY_EXPORT_ATTRIBUTE
42
#else
43
#define SO_VIEWERS_CLASS_SPEC ML_LIBRARY_IMPORT_ATTRIBUTE
44
#endif
45
46
47
#ifdef WIN32
48
#include <io.h>
49
#elif defined(LINUX)
50
#include <sys/io.h>
51
#endif
52
53
#include "
SoSFMLConnector.h
"
54
#include <mlModuleIncludes.h>
55
56
#include <Inventor/fields/SoFields.h>
57
#include <Inventor/nodes/SoSeparator.h>
58
#include <Inventor/fields/SoSubField.h>
59
#include <Inventor/nodes/SoSubNode.h>
60
#include <Inventor/nodes/SoOrthographicCamera.h>
61
#include <Inventor/nodes/SoPerspectiveCamera.h>
62
#include <Inventor/sensors/SoNodeSensor.h>
63
#include <Inventor/sensors/SoOneShotSensor.h>
64
#include <Inventor/sensors/SoTimerSensor.h>
65
#include <Inventor/sensors/SoFieldSensor.h>
66
67
#endif
// __SO_VIEWERS_H__
SoSFMLConnector.h
mlOpenGL.h
MeVisLab
Standard
Sources
Inventor
SoViewers
SoViewers.h
Generated by
1.10.0