VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgEarthStreamedFeatureCallback.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
13 
15 
16 namespace makVrv
17 {
18  class DtOsgEarthStreamedFeatureManager;
19 
20 
23 
26 
28  template <>
29  inline const char* creatorTypeName<DtOsgEarthStreamedFeatureCallback>(void) { return "DtOsgEarthStreamedFeatureCallbackCreator"; }
30 
38  {
39  protected:
42 
43  // CTOR
45 
48 
49  private:
54 
55  public: // DtOsgEarthFeatureDataBroker::Callback interface
56 
57  // Invoked by the broker when the layer is first loaded.
58  virtual void onLayerLoaded(const osgEarth::MapNode* mapNode,
59  osgEarth::Layer* layer) override;
60 
62  virtual void onDataPreMerge(const osgEarth::Layer* layer,
63  osg::Node* data) override;
64 
65  // Invoked by the broker when new data arrives.
66  virtual void onDataLoaded(const osgEarth::Layer* layer,
67  const osg::Node* data) override;
68 
72  virtual float callbackOrder() override;
73 
75  virtual const std::string& instanceClassName() const override;
76 
77  public:
80  static const std::string& className();
81 
82  protected:
83  static const std::string theClassName;
84 
85  protected:
88  };
89 }
DtDe & myDe
Definition: DtOsgEarthStreamedFeatureCallback.h:87
#define DT_DLL_VRVOSGEARTH
Definition: vrvOsgEarth.h:21
static const std::string theClassName
Definition: DtOsgEarthStreamedFeatureCallback.h:83
const char * creatorTypeName< DtOsgEarthStreamedFeatureCallback >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtOsgEarthStreamedFeatureCallback.h:29
friend DtOsgEarthStreamedFeatureCallbackCreator
creator friend class so it is the only one that can create new DtOsgEarthStreamedFeatureCallback ...
Definition: DtOsgEarthStreamedFeatureCallback.h:47
DtOsgEarthStreamedFeatureManager & myFeatureManager
Definition: DtOsgEarthStreamedFeatureCallback.h:86
DtOsgEarthStreamedFeatureManager is an osgEarth-specific implemenation of a DtStreamedFeatureManager...
Definition: DtOsgEarthStreamedFeatureManager.h:44
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:22
DtOsgEarthFeatureDataBroker::Callback that is fired when a new feature data &#39;tile&#39; pages in...
Definition: DtOsgEarthStreamedFeatureCallback.h:36
DtVirtualBaseClassCreator< DtOsgEarthStreamedFeatureCallback, DtOsgEarthStreamedFeatureManager & > DtOsgEarthStreamedFeatureCallbackCreator
creator
Definition: DtOsgEarthStreamedFeatureCallback.h:22
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:70
Contains DLL export macros.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)