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

DtOsgEarthCache.

DtOsgEarthCache manages the caching of osgEarth tiles. It supports caching using the osgEarth API or flying a camera to the interseted area to invoke the data pager to generate cache.

Classes

class  DtOsgEarthCacheProgressCallback
 

Public Types

enum  Method { API_CACHE, FLY_VIEWPOINT_CACHE }
 

Public Member Functions

virtual ~DtOsgEarthCache ()
 
virtual void setMapNode (osgEarth::MapNode *mapNode)
 
virtual void setLowestLod (int lowestLod)
 
virtual int lowestLod () const
 
virtual void setHighestLod (int highestLod)
 
virtual int highestLod () const
 
virtual void setCacheMethod (Method method)
 
virtual Method cacheMethod () const
 
virtual void setBound (const osgEarth::Bounds &bound)
 
virtual osgEarth::Bounds bound () const
 
virtual void setCacheImageLayers (bool val)
 
virtual void setCacheElevationLayers (bool val)
 
virtual void initializeChannel (DtChannel *channel)
 
virtual void reset ()
 
virtual void startCache ()
 
virtual void apiCache ()
 
virtual void viewPointCache ()
 
virtual void cancelCache ()
 
virtual bool isCanceled ()
 

Public Attributes

boost::signalslib::signal
< void(int)> 
signal_updateProgress
 
boost::signalslib::signal
< void(std::string)> 
signal_updateProgressText
 
boost::signalslib::signal< void()> signal_cacheFinished
 

Protected Member Functions

 DtOsgEarthCache (DtDe &de)
 

Protected Attributes

DtDemyDe
 
Method myCacheMethod
 
osgEarth::Bounds myBound
 
int myLowestLod
 
int myHighestLod
 
osgEarth::MapNode * myMapNode
 
osg::ref_ptr
< osgEarth::Util::TileVisitor > 
myTileVisitor
 
osgEarth::Contrib::CacheSeed * myCacheSeed
 
osg::ref_ptr
< DtOsgEarthCacheProgressCallback
myProgressCallback
 
osg::ref_ptr
< DtOsgEarthCacheTileHandler
myTileHandler
 
bool myCanceled
 
std::string myCurrentProcessingTile
 
bool myCacheImage
 
bool myCacheElevation
 

Private Member Functions

 DtOsgEarthCache ()
 
 DtOsgEarthCache (const DtOsgEarthCache &)
 
DtOsgEarthCacheoperator= (const DtOsgEarthCache &)
 

Friends

class DtOsgEarthCacheCreator
 
class DtWidgetProgressCallback
 

Member Enumeration Documentation

Enumerator
API_CACHE 
FLY_VIEWPOINT_CACHE 

Constructor & Destructor Documentation

virtual makVrv::DtOsgEarthCache::~DtOsgEarthCache ( )
virtual

DTOR.

makVrv::DtOsgEarthCache::DtOsgEarthCache ( )
private

Private default constructor not implimented.

makVrv::DtOsgEarthCache::DtOsgEarthCache ( const DtOsgEarthCache )
private

Copy Constructor not implemented – Copy not allowed.

makVrv::DtOsgEarthCache::DtOsgEarthCache ( DtDe de)
protected

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

Member Function Documentation

virtual void makVrv::DtOsgEarthCache::setMapNode ( osgEarth::MapNode *  mapNode)
virtual

Setw the MapNode that forms the root of an osgEarth map.

virtual void makVrv::DtOsgEarthCache::setLowestLod ( int  lowestLod)
virtual

Sets the lowest lod to cache, only the tiles with a higher lod will be cached.

The lowest lod to generate cache.

virtual int makVrv::DtOsgEarthCache::lowestLod ( ) const
virtual

Gets the lowest lod to cache, only the tiles with a higher lod will be cached.

The lowest lod to generate cache.

virtual void makVrv::DtOsgEarthCache::setHighestLod ( int  highestLod)
virtual

Sets the highest lod to cache, only the tiles with a higher lod will be cached.

The highest lod to generate cache.

virtual int makVrv::DtOsgEarthCache::highestLod ( ) const
virtual

