VR-Forces 4.6 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
DtSceneGraphTreeLogic.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2011 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
8
#pragma once
9
10
#include <
vrvOsgQt/vrvOsgQt.h
>
11
#include <
vrvCore/DtSubjectObserver.h
>
12
13
namespace
osg
14
{
15
class
Node
;
16
class
Drawable
;
17
}
18
19
class
QTreeWidgetItem
;
20
class
QIcon;
21
22
namespace
makVrv
23
{
24
25
class
DtDe;
26
class
DtSceneGraphTreeWidgetInterface;
27
30
class
DT_DLL_VRVOSGQT
DtSceneGraphTreeLogic
31
{
32
33
public
:
36
static
DtSceneGraphTreeLogic
* create(
DtDe
& de,
DtSceneGraphTreeWidgetInterface
* iface);
37
39
virtual
~
DtSceneGraphTreeLogic
();
40
41
enum
SceneGraphRoot
42
{
43
RenderSystem
,
44
Environment
,
45
Terrain
,
46
Props
,
47
ScaledTerrainRoot
,
48
ScaledPropsRoot
,
49
ModelSet0
,
50
ModelSet1
,
51
ModelSet2
,
52
ModelSet3
53
};
54
56
virtual
void
clearAndTraverse();
57
58
virtual
void
clearAndTraverse(
int
domain);
59
61
virtual
bool
iterateNode(
QTreeWidgetItem
* pParent,
const
osg::Node* pNode,
bool
bDrawIcon =
true
);
62
63
protected
:
64
66
DtSceneGraphTreeLogic
(
DtDe
& de,
DtSceneGraphTreeWidgetInterface
* iface);
67
68
private
:
69
70
DtSceneGraphTreeLogic
();
71
QIcon getNodeIcon(
const
osg::Node* pNode);
72
QIcon getDrawableIcon(
const
osg::Drawable* drawable);
73
74
protected
:
75
76
DtDe
&
myDe
;
77
DtSceneGraphTreeWidgetInterface
*
myWidgetInterface
;
78
79
};
80
81
}
82
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)