VR-Forces 4.3 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
appsrc
forestTestApp
forestExampleMainWindow.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: forestExampleMainWindow.h,v $ $Revision: 1.25 $ $State: Exp $
7
******************************************************************************/
8
9
#ifndef FORESTEXAMPLEMAINWINDOW_H
10
#define FORESTEXAMPLEMAINWINDOW_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
class
ForestDriver
;
32
34
class
ForestExampleMainWindow
:
public
QMainWindow
35
{
36
37
Q_OBJECT
38
39
public
:
40
42
ForestExampleMainWindow
();
43
45
virtual
~ForestExampleMainWindow
();
46
47
// The adapter widgets. These will become owned and
48
// deleted by MainWindow.
49
makVrv::DtOsgAdapterQtWidget
*
myMainOSGWidget
;
50
51
void
buildGui
();
52
53
public
slots:
54
55
void
open
();
56
void
closeFile
();
57
void
removeAllTrees
();
58
void
useSpeedTreeDefinitions
();
59
void
useDefaultTreeDefinitions
();
60
void
onRebuildForest
();
61
void
onSpeedTreeSettings
();
62
63
protected
:
64
66
void
preIgInitialize
();
67
void
createIg
();
68
void
overrideIgFunctionality
();
69
70
void
initializeIg
();
71
72
void
postIgInitialize
();
73
74
virtual
void
closeEvent
(QCloseEvent *event);
75
76
void
createActions
();
77
void
createMenus
();
78
void
createToolBars
();
79
void
createStatusBar
();
80
81
makVrv::DtDe
*
myDe
;
82
makVrv::DtPluginManager
*
myPluginManager
;
83
84
ForestDriver
*
myForestDriver
;
85
86
87
makVrv::DtSceneGraphTreeWidget
*
mySceneGraphTreeWidget
;
88
89
QMenu
*
myFileMenu
;
90
QMenu
*
myTreeMenu
;
91
QToolBar
*
myFileToolBar
;
92
QAction
*
myOpenAction
;
93
QAction
*
myCloseAction
;
94
QAction
*
myExitAction
;
95
96
QAction
*
myRemoveAllTreesAction
;
97
QAction
*
myUseSpeedTreeDefinitionsAction
;
98
QAction
*
myUseDefaultTreeDefinitionsAction
;
99
QAction
*
myRebuildForestAction
;
100
QAction
*
mySpeedTreeSettingsAction
;
101
102
};
103
104
class
ForestExampleMainWindowViewCreator
:
public
makVrv::DtWindowCreator
105
{
106
public
:
107
ForestExampleMainWindowViewCreator
(
ForestExampleMainWindow
* mw)
108
{
109
myMainWindow
= mw;
110
}
111
113
virtual
makVrv::DtWindow
*
create
(
makVrv::DtDe
&,
makVrv::DtWindowConfiguration
&);
114
115
protected
:
116
ForestExampleMainWindow
*
myMainWindow
;
117
118
};
119
120
#endif
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)