VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOsgEarthStreamedFeatureManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 
15 
17 
18 #include <osg/NodeVisitor>
19 
20 namespace osgEarth
21 {
22  namespace Features
23  {
24  class CustomFeatureNode;
25  }
26  class Map;
27  class ModelLayer;
28 }
29 
30 namespace osg
31 {
32  class Node;
33 }
34 
35 namespace makVrv
36 {
37  class DtTerrainPatchObject;
38 
47  {
48  public:
49 
52 
53  protected:
54 
57  friend class DtOsgEarthStreamedFeatureCallback;
58 
60 
65  virtual void processNewFeatures(
66  osgEarth::Features::CustomFeatureNode* featureNode );
67 
71  virtual void slot_customFeatureNodeToBeDeleted(
72  osgEarth::Features::CustomFeatureNode* node );
73 
75 
76  virtual void onDataLoaded(osgEarth::Map* map, osgEarth::ModelLayer* layer,
77  osg::Node* data);
78 
79  protected:
82 
83  // CTOR (protected, only created through creator function)
85 
86  // CTOR (unimplemented default CTOR)
88 
93  virtual void slot_terrainPatchCreated(DtTerrainPatchObject& patch);
94 
95  protected:
98  };
99 
105  {
106  public:
110  {
111  }
112 
115  {
116  }
117 
119  virtual DtStreamedFeatureManager* create( DtDe& de );
120  };
121 
126  class DT_DLL_VRVOSGEARTH DtStreamedFeaturePageVisitor : public osg::NodeVisitor
127  {
128  public:
129  typedef std::list<osgEarth::Features::CustomFeatureNode*> FoundFeatureNodeList;
130 
133 
135  virtual ~DtStreamedFeaturePageVisitor();
136 
137  const FoundFeatureNodeList& foundFeatureNodes();
138 
139  public: // osg::NodeVisitor overrides
140 
141  void apply(osg::Node& node);
142 
143  protected:
144 
145  // List of found CustomFeatureNodes
147  };
148 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)