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 | Protected Types | Protected Member Functions | Protected Attributes
makVrf::DtVrfOsgEarthCacheHandler Class Reference

Override to send message to back-end with bounds information to cache on the back-ends. More...

Inheritance diagram for makVrf::DtVrfOsgEarthCacheHandler:
Inheritance graph
[legend]

Public Member Functions

 DtVrfOsgEarthCacheHandler (makVrv::DtDe &de, makVrv::DtOsgEarthCacheInterface *iFace)
 CTOR.
virtual ~DtVrfOsgEarthCacheHandler ()
 DTOR.
- Public Member Functions inherited from makVrv::DtOsgEarthCacheHandler
virtual ~DtOsgEarthCacheHandler ()
 CTOR.
virtual bool isFinished ()
 whether cache is finished.
virtual bool isCanceled ()
 whether cache is canceled.
virtual void initialize ()
 initializ,create the event processor etc
virtual void setMapNode (osgEarth::MapNode *mapNode)
 Set the MapNode that forms the root of an osgEarth map.
virtual void setLowestLOD (int lowestLevel)
 Sets the lowest LOD to cache,only applies for image and elevation layers.
virtual void setHighestLOD (int highestLevel)
 Sets the maximum LOD to cache,only applies for image and elevation layers.
virtual void setBound (const osgEarth::Bounds &bound)
 Sets the Bound of the selected area.
virtual std::string getEstimateInfo ()
 Gets the estimation info string of cache.
virtual void cleanup (bool checkSpecifyCacheCheckBox, bool deleteAll=false)
 Clean up.
virtual osgEarth::Bounds getCorrectBound ()
 Gets the correct bound,the bound need correct min/max vertex.
virtual osg::Matrix getWorldToWindowMatirx ()
 get the world to window matrix
DtOsgEarthCacheEditingEventProcessorgetEventProcessor ()
 get the event processor
DtOsgEarthCacheInterfacegetOsgEarthCacheInterface ()
 get the DtOsgEarthCache interface
virtual void onSelectOsgEarthChanged (const std::string &file)
virtual void onSpecifyCacheAreaCheckBoxChanged (int checked)
virtual void onProgressUpdate (int progress)
virtual void onCleanup ()
virtual void onClearAreaButtonClicked ()
virtual void onStartLongitudeChanged (double value, bool isFromSlider)
virtual void onStartLatitudeChanged (double value, bool isFromSlider)
virtual void onEndLongitudeChanged (double value, bool isFromSlider)
virtual void onEndLatitudeChanged (double value, bool isFromSlider)
virtual void onLowestLODChanged (int lowLOD)
virtual void onHighestLODChanged (int highLOD)
virtual void onCacheFinishedMessageBoxResult (int result)

Protected Types

typedef std::map< std::string,
int
ActiveServers

Protected Member Functions

virtual void onGenerateCacheButtonClicked ()
 Before displaying, also request information from the back-ends to get the cache info there.
virtual void onEstimateMessageBoxResult (int result)
 Called when the user selects the result of the estimate dialog. Also send messages to back-end.
virtual void onCancelButtonClicked ()
 Called when cancelling operation – send message to back-ends to also cancel.
virtual void fillInCacheRequest (DtIfOsgEarthCacheRequest &req)
virtual void processOsgEarthCacheInformation (DtSimMessage *msg)
virtual void processOsgEarthCacheProgress (DtSimMessage *msg)
virtual std::string getOsgEarthEstimateInfo (const DtIfOsgEarthCacheInformation &)
virtual void onCacheFinished ()
virtual void run ()
 Reimplement run() function to use the QThread,all code executed in this function will be in a worker thread.
- Protected Member Functions inherited from makVrv::DtOsgEarthCacheHandler
 DtOsgEarthCacheHandler (DtDe &de, DtOsgEarthCacheInterface *iFace)
 Protected Constructor.
virtual void initializeChannel ()
 initialize the channel and render
virtual void slot_postTick ()
 update the rectangle if it is dirty
virtual void slot_place (const DtVector &geocentricPos)
 slot when the user place the vertex, emit by the signal in the event processor
virtual void slot_locationChanged (const DtVector &geocentricPos)
 slot when the user move the mouse, emit by the signal in the event processor
virtual void slot_drag ()
 slot when the user drag the vertex of the rectangle, emit by the signal in the event processor
virtual void slot_windowToBeDestroyed (DtWindow *window)
 slot when the window got destroyed
virtual void slot_channelToBeDestroyed (const std::string &display, const std::string &window, const std::string &channel)
 slot when the channel got destroyed
virtual void slot_updateProgress (int progress)
 slot when update the cache progress
