VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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 <QtWidgets/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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)