VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
examples
exampleEmbeddedSlave
exampleEmbeddedSlaveMainWindow.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: exampleEmbeddedSlaveMainWindow.h,v $ $Revision: 1.4 $ $State: Exp $
7
******************************************************************************/
8
9
#ifndef exampleEmbeddedSlaveMainWindow_H
10
#define exampleEmbeddedSlaveMainWindow_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
ExampleEmbeddedSlaveMainWindow
:
public
QMainWindow
35
{
36
37
Q_OBJECT
38
39
public
:
40
42
ExampleEmbeddedSlaveMainWindow
();
43
45
virtual
~ExampleEmbeddedSlaveMainWindow
();
46
47
48
// The adapter widgets. These will become owned and
49
// deleted by MainWindow.
50
makVrv::DtOsgAdapterQtWidget
*
myMainOSGWidget
;
51
52
public
slots:
53
54
protected
:
55
57
void
createDisplayEngine
();
58
void
buildGui
();
59
void
preDisplayEngineInitialize
();
60
void
initializeDisplayEngine
();
61
void
postDisplayEngineInitialize
();
62
63
virtual
void
closeEvent
(QCloseEvent *event);
64
65
void
createActions
();
66
void
createMenus
();
67
void
createToolBars
();
68
void
createStatusBar
();
69
70
protected
:
71
72
makVrv::DtDe
*
myDe
;
73
makVrv::DtPluginManager
*
myPluginManager
;
74
75
QMenu
*
myFileMenu
;
76
QToolBar
*
myFileToolBar
;
77
QAction
*
myExitAction
;
78
};
79
80
class
ExampleEmbeddedSlaveMainWindowCreator
:
public
makVrv::DtWindowCreator
81
{
82
public
:
83
ExampleEmbeddedSlaveMainWindowCreator
(
ExampleEmbeddedSlaveMainWindow
* window)
84
{
85
myWindow
= window;
86
}
87
89
virtual
makVrv::DtWindow
*
create
(
makVrv::DtDe
&,
makVrv::DtWindowConfiguration
&);
90
91
protected
:
92
ExampleEmbeddedSlaveMainWindow
*
myWindow
;
93
};
94
95
#endif
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)