VR-Forces 4.3.1 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/DtDe.h
>
15
#include <
vrvCore/DtStreamedFeatureManager.h
>
16
17
#include <
vrvUtil/DtKeyedSignalConnectionManager.h
>
18
19
#include <osg/NodeVisitor>
20
21
namespace
osgEarth
22
{
23
namespace
Features
24
{
25
class
CustomFeatureNode;
26
}
27
class
Map;
28
class
ModelLayer;
29
}
30
31
namespace
osg
32
{
33
class
Node;
34
}
35
36
namespace
makVrv
37
{
38
class
DtTerrainPatchObject;
39
46
class
DT_DLL_VRVOSGEARTH
DtOsgEarthStreamedFeatureManager
47
:
public
DtStreamedFeatureManager
48
{
49
public
:
50
52
virtual
~
DtOsgEarthStreamedFeatureManager
();
53
54
protected
:
55
58
friend
class
DtOsgEarthStreamedFeatureCallback;
59
61
66
virtual
void
processNewFeatures(
67
osgEarth::Features::CustomFeatureNode* featureNode );
68
72
virtual
void
slot_customFeatureNodeToBeDeleted(
73
osgEarth::Features::CustomFeatureNode* node );
74
76
77
virtual
void
onDataLoaded(osgEarth::Map* map, osgEarth::ModelLayer* layer,
78
osg::Node* data);
79
80
protected
:
82
friend
class
DtOsgEarthStreamedFeatureManagerCreator
;
83
84
// CTOR (protected, only created through creator function)
85
DtOsgEarthStreamedFeatureManager
(
DtDe
& de );
86
87
// CTOR (unimplemented default CTOR)
88
DtOsgEarthStreamedFeatureManager
();
89
94
virtual
void
slot_terrainPatchCreated(
DtTerrainPatchObject
& patch);
95
96
protected
:
97
DtKeyedSignalConnectionManager<osgEarth::Features::CustomFeatureNode*>
98
myKeyedConnections
;
99
};
100
104
class
DT_DLL_VRVOSGEARTH
DtOsgEarthStreamedFeatureManagerCreator
105
:
public
DtStreamedFeatureManagerCreator
106
{
107
public
:
109
DtOsgEarthStreamedFeatureManagerCreator
()
110
:
DtStreamedFeatureManagerCreator
()
111
{
112
}
113
115
virtual
~
DtOsgEarthStreamedFeatureManagerCreator
()
116
{
117
}
118
120
virtual
DtStreamedFeatureManager
* create(
DtDe
& de );
121
};
122
127
class
DT_DLL_VRVOSGEARTH
DtStreamedFeaturePageVisitor
:
public
osg::NodeVisitor
128
{
129
public
:
130
typedef
std::list<osgEarth::Features::CustomFeatureNode*>
FoundFeatureNodeList
;
131
133
DtStreamedFeaturePageVisitor
();
134
136
virtual
~
DtStreamedFeaturePageVisitor
();
137
138
const
FoundFeatureNodeList
& foundFeatureNodes();
139
140
public
:
// osg::NodeVisitor overrides
141
142
void
apply(osg::Node& node);
143
144
protected
:
145
146
// List of found CustomFeatureNodes
147
FoundFeatureNodeList
myFoundFeatureNodeList
;
148
};
149
}
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)