VR-Forces 4.6.1 Class Documentation
 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) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
14 
15 namespace makVrv
16 {
17 
18  class DtOsgEarthStreamedFeatureManager;
19 
20  //
21  // **** DtOsgEarthStreamedFeatureCallback
22  //
23  // DtOsgEarthFeatureDataBroker::Callback that is fired when a new feature
24  // data 'tile' pages in. In uses the visitor above to find any
25  // CustomFeatureNodes. It then passes that data to the streamed
26  // feature manager, and also connects the custom node's 'being destroyed'
27  // signal to the feature manager's equivalent slot.
30  {
32  protected:
33  // CTOR
35 
36  public: // DtOsgEarthFeatureDataBroker::Callback interface
37 
38  // Invoked by the broker when the layer is first loaded.
39  void onLayerLoaded(const osgEarth::MapNode* mapNode,
40  const osgEarth::ModelLayer* layer);
41 
43  void onDataPreMerge(const osgEarth::Map* map, const osgEarth::ModelLayer* layer,
44  osg::Node* data);
45 
46  // Invoked by the broker when new data arrives.
47  void onDataLoaded(const osgEarth::Map* map, const osgEarth::ModelLayer* layer,
48  const osg::Node* data);
49 
50  public:
53  static const char* className();
54 
55  protected:
56  static const char* myClassName;
57 
58  protected:
61 
62  protected:
63 
65  };
66 
71  {
72 
73  public:
76  static DtOsgEarthStreamedFeatureCallbackCreator& instance(DtDe& de);
77 
79  static void registerInstance(DtDe& de,
81 
84  };
85 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)