VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvOsgQt
DtSceneGraphPage.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2018 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
class
QMenu
;
30
31
namespace
makVrv
32
{
33
34
class
DtSceneGraphTreeLogic;
35
38
class
DT_DLL_VRVOSGQT
DtSceneGraphPage
:
public
DtPage
,
39
public
DtSceneGraphTreeWidgetInterface
40
{
41
Q_OBJECT
42
43
public
:
44
46
DtSceneGraphPage
(
DtDe
& de, QWidget* pParent = 0);
47
49
virtual
~
DtSceneGraphPage
();
50
52
virtual
void
clear();
53
55
virtual
bool
insertTreeWidgetItem(
QTreeWidgetItem
* pItem,
56
QTreeWidgetItem
* pParent);
57
59
virtual
QTreeWidgetItem
* rootItem();
60
62
virtual
QIcon icon();
63
65
virtual
QString title();
66
68
virtual
const
std::string& pageClassName()
const
;
69
70
protected
slots:
71
72
void
updateSize();
73
void
refresh();
74
void
expandAll();
75
void
contextMenuAt(
const
QPoint& point);
76
77
protected
:
78
79
void
setupGui();
80
void
tearDownGui();
81
83
virtual
void
activate();
84
86
virtual
void
deactivate();
87
88
protected
:
89
90
std::string
myClassName
;
91
bool
myExpandingAll
;
92
QGridLayout*
myLayout
;
93
QTreeWidget
*
myTreeWidget
;
94
QPushButton
*
myRefreshButton
;
95
QPushButton
*
myExpandAllButton
;
96
QCheckBox
*
myResizeBox
;
97
QComboBox
*
myRootSelector
;
98
DtSceneGraphTreeLogic
*
myLogic
;
99
QMenu
*
myContextMenu
;
100
};
101
104
class
DT_DLL_VRVOSGQT
DtSceneGraphPageCreator
:
public
DtPageCreator
105
{
106
public
:
108
DtSceneGraphPageCreator
(
DtDe
& de);
109
111
virtual
~
DtSceneGraphPageCreator
();
112
116
virtual
std::string pageClassName()
const
;
117
119
virtual
DtPage
* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
120
121
};
122
123
}
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)