VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtStreamingSpeedTreeFeatureCallback.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvSt/vrvSt.h>
13 
15 
17 
18 #include <osg/NodeCallback>
19 
20 namespace makVrv
21 {
22  class DtOsgTerrainPatchObject;
23 
31  {
32  protected:
33 
36 
39  DtStreamingSpeedTreeForestManager& myForestManager);
40 
43 
44  private:
49 
50  public:
51  // callbacks
52  virtual void onLayerLoaded(const osgEarth::MapNode* mapNode,
53  osgEarth::Layer* layer);
54 
57  virtual void onDataPreMerge(const osgEarth::Map* map, const osgEarth::Layer* layer,
58  osg::Node* newNode);
59 
61  virtual void onDataLoaded(const osgEarth::Map* map, const osgEarth::Layer* layer,
62  const osg::Node* data);
63 
65  virtual const std::string& instanceClassName() const;
66 
67  public:
68  //Get the class name for this class "speedTreeManager" in this case
69  static const std::string& className();
70 
71  protected:
72  static const std::string theClassName;
73 
74  protected:
77 
78  };
79 
84  {
85  public:
86  // CTOR
88 
91 
92  private:
97 
98  public:
101  static DtStreamingSpeedTreeFeatureCallbackCreator& instance(DtDe& de);
102 
104  static void registerInstance(DtDe& de,
106 
109  DtStreamingSpeedTreeForestManager& forestManager);
110  };
111 
112 }
Virtual base class.
Definition: DtVirtualBaseClass.h:22
DtStreamingSpeedTreeForestManager & myForestManager
Definition: DtStreamingSpeedTreeFeatureCallback.h:75
#define DT_DLL_VRVST
Definition: vrvSt.h:23
DtStreamingSpeedTreeForestManager is a singleton class that manages a collection of DtTerrainPatchObj...
Definition: DtStreamingSpeedTreeForestManager.h:50
static const std::string theClassName
Definition: DtStreamingSpeedTreeFeatureCallback.h:72
Contains DLL export macros.
DtOsgTerrainPatchObject & myPatch
Definition: DtStreamingSpeedTreeFeatureCallback.h:76
Contains makVrv::DtVirtualBaseClass class.
A DtOsgTerrainPatchObject contains the methods for loading a file as a terrain.
Definition: DtOsgTerrainPatchObject.h:50
The DtStreamingSpeedTreeFeatureCallback creator for the DtStreamingSpeedTreeFeatureCallbackCreator cl...
Definition: DtStreamingSpeedTreeFeatureCallback.h:83
Definition: DtOsgEarthFeatureDataBroker.h:65
Contains makVrv::DtOsgEarthFeatureDataBroker class.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtStreamingSpeedTreeFeatureCallback is a data broker callback that will create speedtrees for an osgE...
Definition: DtStreamingSpeedTreeFeatureCallback.h:29

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)