VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends
makVrv::DtOsgEarthCacheTileHandler Class Reference

DtOsgEarthCacheTileHandler.

TileHandler used for cache, move the camera from tile to tile to invoke cache.

Inheritance diagram for makVrv::DtOsgEarthCacheTileHandler:
Inheritance graph
[legend]

Public Member Functions

virtual void setMinRangeFactor (float min_range_factor)
 
virtual void setObserverObject (DtObserverObject *observer)
 
virtual bool handleTile (const osgEarth::TileKey &key, const osgEarth::TileVisitor &tv)
 
virtual bool hasData (const osgEarth::TileKey &key) const
 
virtual void setDatabasePager (osgDB::DatabasePager *databasePager)
 
virtual void reset ()
 

Protected Member Functions

 DtOsgEarthCacheTileHandler (DtOsgEarthCache *)
 
virtual void moveCameraToTile (const osgEarth::TileKey &key)
 

Protected Attributes

DtObserverObjectmyObserverObject
 
osg::ref_ptr
< osgDB::DatabasePager > 
myDatabasePager
 
DtOsgEarthCachemyOsgEarthCache
 
float myMinRangeFactor
 
bool myFirstTile
 
int myTotalTiles
 
float myWaitTime
 

Private Member Functions

 DtOsgEarthCacheTileHandler ()
 
 DtOsgEarthCacheTileHandler (const DtOsgEarthCacheTileHandler &)
 
DtOsgEarthCacheTileHandleroperator= (const DtOsgEarthCacheTileHandler &)
 

Friends

class DtOsgEarthCacheTileHandlerCreator
 

Constructor & Destructor Documentation

makVrv::DtOsgEarthCacheTileHandler::DtOsgEarthCacheTileHandler ( DtOsgEarthCache )
protected

Protected Constructor. Use DtOsgEarthCacheTileHandlerCreator to create instances of this class.

makVrv::DtOsgEarthCacheTileHandler::DtOsgEarthCacheTileHandler ( )
private

Private default constructor not implimented.

makVrv::DtOsgEarthCacheTileHandler::DtOsgEarthCacheTileHandler ( const DtOsgEarthCacheTileHandler )
private

Copy Constructor not implemented – Copy not allowed.

Member Function Documentation

virtual void makVrv::DtOsgEarthCacheTileHandler::setMinRangeFactor ( float  min_range_factor)
virtual

Sets the min_range_factor that determines how close you need to be to a terrain tile for it to display.The value is the ratio of a tile's extent to its visible range. For example, if a tile has a 10km radius, and the factor = 7(default), then the tile will become visible at a range of about 70km.

virtual void makVrv::DtOsgEarthCacheTileHandler::setObserverObject ( DtObserverObject observer)
virtual

Sets the observer object we used to fly the eyepoint, it's the observer of the channel's master scene camera by default.

virtual bool makVrv::DtOsgEarthCacheTileHandler::handleTile ( const osgEarth::TileKey &  key,
const osgEarth::TileVisitor &  tv 
)
virtual

osgEarth::TileHandler Override

virtual bool makVrv::DtOsgEarthCacheTileHandler::hasData ( const osgEarth::TileKey &  key) const
virtual

osgEarth::TileHandler Override Always return true since we don't want to miss a potential tile that may have any kind of data.

virtual void makVrv::DtOsgEarthCacheTileHandler::setDatabasePager ( osgDB::DatabasePager *  databasePager)
virtual

Sets the databasePager of the current scene, we use it to determine if we have finished paging everything in this tile before before we move to next tile.

virtual void makVrv::DtOsgEarthCacheTileHandler::reset ( )
virtual

Resets flag.

virtual void makVrv::DtOsgEarthCacheTileHandler::moveCameraToTile ( const osgEarth::TileKey &  key)
protectedvirtual

Move the camera to a position that has the tile with given key visible in the frustum.

DtOsgEarthCacheTileHandler& makVrv::DtOsgEarthCacheTileHandler::operator= ( const DtOsgEarthCacheTileHandler )
private

Assignment Operator not implemented – Copy not allowed.

Friends And Related Function Documentation

friend class DtOsgEarthCacheTileHandlerCreator
friend

Member Data Documentation

DtObserverObject* makVrv::DtOsgEarthCacheTileHandler::myObserverObject
protected
osg::ref_ptr<osgDB::DatabasePager> makVrv::DtOsgEarthCacheTileHandler::myDatabasePager
protected
DtOsgEarthCache* makVrv::DtOsgEarthCacheTileHandler::myOsgEarthCache
protected
float makVrv::DtOsgEarthCacheTileHandler::myMinRangeFactor
protected
bool makVrv::DtOsgEarthCacheTileHandler::myFirstTile
protected
int makVrv::DtOsgEarthCacheTileHandler::myTotalTiles
protected
float makVrv::DtOsgEarthCacheTileHandler::myWaitTime
protected

The documentation for this class was generated from the following file:

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)