VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | 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 Member Functions

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 setBound (const osgEarth::Bounds &bound)
 
virtual osgEarth::Bounds bound () const
 
virtual void setCacheImageLayers (bool val)
 
virtual void setCacheElevationLayers (bool val)
 
virtual void reset ()
 
virtual void startCache ()
 
virtual void apiCache ()
 
virtual void cancelCache ()
 
virtual bool isCanceled ()
 
virtual ~DtOsgEarthCache ()
 

Public Attributes

boost::signalslib::signal
< void(double, double)> 
signal_updateProgress
 
boost::signalslib::signal
< void(std::string)> 
signal_updateProgressText
 
boost::signalslib::signal
< void(bool)> 
signal_cacheFinished
 

Protected Member Functions

 DtOsgEarthCache (DtDe &de)
 

Protected Attributes

DtDemyDe
 
osgEarth::Bounds myBound
 
int myLowestLod
 
int myHighestLod
 
osgEarth::MapNode * myMapNode
 
osg::ref_ptr
< DtOsgEarthCacheProgressCallback
myProgressCallback
 
bool myCanceled
 
bool myCacheImage
 
bool myCacheElevation
 

Private Member Functions

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

Friends

class DtOsgEarthCacheCreator
 
class DtWidgetProgressCallback
 

Constructor & Destructor Documentation

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

Destructor.

makVrv::DtOsgEarthCache::DtOsgEarthCache ( )
privatedelete

Private default constructor not implimented.

makVrv::DtOsgEarthCache::DtOsgEarthCache ( const DtOsgEarthCache )
privatedelete

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::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::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::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 )
privatedelete

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(double,double)> 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(bool)> makVrv::DtOsgEarthCache::signal_cacheFinished

Signal to emit when cache finished.

DtDe& makVrv::DtOsgEarthCache::myDe
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<DtOsgEarthCacheProgressCallback> makVrv::DtOsgEarthCache::myProgressCallback
protected
bool makVrv::DtOsgEarthCache::myCanceled
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 Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)