VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Signals | Public Member Functions | Protected Member Functions | Protected Attributes

DtOsgEarthCacheHandler, using QThread to run the cache process in a separate thread.

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

Signals

void qt_signal_updateProgress (int progress)
 
void qt_signal_cacheFinished ()
 

Public Member Functions

 DtOsgEarthCacheHandler (DtDe &de, DtOsgEarthCacheInterface *myInterface)
 
virtual ~DtOsgEarthCacheHandler ()
 
virtual void run ()
 
virtual void initializeChannel (DtChannel *channel)
 
virtual void setMapNode (osgEarth::MapNode *mapNode)
 
virtual void setLowestLod (int lowestLod)
 
virtual void setHighestLod (int highestLod)
 
virtual void setFlyOver (bool flyOver)
 
virtual void setBound (const osgEarth::Bounds &bound)
 
virtual void setCacheImageLayers (bool val)
 
virtual void setCacheElevationLayers (bool val)
 
virtual void cancelCache ()
 

Protected Member Functions

void connectSignals ()
 
virtual void slot_updateProgress (int progress)
 
virtual void slot_updateProgressText (const std::string &text)
 
virtual void slot_cacheFinished ()
 

Protected Attributes

DtDemyDe
 
DtSignalConnectionManager mySignals
 
DtOsgEarthCacheInterfacemyInterface
 
DtOsgEarthCachemyOsgEarthCache
 

Constructor & Destructor Documentation

makVrv::DtOsgEarthCacheHandler::DtOsgEarthCacheHandler ( DtDe de,
DtOsgEarthCacheInterface myInterface 
)

CTOR.

virtual makVrv::DtOsgEarthCacheHandler::~DtOsgEarthCacheHandler ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtOsgEarthCacheHandler::run ( )
virtual

run function override, all code executed in this function will be in a worker thread.

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

Initialize the channel and associated data with it.

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

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

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

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

Parameters
lowestLodThe lowest lod to generate cache.
virtual void makVrv::DtOsgEarthCacheHandler::setHighestLod ( int  highestLod)
virtual

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

Parameters
highestLodThe highest lod to generate cache.
virtual void makVrv::DtOsgEarthCacheHandler::setFlyOver ( bool  flyOver)
virtual

Use the method of flying over the view point to the interested area to generate all kinds of cache data. Select this if you have feature data that can't be generated using the regular method.

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

Sets the Bound of the cache area.

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

Sets whether cache image layers.

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

Sets whether cache elevation layers.

virtual void makVrv::DtOsgEarthCacheHandler::cancelCache ( )
virtual

Cancels the cache process.

Reimplemented in makVrf::DtVrfOsgEarthCacheHandler.

void makVrv::DtOsgEarthCacheHandler::connectSignals ( )
protected

Connects all the signals.

virtual void makVrv::DtOsgEarthCacheHandler::slot_updateProgress ( int  progress)
protectedvirtual

Slot when the cache progress update.

virtual void makVrv::DtOsgEarthCacheHandler::slot_updateProgressText ( const std::string &  text)
protectedvirtual

Slot when the text of the progress label changed.

virtual void makVrv::DtOsgEarthCacheHandler::slot_cacheFinished ( )
protectedvirtual

Slot when the cache finished.

Reimplemented in makVrf::DtVrfOsgEarthCacheHandler.

void makVrv::DtOsgEarthCacheHandler::qt_signal_updateProgress ( int  progress)
signal

Qt signal to update the propress bar, progree bar has to be updated in the qt main thread.

void makVrv::DtOsgEarthCacheHandler::qt_signal_cacheFinished ( )
signal

Qt signal to indicate the cache is finished.

Member Data Documentation

DtDe& makVrv::DtOsgEarthCacheHandler::myDe
protected
DtSignalConnectionManager makVrv::DtOsgEarthCacheHandler::mySignals
protected
DtOsgEarthCacheInterface* makVrv::DtOsgEarthCacheHandler::myInterface
protected
DtOsgEarthCache* makVrv::DtOsgEarthCacheHandler::myOsgEarthCache
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)