VR-Forces 4.3.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
examples
exampleEmbedded
exampleEmbeddedMainWindow.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: exampleEmbeddedMainWindow.h,v $ $Revision: 1.4 $ $State: Exp $
7
******************************************************************************/
8
9
#ifndef exampleEmbeddedMainWindow_H
10
#define exampleEmbeddedMainWindow_H
11
12
// Include this header before any Qt header.
13
#include <
vrvUtil/signalslib.h
>
14
15
#include <
vrvCore/DtDe.h
>
16
#include <
vrvCore/DtVrvApplication.h
>
17
#include <
vrvCore/DtPluginManager.h
>
18
#include <
vrvOsgQt/DtOsgAdapterQtWidget.h
>
19
#include <
vrvOsgQt/DtSceneGraphTreeWidget.h
>
20
#include <
vrvCore/DtWindow.h
>
21
#include <
vrvUtil/DtWindowConfiguration.h
>
22
23
#include <QtGui/QMainWindow>
24
#include <osg/Group>
25
#include <osg/Node>
26
27
class
QAction
;
28
class
QMenu
;
29
class
QTreeWidget
;
30
class
QTreeWidgetItem
;
31
32
34
class
ExampleEmbeddedMainWindow
:
public
QMainWindow
35
{
36
37
Q_OBJECT
38
39
public
:
40
42
ExampleEmbeddedMainWindow
();
43
45
virtual
~ExampleEmbeddedMainWindow
();
46
47
48
// The adapter widgets. These will become owned and
49
// deleted by MainWindow.
50
makVrv::DtOsgAdapterQtWidget
*
myMainOSGWidget
;
51
makVrv::DtOsgAdapterQtWidget
*
myMiniOsgWidget
;
52
53
void
buildGui
();
54
55
public
slots:
56
57
void
open
();
58
void
closeFile
();
59
60
protected
:
61
63
void
preDisplayEngineInitialize
();
64
void
createDisplayEngine
();
65
void
overrideDisplayEngineFunctionality
();
66
67
68
void
initializeDisplayEngine
();
69
70
void
postDisplayEngineInitialize
();
71
72
virtual
void
closeEvent
(QCloseEvent *event);
73
74
void
createActions
();
75
void
createMenus
();
76
void
createToolBars
();
77
void
createStatusBar
();
78
79
protected
:
80
81
makVrv::DtDe
*
myDe
;
82
makVrv::DtPluginManager
*
myPluginManager
;
83
84
makVrv::DtPage
*
mySceneGraphTreeWidget
;
85
86
QMenu
*
myFileMenu
;
87
QToolBar
*
myFileToolBar
;
88
QAction
*
myOpenAction
;
89
QAction
*
myCloseAction
;
90
QAction
*
myExitAction
;
91
};
92
93
class
ExampleEmbeddedMainWindowViewCreator
:
public
makVrv::DtWindowCreator
94
{
95
public
:
96
ExampleEmbeddedMainWindowViewCreator
(
ExampleEmbeddedMainWindow
* window)
97
{
98
myWindow
= window;
99
}
100
102
virtual
makVrv::DtWindow
*
create
(
makVrv::DtDe
&,
makVrv::DtWindowConfiguration
&);
103
104
protected
:
105
ExampleEmbeddedMainWindow
*
myWindow
;
106
};
107
108
#endif
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)