![]() |
VR-Forces 4.5 Class Documentation
|
DtOsgEarthCacheHandler, using QThread to run in a separate thread. More...

Classes | |
| class | CacheArea |
| class | VertexInfo |
Signals | |
| void | QtSignal_updateProgress (int progress) |
| Qt signal to emit the cache progress. | |
| void | QtSignal_cacheFinished () |
| Qt signal to emit when the cache finished. | |
Public Member Functions | |
| virtual | ~DtOsgEarthCacheHandler () |
| CTOR. | |
| virtual bool | isFinished () |
| whether cache is finished. | |
| virtual bool | isCanceled () |
| whether cache is canceled. | |
| virtual void | run () |
| Reimplement run() function to use the QThread,all code executed in this function will be in a worker thread. | |
| 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 (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 | |
| DtOsgEarthCacheEditingEventProcessor * | getEventProcessor () |
| get the event processor | |
| DtOsgEarthCacheInterface * | getOsgEarthCacheInterface () |
| get the DtOsgEarthCache interface | |
| virtual void | onGenerateCacheButtonClicked () |
| Functions called by the DtOsgEarthCacheLogic. | |
| virtual void | onSelectOsgEarthChanged (const std::string &file) |
| virtual void | onSpecifyCacheAreaCheckBoxChanged (int checked) |
| virtual void | onEstimateMessageBoxResult (int result) |
| 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 | onCancelButtonClicked () |
| virtual void | onCacheFinished () |
| virtual void | onCacheFinishedMessageBoxResult (int result) |
Protected Member Functions | |
| 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 (DtVector geocentricPos) |
| slot when the user place the vertex, emit by the signal in the event processor | |
| virtual void | slot_locationChanged (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 | |
| DtDe & | myDe |
| DtCameraNode * | myCameraNode |
| need keep this to cast the geocentric coordinate back to screen space | |
| DtOsgEarthCacheInterface * | myInterface |
| DtSignalConnectionManager | mySignals |
| DtOsgEarthCache * | myOsgEarthCache |
| DtChannel * | myChannel |
| the channel we drag area on | |
| CacheArea | myCacheArea |
| osgEarth::MapNode * | myMapNode |
| DtOsgEarthCacheEditingEventProcessor * | myEventProcessor |
| bool | mySpecifyArea |
| if you dont select an area, the whole terrain is cached | |
| bool | myChannelInitialized |
| int | myLowestLOD |
| int | myHighestLOD |
| double | myEstimateTime |
| double | myEstimateSize |
Friends | |
| class | DtOsgEarthCacheHandlerCreator |
DtOsgEarthCacheHandler, using QThread to run in a separate thread.
|
virtual |
CTOR.
|
protected |
Protected Constructor.
Use DtOsgEarthCacheHandlerCreator to create instances of this class
|
virtual |
Functions called by the DtOsgEarthCacheLogic.
Reimplemented in makVrf::DtVrfOsgEarthCacheHandler.
|
virtual |
|
virtual |
|
virtual |
Reimplemented in makVrf::DtVrfOsgEarthCacheHandler.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in makVrf::DtVrfOsgEarthCacheHandler.
|
virtual |
Reimplemented in makVrf::DtVrfOsgEarthCacheHandler.
|
virtual |
|
virtual |
whether cache is finished.
|
virtual |
whether cache is canceled.
|
signal |
Qt signal to emit the cache progress.
|
signal |
Qt signal to emit when the cache finished.
|
virtual |
|
virtual |
initializ,create the event processor etc
|
virtual |
Set the MapNode that forms the root of an osgEarth map.
|
virtual |
Sets the lowest LOD to cache,only applies for image and elevation layers.
|
virtual |
Sets the maximum LOD to cache,only applies for image and elevation layers.
|
virtual |
Sets the Bound of the selected area.
|
virtual |
Gets the estimation info string of cache.
|
virtual |
Clean up.
| name | checkSpecifyCacheCheckBox whether check the Specify Check Box . |
| name | deleteAll,if true,it will delete the actual geometry data ,otherwise just hide the polygon. |
Reimplemented in makVrf::DtVrfOsgEarthCacheHandler.
|
virtual |
Gets the correct bound,the bound need correct min/max vertex.
|
virtual |
get the world to window matrix
| DtOsgEarthCacheEditingEventProcessor* makVrv::DtOsgEarthCacheHandler::getEventProcessor | ( | ) |
get the event processor
| DtOsgEarthCacheInterface* makVrv::DtOsgEarthCacheHandler::getOsgEarthCacheInterface | ( | ) |
get the DtOsgEarthCache interface
|
protectedvirtual |
initialize the channel and render
|
protectedvirtual |
update the rectangle if it is dirty
|
protectedvirtual |
slot when the user place the vertex, emit by the signal in the event processor
| name | geocentricPos the geocentric pos passed by the event processor |
|
protectedvirtual |
slot when the user move the mouse, emit by the signal in the event processor
| name | geocentricPos the geocentric pos passed by the event processor |
|
protectedvirtual |
slot when the user drag the vertex of the rectangle, emit by the signal in the event processor
|
protectedvirtual |
slot when the window got destroyed
|
protectedvirtual |
slot when the channel got destroyed
|
protectedvirtual |
slot when update the cache progress
| progress | the cache progress of the current layer(0-100) |
|
protectedvirtual |
slot when cache finished
|
protectedvirtual |
connect all the signals
|
protectedvirtual |
disconnect all the signals
|
protectedvirtual |
Formats the estimate time and space.
|
friend |
|
protected |
|
protected |
need keep this to cast the geocentric coordinate back to screen space
|
protected |
|
protected |
|
protected |
|
protected |
the channel we drag area on
|
protected |
|
protected |
|
protected |
|
protected |
if you dont select an area, the whole terrain is cached
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |