VR-Forces 4.6.1 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
vrvOsgEarth
DtOsgEarthStreamedFeatureCallback.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2018 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
#include <
vrvOsgEarth/vrvOsgEarth.h
>
12
#include <
vrvOsg/DtOsgEarthFeatureDataBroker.h
>
13
#include <
vrvUtil/DtVirtualBaseClass.h
>
14
15
namespace
makVrv
16
{
17
18
class
DtOsgEarthStreamedFeatureManager;
19
20
//
21
// **** DtOsgEarthStreamedFeatureCallback
22
//
23
// DtOsgEarthFeatureDataBroker::Callback that is fired when a new feature
24
// data 'tile' pages in. In uses the visitor above to find any
25
// CustomFeatureNodes. It then passes that data to the streamed
26
// feature manager, and also connects the custom node's 'being destroyed'
27
// signal to the feature manager's equivalent slot.
28
class
DT_DLL_VRVOSGEARTH
DtOsgEarthStreamedFeatureCallback
29
:
public
DtOsgEarthFeatureDataBroker::Callback
30
{
31
friend
class
DtOsgEarthStreamedFeatureCallbackCreator
;
32
protected
:
33
// CTOR
34
DtOsgEarthStreamedFeatureCallback
(
DtOsgEarthStreamedFeatureManager
& featureMgr);
35
36
public
:
// DtOsgEarthFeatureDataBroker::Callback interface
37
38
// Invoked by the broker when the layer is first loaded.
39
void
onLayerLoaded(
const
osgEarth::MapNode* mapNode,
40
const
osgEarth::ModelLayer* layer);
41
43
void
onDataPreMerge(
const
osgEarth::Map* map,
const
osgEarth::ModelLayer* layer,
44
osg::Node* data);
45
46
// Invoked by the broker when new data arrives.
47
void
onDataLoaded(
const
osgEarth::Map* map,
const
osgEarth::ModelLayer* layer,
48
const
osg::Node* data);
49
50
public
:
53
static
const
char
* className();
54
55
protected
:
56
static
const
char
*
myClassName
;
57
58
protected
:
60
virtual
~
DtOsgEarthStreamedFeatureCallback
();
61
62
protected
:
63
64
DtOsgEarthStreamedFeatureManager
&
myFeatureManager
;
65
};
66
70
class
DT_DLL_VRVOSGEARTH
DtOsgEarthStreamedFeatureCallbackCreator
:
public
DtVirtualBaseClass
71
{
72
73
public
:
76
static
DtOsgEarthStreamedFeatureCallbackCreator
& instance(
DtDe
& de);
77
79
static
void
registerInstance(
DtDe
& de,
80
DtOsgEarthStreamedFeatureCallbackCreator
* instance);
81
83
virtual
DtOsgEarthStreamedFeatureCallback
* create(
DtOsgEarthStreamedFeatureManager
& featureMgr);
84
};
85
}
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)