DtOsgEarthCacheTileHandler.
TileHandler used for cache, move the camera from tile to tile to invoke cache.
| makVrv::DtOsgEarthCacheTileHandler::DtOsgEarthCacheTileHandler |
( |
DtOsgEarthCache * |
| ) |
|
|
protected |
| makVrv::DtOsgEarthCacheTileHandler::DtOsgEarthCacheTileHandler |
( |
| ) |
|
|
private |
Private default constructor not implimented.
Copy Constructor not implemented – Copy not allowed.
| 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 |
| 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.
Assignment Operator not implemented – Copy not allowed.
| osg::ref_ptr<osgDB::DatabasePager> makVrv::DtOsgEarthCacheTileHandler::myDatabasePager |
|
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: