VR-Forces Developer's Guide
 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) 2021 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 #include <osg/ref_ptr>
20 #include <osg/Node>
21 
22 #include <osgEarth/MapNode>
23 #include <vector>
24 
25 namespace makVrv
26 {
27  class DtOsgTerrainPatchObject;
28 
31 
34 
36  template <>
37  inline const char* creatorTypeName<DtStreamingSpeedTreeFeatureCallback>(void) { return "DtStreamingSpeedTreeFeatureCallbackCreator"; }
38 
46  {
47  protected:
48 
51 
54  DtStreamingSpeedTreeForestManager& myForestManager);
55 
58 
59  private:
64 
65  public:
66  // callbacks
67  virtual void onLayerLoaded(const osgEarth::MapNode* mapNode,
68  osgEarth::Layer* layer) override;
69 
72  virtual void onDataPreMerge(const osgEarth::Layer* layer,
73  osg::Node* newNode) override;
74 
76  virtual void onDataLoaded(const osgEarth::Layer* layer,
77  const osg::Node* data) override;
78 
80  virtual const std::string& instanceClassName() const override;
81 
82  public:
83  //Get the class name for this class "speedTreeManager" in this case
84  static const std::string& className();
85 
86  protected:
87  static const std::string theClassName;
88 
89  protected:
93  };
94 }
DtStreamingSpeedTreeForestManager & myForestManager
Definition: DtStreamingSpeedTreeFeatureCallback.h:90
#define DT_DLL_VRVST
Definition: vrvSt.h:20
DtStreamingSpeedTreeForestManager is a singleton class that manages a collection of DtTerrainPatchObj...
Definition: DtStreamingSpeedTreeForestManager.h:51
static const std::string theClassName
Definition: DtStreamingSpeedTreeFeatureCallback.h:87
Contains DLL export macros.
DtVirtualBaseClassCreator< DtStreamingSpeedTreeFeatureCallback, DtOsgTerrainPatchObject &, DtStreamingSpeedTreeForestManager & > DtStreamingSpeedTreeFeatureCallbackCreator
creator
Definition: DtStreamingSpeedTreeFeatureCallback.h:30
friend DtStreamingSpeedTreeFeatureCallbackCreator
creator friend class so it is the only one that can create new DtStreamingSpeedTreeFeatureCallback ...
Definition: DtStreamingSpeedTreeFeatureCallback.h:50
DtOsgTerrainPatchObject & myPatch
Definition: DtStreamingSpeedTreeFeatureCallback.h:91
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:23
A DtOsgTerrainPatchObject contains the methods for loading a file as a terrain. When loading a file a...
Definition: DtOsgTerrainPatchObject.h:54
DtDe & myDe
Definition: DtStreamingSpeedTreeFeatureCallback.h:92
const char * creatorTypeName< DtStreamingSpeedTreeFeatureCallback >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtStreamingSpeedTreeFeatureCallback.h:37
Definition: DtOsgEarthFeatureDataBroker.h:65
Contains makVrv::DtOsgEarthFeatureDataBroker class.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
DtStreamingSpeedTreeFeatureCallback is a data broker callback that will create speedtrees for an osgE...
Definition: DtStreamingSpeedTreeFeatureCallback.h:44

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)