VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
makVrv::DtOsgEarthCacheProgressCallback Class Reference

DtOsgEarthCacheProgressCallback,add support for model layer. More...

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

Public Member Functions

 DtOsgEarthCacheProgressCallback (DtOsgEarthCache *osgEarthCache)
 CTOR.
virtual ~DtOsgEarthCacheProgressCallback ()
 DTOR.
DtUnicode currentProcessingLayerName ()
 Gets the name of the current processing layer.
void setCurrentLayName (const DtUnicode &name)
 Sets the name of the current processing layer.
void startCacheModelLayer (int tiles, const DtUnicode &name)
 call this fucntion before starting caching the model layer
void reset ()
 Reset.
void increaseModelLayerProgress ()
 Increases the progress by 1, only work internally for cache model layer.
virtual bool reportProgress (double current, double total, unsigned currentStage, unsigned totalStages, const std::string &msg)
 Reports the progress.

Public Attributes

DtOsgEarthCachemyOsgEarthCache
DtUnicode myCurrentProcessingLayerName
int myCurrentProgress
bool myUpdateModelLayer
int myModelLayerTotalTiles
OpenThreads::Mutex myProgressMutex

Detailed Description

DtOsgEarthCacheProgressCallback,add support for model layer.

Constructor & Destructor Documentation

makVrv::DtOsgEarthCacheProgressCallback::DtOsgEarthCacheProgressCallback ( DtOsgEarthCache osgEarthCache)

CTOR.

virtual makVrv::DtOsgEarthCacheProgressCallback::~DtOsgEarthCacheProgressCallback ( )
virtual

DTOR.

Member Function Documentation

DtUnicode makVrv::DtOsgEarthCacheProgressCallback::currentProcessingLayerName ( )

Gets the name of the current processing layer.

void makVrv::DtOsgEarthCacheProgressCallback::setCurrentLayName ( const DtUnicode name)

Sets the name of the current processing layer.

void makVrv::DtOsgEarthCacheProgressCallback::startCacheModelLayer ( int  tiles,
const DtUnicode name 
)

call this fucntion before starting caching the model layer

Parameters
tilesthe total number of tiles in model layer
namethe name of the model layer
void makVrv::DtOsgEarthCacheProgressCallback::reset ( )

Reset.

void makVrv::DtOsgEarthCacheProgressCallback::increaseModelLayerProgress ( )

Increases the progress by 1, only work internally for cache model layer.

virtual bool makVrv::DtOsgEarthCacheProgressCallback::reportProgress ( double  current,
double  total,
unsigned  currentStage,
unsigned  totalStages,
const std::string &  msg 
)
virtual

Reports the progress.

Parameters
currentThe current progress
totalThe total amount of work
currentStageThe current stage
totalStagesThe total stages
msgThe message send to the progressCallback if necessary
Returns
bool if true, the cache will be cancled internally

Member Data Documentation

DtOsgEarthCache* makVrv::DtOsgEarthCacheProgressCallback::myOsgEarthCache
DtUnicode makVrv::DtOsgEarthCacheProgressCallback::myCurrentProcessingLayerName
int makVrv::DtOsgEarthCacheProgressCallback::myCurrentProgress
bool makVrv::DtOsgEarthCacheProgressCallback::myUpdateModelLayer
int makVrv::DtOsgEarthCacheProgressCallback::myModelLayerTotalTiles
OpenThreads::Mutex makVrv::DtOsgEarthCacheProgressCallback::myProgressMutex

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)