VR-Forces 4.10 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  AerodromeRecord
 
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 process (const DtIfComputeAerodrome &msg, const DtSimulationAddress &from)
 
virtual void setIntersectionRecheckPeriod (double)
 The recheck period for checking pending intersection requests. Default is .5 seconds. More...
 
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. More...
 
const DtStringvectorFeatureLookup () const
 
virtual void terrainClosed ()
 Called when the current terrain is closed – clear out pending requests. More...
 

Static Public Member Functions

static DtSimTerrainRequestManagercreate (DtSimManager *)
 

Protected Types

typedef boost::shared_ptr
< DtAsyncJobMapEntry
EntryPtr
 
typedef std::list< RecordRecords
 
typedef std::list
< AerodromeRecord
AerodromeRecords
 
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. More...
 
virtual void processOsgEarthCacheRequest (DtIfOsgEarthCacheRequest *)
 
virtual void processOsgEarthCacheCancelRequest (DtIfOsgEarthCacheCancelRequest *)
 
virtual void processCacheProgress (int reqeustId, int current, bool completed, double elapsedTime)
 
bool processRecord (const Record &)
 
bool processAerodromeRecord (const AerodromeRecord &)
 

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. More...
 
static void osgEarthCacheCancelRequestCallback (DtSimMessage *, void *usr)
 Called for cancelling current cache request by request id from the initial request. More...
 
static void cacheProgressCallback (int reqeustId, int current, bool completed, double elapsedTime, void *)
 In the process of caching, the progress along the cache. Current being processed along with the maximum items to process. More...
 

Protected Attributes

DtSimManagermySimManager
 
Records myComputeRouteJobs
 
AerodromeRecords myComputeAerodromeJobs
 
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::process ( const DtIfComputeAerodrome 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::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,
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,
double  elapsedTime 
)
protectedvirtual
bool DtSimTerrainRequestManager::processRecord ( const Record )
protected
bool DtSimTerrainRequestManager::processAerodromeRecord ( const AerodromeRecord )
protected

Member Data Documentation

DtSimManager* DtSimTerrainRequestManager::mySimManager
protected
Records DtSimTerrainRequestManager::myComputeRouteJobs
protected
AerodromeRecords DtSimTerrainRequestManager::myComputeAerodromeJobs
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 Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)