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
DtSceneGraphTreeWidget.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2007 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtSceneGraphTreeWidget.h,v $ $Revision: 1.27 $ $State: Exp $
7
******************************************************************************/
8
11
12
#pragma once
13
#include <
vrvCoreQt/DtPage.h
>
14
15
#include <
vrvOsgQt/vrvOsgQt.h
>
16
#include <
vrvOsgQt/DtSceneGraphTreeLogic.h
>
17
#include <
vrvOsgQt/DtSceneGraphTreeWidgetInterface.h
>
18
#include <QtWidgets/QTreeWidget>
19
20
namespace
osg
21
{
22
class
Node
;
23
}
24
25
class
QTreeWidgetItem
;
26
class
QPushButton
;
27
class
QCheckBox
;
28
29
namespace
makVrv
30
{
31
class
DtVrvApplication;
32
class
DtQtDeMainWindow;
33
36
class
DT_DLL_VRVOSGQT
DtSceneGraphTreeWidget
:
public
DtPage
,
37
public
DtSceneGraphTreeWidgetInterface
38
{
39
40
Q_OBJECT
41
42
public
:
43
45
virtual
~
DtSceneGraphTreeWidget
();
46
48
virtual
QIcon icon();
49
51
virtual
QString title();
52
54
virtual
const
std::string& pageClassName()
const
;
55
57
virtual
void
clear();
58
60
virtual
bool
insertTreeWidgetItem(
QTreeWidgetItem
* pItem,
61
QTreeWidgetItem
* pParent);
62
64
virtual
QTreeWidgetItem
* rootItem();
65
67
virtual
void
onActivate();
68
70
virtual
void
onDeactivate();
71
72
protected
slots:
73
74
void
updateSize();
75
void
refresh();
76
void
expandAll();
77
78
protected
:
79
81
friend
class
DtSceneGraphTreeWidgetCreator
;
82
84
DtSceneGraphTreeWidget
(
DtDe
& de,
QWidget
* parent = 0, Qt::WindowFlags f = 0);
85
87
virtual
void
activate();
88
90
virtual
void
deactivate();
91
92
virtual
void
showEvent(QShowEvent *);
93
94
void
setupGui();
95
96
protected
:
97
98
std::string
myClassName
;
99
QTreeWidget
*
myTreeWidget
;
100
QPushButton
*
myRefreshButton
;
101
QPushButton
*
myExpandAllButton
;
102
QCheckBox
*
myResizeBox
;
103
DtSceneGraphTreeLogic
*
myLogic
;
104
};
105
108
class
DT_DLL_VRVOSGQT
DtSceneGraphTreeWidgetCreator
:
public
DtPageCreator
109
{
110
public
:
111
113
DtSceneGraphTreeWidgetCreator
(
DtDe
& de);
114
116
virtual
~
DtSceneGraphTreeWidgetCreator
();
117
121
virtual
std::string pageClassName()
const
;
122
124
virtual
DtPage
* create(
QWidget
* parent = 0, Qt::WindowFlags f = 0);
125
};
126
127
}
128
129
130
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
)