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

Classes

struct  PendingIntersection
 If there are intersections pending this is the intersection that is pending, including the original request, current data available and the responses awaiting data. More...
struct  Record

Public Member Functions

 DtSimTerrainRequestManager (DtSimManager *mgr)
virtual ~DtSimTerrainRequestManager ()
virtual void init ()
virtual void tick ()
virtual void process (const DtIfComputeRoute &msg, const DtSimulationAddress &from)
virtual void setIntersectionRecheckPeriod (double)
 The recheck period for checking pending intersection requests. Default is .5 seconds.
double intersectionRecheckPeriod () const
virtual void setVectorFeatureLookup (const DtString &)
 Sets the lookup to use for vector features when looking for soil type. Default is MAK_SOIL_TYPE.
const DtStringvectorFeatureLookup () const
virtual void terrainClosed ()
 Called when the current terrain is closed – clear out pending requests.

Static Public Member Functions

static DtSimTerrainRequestManagercreate (DtSimManager *)

Protected Types

typedef boost::shared_ptr
< DtAsyncJobMapEntry
EntryPtr
typedef std::list< RecordRecords
typedef std::vector
< PendingIntersection
PendingIntersectionRequest
typedef std::map< int,
DtIfOsgEarthCacheProgress
OsgEarthProgressReports

Protected Member Functions

virtual void processIntersectionRequest (DtIfRequestIntersectionInformation *)
virtual bool processPendingIntersection (PendingIntersection &)
 Processes a pending intersection. If all results are discovered sends off result. If not sent returns false.
virtual void processOsgEarthCacheRequest (DtIfOsgEarthCacheRequest *)
virtual void processOsgEarthCacheInformationRequest (DtIfOsgEarthCacheInformationRequest *)
virtual void processOsgEarthCacheCancelRequest (DtIfOsgEarthCacheCancelRequest *)
virtual void processCacheProgress (int reqeustId, int current, bool completed, const DtString &layer, double elapsedTime)
bool processRecord (const Record &)

Static Protected Member Functions

static void intersectionRequestCallback (DtSimMessage *, void *usr)
static void osgEarthCacheRequestCallback (DtSimMessage *, void *usr)
 Requests for caching. Only Vantage osgEarth related terrains will actually work with this.
static void osgEarthCacheInformationRequestCallback (DtSimMessage *, void *usr)
 Requests for caching information. Only Vantage osgEarth related terrains will actually work with this.
static void osgEarthCacheCancelRequestCallback (DtSimMessage *, void *usr)
 Called for cancelling current cache request by request id from the initial request.
static void cacheProgressCallback (int reqeustId, int current, bool completed, const DtString &layer, double elapsedTime, void *)
 In the process of caching, the progress along the cache. Current being processed along with the maximum items to process.

Protected Attributes

DtSimManagermySimManager
Records myComputeRouteJobs
PendingIntersectionRequest myPendingIntersectionRequests
double myIntersectionRecheckPeriod
DtString myVectorFeatureLookup
tbb::spin_mutex myOsgEarthCacheInfoProgress
OsgEarthProgressReports myOsgEarthProgressReports

Member Typedef Documentation

typedef boost::shared_ptr<DtAsyncJobMapEntry> DtSimTerrainRequestManager::EntryPtr
protected
typedef std::list<Record> DtSimTerrainRequestManager::Records
protected

Constructor & Destructor Documentation

DtSimTerrainRequestManager::DtSimTerrainRequestManager ( DtSimManager mgr)
explicit
virtual DtSimTerrainRequestManager::~DtSimTerrainRequestManager ( )
virtual

Member Function Documentation

static DtSimTerrainRequestManager* DtSimTerrainRequestManager::create ( DtSimManager )
static
virtual void DtSimTerrainRequestManager::init ( )
virtual
virtual void DtSimTerrainRequestManager::tick ( )
virtual
virtual void DtSimTerrainRequestManager::process ( const DtIfComputeRoute msg,
const DtSimulationAddress &  from 
)
virtual
virtual void DtSimTerrainRequestManager::setIntersectionRecheckPeriod ( double  )
virtual

The recheck period for checking pending intersection requests. Default is .5 seconds.

double DtSimTerrainRequestManager::intersectionRecheckPeriod ( ) const
inline
virtual void DtSimTerrainRequestManager::setVectorFeatureLookup ( const DtString )
virtual

Sets the lookup to use for vector features when looking for soil type. Default is MAK_SOIL_TYPE.

const DtString& DtSimTerrainRequestManager::vectorFeatureLookup ( ) const
inline
virtual void DtSimTerrainRequestManager::terrainClosed ( )
virtual

Called when the current terrain is closed – clear out pending requests.

static void DtSimTerrainRequestManager::intersectionRequestCallback ( DtSimMessage ,
void *  usr 
)
staticprotected
virtual void DtSimTerrainRequestManager::processIntersectionRequest ( DtIfRequestIntersectionInformation )
protectedvirtual
virtual bool DtSimTerrainRequestManager::processPendingIntersection ( PendingIntersection )
protectedvirtual

Processes a pending intersection. If all results are discovered sends off result. If not sent returns false.

static void DtSimTerrainRequestManager::osgEarthCacheRequestCallback ( DtSimMessage ,
void *  usr 
)
staticprotected

Requests for caching. Only Vantage osgEarth related terrains will actually work with this.

virtual void DtSimTerrainRequestManager::processOsgEarthCacheRequest ( DtIfOsgEarthCacheRequest )
protectedvirtual
static void DtSimTerrainRequestManager::osgEarthCacheInformationRequestCallback ( DtSimMessage ,
void *  usr 
)
staticprotected

Requests for caching information. Only Vantage osgEarth related terrains will actually work with this.

virtual void DtSimTerrainRequestManager::processOsgEarthCacheInformationRequest ( DtIfOsgEarthCacheInformationRequest )
protectedvirtual
static void DtSimTerrainRequestManager::osgEarthCacheCancelRequestCallback ( DtSimMessage ,
void *  usr 
)
staticprotected

Called for cancelling current cache request by request id from the initial request.

virtual void DtSimTerrainRequestManager::processOsgEarthCacheCancelRequest ( DtIfOsgEarthCacheCancelRequest )
protectedvirtual
static void DtSimTerrainRequestManager::cacheProgressCallback ( int  reqeustId,
int  current,
bool  completed,
const DtString layer,
double  elapsedTime,
void *   
)
staticprotected

In the process of caching, the progress along the cache. Current being processed along with the maximum items to process.

virtual void DtSimTerrainRequestManager::processCacheProgress ( int  reqeustId,
int  current,
bool  completed,
const DtString layer,
double  elapsedTime 
)
protectedvirtual
bool DtSimTerrainRequestManager::processRecord ( const Record )
protected

Member Data Documentation

DtSimManager* DtSimTerrainRequestManager::mySimManager
protected
Records DtSimTerrainRequestManager::myComputeRouteJobs
protected
PendingIntersectionRequest DtSimTerrainRequestManager::myPendingIntersectionRequests
protected
double DtSimTerrainRequestManager::myIntersectionRecheckPeriod
protected
DtString DtSimTerrainRequestManager::myVectorFeatureLookup
protected
tbb::spin_mutex DtSimTerrainRequestManager::myOsgEarthCacheInfoProgress
protected
OsgEarthProgressReports DtSimTerrainRequestManager::myOsgEarthProgressReports
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)