VR-Forces Development_Version 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
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
void
expandAll();
73
74
protected
:
75
76
void
setupGui();
77
void
tearDownGui();
78
80
virtual
void
activate();
81
83
virtual
void
deactivate();
84
85
protected
:
86
87
std::string
myClassName
;
88
QGridLayout*
myLayout
;
89
QTreeWidget
*
myTreeWidget
;
90
QPushButton
*
myRefreshButton
;
91
QPushButton
*
myExpandAllButton
;
92
QCheckBox
*
myResizeBox
;
93
DtSceneGraphTreeLogic
*
myLogic
;
94
};
95
98
class
DT_DLL_VRVOSGQT
DtSceneGraphPageCreator
:
public
DtPageCreator
99
{
100
public
:
102
DtSceneGraphPageCreator
(
DtDe
& de);
103
105
virtual
~
DtSceneGraphPageCreator
();
106
110
virtual
std::string pageClassName()
const
;
111
113
virtual
DtPage
* create(
QWidget
* parent = 0, Qt::WindowFlags f = 0);
114
115
};
116
117
}
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)