Gets the highest lod to cache, only the tiles with a higher lod will be cached.

The highest lod to generate cache.

virtual void makVrv::DtOsgEarthCache::setCacheMethod ( Method  method)
virtual

Sets the cache method to generate the cache.

virtual Method makVrv::DtOsgEarthCache::cacheMethod ( ) const
virtual

Gets the cache method to generate the cache.

virtual void makVrv::DtOsgEarthCache::setBound ( const osgEarth::Bounds &  bound)
virtual

Sets the Bound of the cache area.

virtual osgEarth::Bounds makVrv::DtOsgEarthCache::bound ( ) const
virtual

Gets the Bound of the cache area.

virtual void makVrv::DtOsgEarthCache::setCacheImageLayers ( bool  val)
virtual

Sets whether skip the caching of the image layers.

Parameters
skipif true, it will skip caching image layers.
virtual void makVrv::DtOsgEarthCache::setCacheElevationLayers ( bool  val)
virtual

Sets whether cache elevation layers.

virtual void makVrv::DtOsgEarthCache::initializeChannel ( DtChannel channel)
virtual

Sets the observer object we used to fly the eyepoint, it's the observer of the channel's master scene camera by default. Sets the databasePager that handles the paging of the tiles. It's used to determine if we have finish paged everything in this tile before we move to next tile. This is only used in FLY_VIEWPOINT_CACHE method.

virtual void makVrv::DtOsgEarthCache::reset ( )
virtual

Resets the data from the previous operation.

virtual void makVrv::DtOsgEarthCache::startCache ( )
virtual

Starts the cache.

virtual void makVrv::DtOsgEarthCache::apiCache ( )
virtual

Cache the terrain using the osgEarth api.

virtual void makVrv::DtOsgEarthCache::viewPointCache ( )
virtual

Cache the terrain by moving the view point.

virtual void makVrv::DtOsgEarthCache::cancelCache ( )
virtual

Forces the cache to cancel.

virtual bool makVrv::DtOsgEarthCache::isCanceled ( )
virtual

Gets whether the cache is canceled.

Returns
return true if cache is canceled,otherwise return false
DtOsgEarthCache& makVrv::DtOsgEarthCache::operator= ( const DtOsgEarthCache )
private

Assignment Operator not implemented – Copy not allowed.

Friends And Related Function Documentation

friend class DtOsgEarthCacheCreator
friend
friend class DtWidgetProgressCallback
friend

Member Data Documentation

boost::signalslib::signal<void(int)> makVrv::DtOsgEarthCache::signal_updateProgress

Signal to emit to update the cache progress.

boost::signalslib::signal<void(std::string)> makVrv::DtOsgEarthCache::signal_updateProgressText

Signal to emit to update the current progess text to be displayed.

boost::signalslib::signal<void()> makVrv::DtOsgEarthCache::signal_cacheFinished

Signal to emit when cache finished.

DtDe& makVrv::DtOsgEarthCache::myDe
protected
Method makVrv::DtOsgEarthCache::myCacheMethod
protected
osgEarth::Bounds makVrv::DtOsgEarthCache::myBound
protected
int makVrv::DtOsgEarthCache::myLowestLod
protected
int makVrv::DtOsgEarthCache::myHighestLod
protected
osgEarth::MapNode* makVrv::DtOsgEarthCache::myMapNode
protected
osg::ref_ptr<osgEarth::Util::TileVisitor> makVrv::DtOsgEarthCache::myTileVisitor
protected
osgEarth::Contrib::CacheSeed* makVrv::DtOsgEarthCache::myCacheSeed
protected
osg::ref_ptr<DtOsgEarthCacheProgressCallback> makVrv::DtOsgEarthCache::myProgressCallback
protected
osg::ref_ptr<DtOsgEarthCacheTileHandler> makVrv::DtOsgEarthCache::myTileHandler
protected
bool makVrv::DtOsgEarthCache::myCanceled
protected
std::string makVrv::DtOsgEarthCache::myCurrentProcessingTile
protected
bool makVrv::DtOsgEarthCache::myCacheImage
protected
bool makVrv::DtOsgEarthCache::myCacheElevation
protected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)