VR-Forces 4.10 Class Documentation
 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. More...

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

Public Member Functions

virtual void setMinRangeFactor (float min_range_factor)
 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. More...
 
virtual void setObserverObject (DtObserverObject *observer)
 Sets the observer object we used to fly the eyepoint, it's the observer of the channel's master scene camera by default. More...
 
virtual bool handleTile (const osgEarth::TileKey &key, const osgEarth::TileVisitor &tv)
 osgEarth::TileHandler Override More...
 
virtual bool hasData (const osgEarth::TileKey &key) const
 osgEarth::TileHandler Override Always return true since we don't want to miss a potential tile that may have any kind of data. More...
 
virtual void setDatabasePager (osgDB::DatabasePager *databasePager)
 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. More...
 
virtual void reset ()
 Resets flag. More...
 

Protected Member Functions

 DtOsgEarthCacheTileHandler (DtOsgEarthCache *)
 Protected Constructor. More...
 
virtual void moveCameraToTile (const osgEarth::TileKey &key)
 Move the camera to a position that has the tile with given key visible in the frustum. More...
 

Protected Attributes

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

Private Member Functions

 DtOsgEarthCacheTileHandler ()
 Private default constructor not implimented. More...
 
 DtOsgEarthCacheTileHandler (const DtOsgEarthCacheTileHandler &)
 Copy Constructor not implemented – Copy not allowed. More...
 
DtOsgEarthCacheTileHandleroperator= (const DtOsgEarthCacheTileHandler &)
 Assignment Operator not implemented – Copy not allowed. More...
 

Friends

class DtOsgEarthCacheTileHandlerCreator
 

Detailed Description

DtOsgEarthCacheTileHandler.

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

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 Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)