VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgEarthCacheTileHandler.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
11 #include <osgEarth/TileHandler>
13 
14 
15 // Class Forward Declarations
16 namespace osgEarth
17 {
18  class TileKey;
19  namespace Util {
20  class TileVisitor;
21  }
22 }
23 
24 namespace osgDB
25 {
26  class DatabasePager;
27 }
28 
29 namespace makVrv
30 {
31  class DtOsgEarthCache;
32  class DtObserverObject;
33 
37  class DT_DLL_VRVOSGEARTH DtOsgEarthCacheTileHandler : public osgEarth::TileHandler
38  {
39  public:
40 
42 
47  virtual void setMinRangeFactor(float min_range_factor);
48 
51  virtual void setObserverObject(DtObserverObject* observer);
52 
54  virtual bool handleTile(const osgEarth::TileKey& key, const osgEarth::TileVisitor& tv);
55 
58  virtual bool hasData(const osgEarth::TileKey& key) const;
59 
62  virtual void setDatabasePager(osgDB::DatabasePager* databasePager);
63 
65  virtual void reset();
66 
67  protected:
72  virtual void moveCameraToTile(const osgEarth::TileKey& key);
73 
74  private:
81 
82  protected:
89  float myWaitTime;
90  };
91 
95  : public DtVirtualBaseClass
96  {
97  public:
98  static DtOsgEarthCacheTileHandlerCreator& instance(DtDe& de);
99  static void registerInstance(DtDe& de, DtOsgEarthCacheTileHandlerCreator* creator);
100  virtual DtOsgEarthCacheTileHandler* create(DtOsgEarthCache*) const;
101  };
102 }
int myTotalTiles
Definition: DtOsgEarthCacheTileHandler.h:88
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
bool myFirstTile
Definition: DtOsgEarthCacheTileHandler.h:87
#define DT_DLL_VRVOSGEARTH
Definition: vrvOsgEarth.h:21
DtOsgEarthCache.
Definition: DtOsgEarthCache.h:36
float myWaitTime
Definition: DtOsgEarthCacheTileHandler.h:89
Contains makVrv::DtVirtualBaseClass class.
DtOsgEarthCacheTileHandler.
Definition: DtOsgEarthCacheTileHandler.h:37
This abstract base class defines the interface for OS-specific keyboard and mouse event listeners...
Definition: DtObserverObject.h:35
osg::ref_ptr< osgDB::DatabasePager > myDatabasePager
Definition: DtOsgEarthCacheTileHandler.h:84
float myMinRangeFactor
Definition: DtOsgEarthCacheTileHandler.h:86
DtObserverObject * myObserverObject
Definition: DtOsgEarthCacheTileHandler.h:83
DtOsgEarthCache * myOsgEarthCache
Definition: DtOsgEarthCacheTileHandler.h:85
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
Contains DLL export macros.
Creator for the DtOsgEarthCacheTileHandler.
Definition: DtOsgEarthCacheTileHandler.h:94

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)