VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
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
QTreeWidget
;
27
class
QTreeWidgetItem
;
28
29
namespace
makVrv
30
{
31
32
class
DtSceneGraphTreeLogic;
33
36
class
DT_DLL_VRVOSGQT
DtSceneGraphPage
:
public
DtPage
,
37
public
DtSceneGraphTreeWidgetInterface
38
{
39
Q_OBJECT
40
41
public
:
42
44
DtSceneGraphPage
(
DtDe
& de,
QWidget
* pParent = 0);
45
47
virtual
~
DtSceneGraphPage
();
48
50
virtual
void
clear();
51
53
virtual
bool
insertTreeWidgetItem(
QTreeWidgetItem
* pItem,
54
QTreeWidgetItem
* pParent);
55
57
virtual
QTreeWidgetItem
* rootItem();
58
60
virtual
QIcon icon();
61
63
virtual
QString title();
64
66
virtual
const
std::string& pageClassName()
const
;
67
68
protected
slots:
69
70
void
updateSize();
71
void
refresh();
72
73
protected
:
74
75
void
setupGui();
76
void
tearDownGui();
77
79
virtual
void
activate();
80
82
virtual
void
deactivate();
83
84
protected
:
85
86
DtDe
&
myDe
;
87
std::string
myClassName
;
88
QGridLayout*
myLayout
;
89
QTreeWidget
*
myTreeWidget
;
90
QPushButton
*
myRefreshButton
;
91
QCheckBox
*
myResizeBox
;
92
DtSceneGraphTreeLogic
*
myLogic
;
93
};
94
97
class
DT_DLL_VRVOSGQT
DtSceneGraphPageCreator
:
public
DtPageCreator
98
{
99
public
:
101
DtSceneGraphPageCreator
(
DtDe
& de);
102
104
virtual
~
DtSceneGraphPageCreator
();
105
109
virtual
std::string pageClassName()
const
;
110
112
virtual
DtPage
* create(
QWidget
* parent = 0, Qt::WindowFlags f = 0);
113
114
};
115
116
}
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)