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
vrvSt
DtStreamingSpeedTreeFeatureCallback.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 <
vrvSt/vrvSt.h
>
12
13
#include <
vrvOsg/DtOsgEarthFeatureDataBroker.h
>
14
#include <osg/NodeCallback>
15
#include <
vrvUtil/DtVirtualBaseClass.h
>
16
17
18
namespace
makVrv
19
{
20
class
DtOsgTerrainPatchObject;
21
27
class
DT_DLL_VRVST
DtStreamingSpeedTreeFeatureCallback
28
:
public
DtOsgEarthFeatureDataBroker::Callback
29
{
30
friend
class
DtStreamingSpeedTreeFeatureCallbackCreator
;
31
protected
:
32
DtStreamingSpeedTreeFeatureCallback
(
DtOsgTerrainPatchObject
& patch,
33
DtStreamingSpeedTreeForestManager
& myForestManager);
34
public
:
35
// callbacks
36
virtual
void
onLayerLoaded(
const
osgEarth::MapNode* mapNode,
37
const
osgEarth::ModelLayer* layer);
38
41
virtual
void
onDataPreMerge(
const
osgEarth::Map* map,
const
osgEarth::ModelLayer* layer,
42
osg::Node* newNode);
43
44
virtual
void
onDataLoaded(
const
osgEarth::Map* map,
const
osgEarth::ModelLayer* layer,
45
const
osg::Node* data);
46
public
:
47
static
const
char
* className();
48
49
protected
:
50
static
const
char
*
myClassName
;
51
52
protected
:
53
DtStreamingSpeedTreeForestManager
&
myForestManager
;
54
DtOsgTerrainPatchObject
&
myPatch
;
55
56
};
57
61
class
DT_DLL_VRVST
DtStreamingSpeedTreeFeatureCallbackCreator
:
public
DtVirtualBaseClass
62
{
63
64
public
:
67
static
DtStreamingSpeedTreeFeatureCallbackCreator
& instance(
DtDe
& de);
68
70
static
void
registerInstance(
DtDe
& de,
71
DtStreamingSpeedTreeFeatureCallbackCreator
* instance);
72
74
virtual
DtStreamingSpeedTreeFeatureCallback
* create(
DtOsgTerrainPatchObject
& patch,
75
DtStreamingSpeedTreeForestManager
& forestManager);
76
};
77
78
}
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
)