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

Classes

class  DtOsgEarthCacheProgressCallback
 DtOsgEarthCacheProgressCallback, used to update the cache progress in the progress bar. More...
 

Public Types

enum  Method { API_CACHE, FLY_VIEWPOINT_CACHE }
 

Public Member Functions

virtual ~DtOsgEarthCache ()
 DTOR. More...
 
virtual void setMapNode (osgEarth::MapNode *mapNode)
 Setw the MapNode that forms the root of an osgEarth map. More...
 
virtual void setLowestLod (int lowestLod)
 Sets the lowest lod to cache, only the tiles with a higher lod will be cached. More...
 
virtual int lowestLod () const
 Gets the lowest lod to cache, only the tiles with a higher lod will be cached. More...
 
virtual void setHighestLod (int highestLod)
 Sets the highest lod to cache, only the tiles with a higher lod will be cached. More...
 
virtual int highestLod () const
 Gets the highest lod to cache, only the tiles with a higher lod will be cached. More...
 
virtual void setCacheMethod (Method method)
 Sets the cache method to generate the cache. More...
 
virtual Method cacheMethod () const
 Gets the cache method to generate the cache. More...
 
virtual void setBound (const osgEarth::Bounds &bound)
 Sets the Bound of the cache area. More...
 
virtual osgEarth::Bounds bound () const
 Gets the Bound of the cache area. More...
 
virtual void setCacheImageLayers (bool val)
 Sets whether skip the caching of the image layers. More...
 
virtual void setCacheElevationLayers (bool val)
 Sets whether cache elevation layers. More...
 
virtual void initializeChannel (DtChannel *channel)
 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 void reset ()
 Resets the data from the previous operation. More...
 
virtual void startCache ()
 Starts the cache. More...
 
virtual void apiCache ()
 Cache the terrain using the osgEarth api. More...
 
virtual void viewPointCache ()
 Cache the terrain by moving the view point. More...
 
virtual void cancelCache ()
 Forces the cache to cancel. More...
 
virtual bool isCanceled ()
 Gets whether the cache is canceled. More...
 

Public Attributes

boost::signalslib::signal
< void(int)> 
signal_updateProgress
 Signal to emit to update the cache progress. More...
 
boost::signalslib::signal
< void(std::string)> 
signal_updateProgressText
 Signal to emit to update the current progess text to be displayed. More...
 
boost::signalslib::signal< void()> signal_cacheFinished
 Signal to emit when cache finished. More...
 

Protected Member Functions

 DtOsgEarthCache (DtDe &de)
 Protected Constructor. More...
 

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 ()
 Private default constructor not implimented. More...
 
 DtOsgEarthCache (const DtOsgEarthCache &)
 Copy Constructor not implemented – Copy not allowed. More...
 
DtOsgEarthCacheoperator= (const DtOsgEarthCache &)
 Assignment Operator not implemented – Copy not allowed. More...
 

Friends

class DtOsgEarthCacheCreator
 
class DtWidgetProgressCallback
 

Detailed Description

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.

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