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
vrvOsg
DtOsgEarthEffectTextureInstaller.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 <
vrvOsg/vrvOsg.h
>
12
#include <
vrvOsg/DtOsgEarthFeatureDataBroker.h
>
13
#include <osg/NodeCallback>
14
#include <
vrvUtil/DtVirtualBaseClass.h
>
15
16
namespace
makVrv
17
{
18
class
DtOsgEffectTextureVisitor;
19
25
class
DT_DLL_VRVOSG
DtOsgEarthEffectTextureInstaller
:
public
DtOsgEarthFeatureDataBroker::Callback
26
{
27
friend
class
DtOsgEarthEffectTextureInstallerCreator
;
28
protected
:
29
// Constructor
30
DtOsgEarthEffectTextureInstaller
(
DtDe
& de);
31
32
public
:
// DtOsgEarthFeatureDataBroker::Callback interface
33
34
// Invoked by the broker when the layer is first loaded.
35
virtual
void
onLayerLoaded(
const
osgEarth::MapNode* mapNode,
36
const
osgEarth::ModelLayer* layer);
37
40
virtual
void
onDataPreMerge(
const
osgEarth::Map* map,
const
osgEarth::ModelLayer* layer,
41
osg::Node* newNode);
42
43
// Invoked by the broker when new data arrives.
44
virtual
void
onDataLoaded(
const
osgEarth::Map* map,
const
osgEarth::ModelLayer* layer,
45
const
osg::Node* newNode);
46
47
public
:
50
static
const
char
* className();
51
52
protected
:
53
virtual
~DtOsgEarthEffectTextureInstaller
() { }
54
55
protected
:
56
static
const
char
*
myClassName
;
57
58
protected
:
59
DtDe
&
myDe
;
60
};
61
65
class
DT_DLL_VRVOSG
DtOsgEarthEffectTextureInstallerCreator
:
public
DtVirtualBaseClass
66
{
67
68
public
:
71
static
DtOsgEarthEffectTextureInstallerCreator
& instance(
DtDe
& de);
72
74
static
void
registerInstance(
DtDe
& de,
75
DtOsgEarthEffectTextureInstallerCreator
* instance);
76
78
virtual
DtOsgEarthEffectTextureInstaller
* create(
DtDe
& de);
79
};
80
81
}
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
)