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
vrvOsgEarth
DtOsgEarthStreamedFeatureManager.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2014 VT-MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsgEarth/vrvOsgEarth.h
>
13
14
#include <
vrvCore/DtStreamedFeatureManager.h
>
15
16
#include <
vrvUtil/DtKeyedSignalConnectionManager.h
>
17
18
#include <osg/NodeVisitor>
19
20
namespace
osgEarth
21
{
22
namespace
Features
23
{
24
class
CustomFeatureNode;
25
}
26
class
Map;
27
class
ModelLayer;
28
}
29
30
namespace
osg
31
{
32
class
Node
;
33
}
34
35
namespace
makVrv
36
{
37
class
DtTerrainPatchObject;
38
45
class
DT_DLL_VRVOSGEARTH
DtOsgEarthStreamedFeatureManager
46
:
public
DtStreamedFeatureManager
47
{
48
public
:
49
51
virtual
~
DtOsgEarthStreamedFeatureManager
();
52
53
protected
:
54
57
friend
class
DtOsgEarthStreamedFeatureCallback;
58
60
65
virtual
void
processNewFeatures(
66
osgEarth::Features::CustomFeatureNode* featureNode );
67
71
virtual
void
slot_customFeatureNodeToBeDeleted(
72
osgEarth::Features::CustomFeatureNode* node );
73
75
76
virtual
void
onDataLoaded(osgEarth::Map* map, osgEarth::ModelLayer* layer,
77
osg::Node* data);
78
79
protected
:
81
friend
class
DtOsgEarthStreamedFeatureManagerCreator
;
82
83
// CTOR (protected, only created through creator function)
84
DtOsgEarthStreamedFeatureManager
(
DtDe
& de );
85
86
// CTOR (unimplemented default CTOR)
87
DtOsgEarthStreamedFeatureManager
();
88
93
virtual
void
slot_terrainPatchCreated(
DtTerrainPatchObject
& patch);
94
95
protected
:
96
DtKeyedSignalConnectionManager<osgEarth::Features::CustomFeatureNode*>
97
myKeyedConnections
;
98
};
99
103
class
DT_DLL_VRVOSGEARTH
DtOsgEarthStreamedFeatureManagerCreator
104
:
public
DtStreamedFeatureManagerCreator
105
{
106
public
:
108
DtOsgEarthStreamedFeatureManagerCreator
()
109
:
DtStreamedFeatureManagerCreator
()
110
{
111
}
112
114
virtual
~
DtOsgEarthStreamedFeatureManagerCreator
()
115
{
116
}
117
119
virtual
DtStreamedFeatureManager
* create(
DtDe
& de );
120
};
121
126
class
DT_DLL_VRVOSGEARTH
DtStreamedFeaturePageVisitor
:
public
osg::NodeVisitor
127
{
128
public
:
129
typedef
std::list<osgEarth::Features::CustomFeatureNode*>
FoundFeatureNodeList
;
130
132
DtStreamedFeaturePageVisitor
();
133
135
virtual
~
DtStreamedFeaturePageVisitor
();
136
137
const
FoundFeatureNodeList
& foundFeatureNodes();
138
139
public
:
// osg::NodeVisitor overrides
140
141
void
apply(osg::Node& node);
142
143
protected
:
144
145
// List of found CustomFeatureNodes
146
FoundFeatureNodeList
myFoundFeatureNodeList
;
147
};
148
}
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)