virtual void slot_cacheFinished ()
 slot when cache finished
virtual void connectSignals ()
 connect all the signals
virtual void disconnectSignals ()
 disconnect all the signals
virtual std::string formatEstimateTimeandSpace (double estimateTime, double estimateSize)
 Formats the estimate time and space.

Protected Attributes

int myRequestId
std::set< std::string > myWaitingForInformation
DtIfOsgEarthCacheInformation myCacheInformation
bool myFrontEndFinished
bool myBackEndFinished
ActiveServers myActiveServers
- Protected Attributes inherited from makVrv::DtOsgEarthCacheHandler
DtDemyDe
DtCameraNodemyCameraNode
 need keep this to cast the geocentric coordinate back to screen space
DtOsgEarthCacheInterfacemyInterface
DtSignalConnectionManager mySignals
DtOsgEarthCachemyOsgEarthCache
DtChannelmyChannel
 the channel we drag area on
CacheArea myCacheArea
osgEarth::MapNode * myMapNode
DtOsgEarthCacheEditingEventProcessormyEventProcessor
bool mySpecifyArea
 if you dont select an area, the whole terrain is cached
bool myChannelInitialized
int myLowestLOD
int myHighestLOD
double myEstimateTime
double myEstimateSize

Additional Inherited Members

- Signals inherited from makVrv::DtOsgEarthCacheHandler
void QtSignal_updateProgress (int progress)
 Qt signal to emit the cache progress.
void QtSignal_cacheFinished ()
 Qt signal to emit when the cache finished.

Detailed Description

Override to send message to back-end with bounds information to cache on the back-ends.

Member Typedef Documentation

typedef std::map<std::string, int> makVrf::DtVrfOsgEarthCacheHandler::ActiveServers
protected

Constructor & Destructor Documentation

makVrf::DtVrfOsgEarthCacheHandler::DtVrfOsgEarthCacheHandler ( makVrv::DtDe de,
makVrv::DtOsgEarthCacheInterface iFace 
)

CTOR.

virtual makVrf::DtVrfOsgEarthCacheHandler::~DtVrfOsgEarthCacheHandler ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrf::DtVrfOsgEarthCacheHandler::onGenerateCacheButtonClicked ( )
protectedvirtual

Before displaying, also request information from the back-ends to get the cache info there.

Reimplemented from makVrv::DtOsgEarthCacheHandler.

virtual void makVrf::DtVrfOsgEarthCacheHandler::onEstimateMessageBoxResult ( int  result)
protectedvirtual

Called when the user selects the result of the estimate dialog. Also send messages to back-end.

Reimplemented from makVrv::DtOsgEarthCacheHandler.

virtual void makVrf::DtVrfOsgEarthCacheHandler::onCancelButtonClicked ( )
protectedvirtual

Called when cancelling operation – send message to back-ends to also cancel.

Reimplemented from makVrv::DtOsgEarthCacheHandler.

virtual void makVrf::DtVrfOsgEarthCacheHandler::fillInCacheRequest ( DtIfOsgEarthCacheRequest req)
protectedvirtual
virtual void makVrf::DtVrfOsgEarthCacheHandler::processOsgEarthCacheInformation ( DtSimMessage msg)
protectedvirtual
virtual void makVrf::DtVrfOsgEarthCacheHandler::processOsgEarthCacheProgress ( DtSimMessage msg)
protectedvirtual
virtual std::string makVrf::DtVrfOsgEarthCacheHandler::getOsgEarthEstimateInfo ( const DtIfOsgEarthCacheInformation )
protectedvirtual
virtual void makVrf::DtVrfOsgEarthCacheHandler::onCacheFinished ( )
protectedvirtual

Reimplemented from makVrv::DtOsgEarthCacheHandler.

virtual void makVrf::DtVrfOsgEarthCacheHandler::run ( )
protectedvirtual

Reimplement run() function to use the QThread,all code executed in this function will be in a worker thread.

Reimplemented from makVrv::DtOsgEarthCacheHandler.

Member Data Documentation

int makVrf::DtVrfOsgEarthCacheHandler::myRequestId
protected
std::set<std::string> makVrf::DtVrfOsgEarthCacheHandler::myWaitingForInformation
protected
DtIfOsgEarthCacheInformation makVrf::DtVrfOsgEarthCacheHandler::myCacheInformation
protected
bool makVrf::DtVrfOsgEarthCacheHandler::myFrontEndFinished
protected
bool makVrf::DtVrfOsgEarthCacheHandler::myBackEndFinished
protected
ActiveServers makVrf::DtVrfOsgEarthCacheHandler::myActiveServers
protected

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)