VR-Forces 4.5 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
include
vrvOsgQt
DtSceneGraphPage.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: $ $Revision: $ $State: $
7
******************************************************************************/
8
12
13
#pragma once
14
#include <
vrvOsgQt/vrvOsgQt.h
>
15
#include <
vrvCoreQt/DtPage.h
>
16
#include <
vrvOsgQt/DtSceneGraphTreeWidgetInterface.h
>
17
18
namespace
osg
19
{
20
class
Node
;
21
}
22
23
class
QCheckBox
;
24
class
QGridLayout;
25
class
QPushButton
;
26
class
QComboBox
;
27
class
QTreeWidget
;
28
class
QTreeWidgetItem
;
29
30
namespace
makVrv
31
{
32
33
class
DtSceneGraphTreeLogic;
34
37
class
DT_DLL_VRVOSGQT
DtSceneGraphPage
:
public
DtPage
,
38
public
DtSceneGraphTreeWidgetInterface
39
{
40
Q_OBJECT
41
42
public
:
43
45
DtSceneGraphPage
(
DtDe
& de,
QWidget
* pParent = 0);
46
48
virtual
~
DtSceneGraphPage
();
49
51
virtual
void
clear();
52
54
virtual
bool
insertTreeWidgetItem(
QTreeWidgetItem
* pItem,
55
QTreeWidgetItem
* pParent);
56
58
virtual
QTreeWidgetItem
* rootItem();
59
61
virtual
QIcon icon();
62
64
virtual
QString title();
65
67
virtual
const
std::string& pageClassName()
const
;
68
69
protected
slots:
70
71
void
updateSize();
72
void
refresh();
73
void
expandAll();
74
75
protected
:
76
77
void
setupGui();
78
void
tearDownGui();
79
81
virtual
void
activate();
82
84
virtual
void
deactivate();
85
86
protected
:
87
88
std::string
myClassName
;
89
bool
myExpandingAll
;
90
QGridLayout*
myLayout
;
91
QTreeWidget
*
myTreeWidget
;
92
QPushButton
*
myRefreshButton
;
93
QPushButton
*
myExpandAllButton
;
94
QCheckBox
*
myResizeBox
;
95
QComboBox
*
myRootSelector
;
96
DtSceneGraphTreeLogic
*
myLogic
;
97
};
98
101
class
DT_DLL_VRVOSGQT
DtSceneGraphPageCreator
:
public
DtPageCreator
102
{
103
public
:
105
DtSceneGraphPageCreator
(
DtDe
& de);
106
108
virtual
~
DtSceneGraphPageCreator
();
109
113
virtual
std::string pageClassName()
const
;
114
116
virtual
DtPage
* create(
QWidget
* parent = 0, Qt::WindowFlags f = 0);
117
118
};
119
120
}
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)