VR-Forces 4.7 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
DtIndirectGeometryCallback.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
12
#include <
vrvOsgEarth/vrvOsgEarth.h
>
13
14
#include <
vrvOsg/DtOsgEarthFeatureDataBroker.h
>
15
16
#include <
vrvUtil/DtVirtualBaseClass.h
>
17
18
namespace
makVrv
19
{
20
class
DtIndirectGeometryManager;
21
27
class
DT_DLL_VRVOSGEARTH
DtIndirectGeometryCallback
28
:
public
DtOsgEarthFeatureDataBroker::Callback
29
{
30
friend
class
DtIndirectGeometryCallbackCreator
;
31
protected
:
33
DtIndirectGeometryCallback
(
DtDe
& de,
DtIndirectGeometryManager
& manager);
34
public
:
36
virtual
~
DtIndirectGeometryCallback
();
37
40
virtual
void
onLayerLoaded(
const
osgEarth::MapNode* mapNode,
const
osgEarth::ModelLayer* layer);
41
43
virtual
void
onDataPreMerge(
const
osgEarth::Map* map,
const
osgEarth::ModelLayer* layer, osg::Node* newData);
44
46
virtual
void
onDataLoaded(
const
osgEarth::Map* map,
const
osgEarth::ModelLayer* layer,
const
osg::Node* newData);
47
49
virtual
void
onDataUnloaded(
const
osgEarth::Map* map,
const
osgEarth::ModelLayer* layer,
const
osg::Node* oldData);
50
public
:
52
static
const
char
* className();
53
protected
:
54
static
const
char
*
myClassName
;
55
DtDe
&
myDe
;
56
DtIndirectGeometryManager
&
myManager
;
57
private
:
59
DtIndirectGeometryCallback
();
60
};
61
65
class
DT_DLL_VRVOSGEARTH
DtIndirectGeometryCallbackCreator
:
public
DtVirtualBaseClass
66
{
67
68
public
:
71
static
DtIndirectGeometryCallbackCreator
& instance(
DtDe
& de);
72
74
static
void
registerInstance(
DtDe
& de,
75
DtIndirectGeometryCallbackCreator
* instance);
76
78
virtual
DtIndirectGeometryCallback
* create(
DtDe
& de,
DtIndirectGeometryManager
& manager);
79
};
80
}
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)