VR-Forces Developer's Guide
 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
 
struct  Record
 

Public Member Functions

 DtSimTerrainRequestManager (DtSimulationServices *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)
 
double intersectionRecheckPeriod () const
 
virtual void setVectorFeatureLookup (const DtString &)
 
const DtStringvectorFeatureLookup () const
 
virtual void terrainClosed ()
 

Static Public Member Functions

static DtSimTerrainRequestManagercreate (DtSimulationServices *)
 

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 &)
 
virtual void processOsgEarthCacheRequest (DtIfOsgEarthCacheRequest *)
 
virtual void processOsgEarthCacheCancelRequest (DtIfOsgEarthCacheCancelRequest *)
 
virtual void processCacheProgress (int reqeustId, int current, bool completed, double elapsedTime)
 
bool processRecord (const Record &)
 
double dotProductAerodromeRunwayWithWind (const AerodromeResult::RunwayInformation &runway)
 
void findPreferredRunways (AerodromeResult::RunwayInformation &preferred, AerodromeResult::RunwayInformation &longest, const AerodromeResult::RunwayInformation &candidate, double &bestDotProduct, double &longestDistance)
 
DtString findBestRunway (AerodromeResult::RunwayInformation &best, const AerodromeResult::RunwayInformation &longest, double bestDotProduct, double longestDistance, const std::list< AerodromeResult::RunwayInformation * > *runwaysInfo)
 
bool processAerodromeRecord (const AerodromeRecord &)
 

Static Protected Member Functions

static void intersectionRequestCallback (DtSimMessage *, void *usr)
 
static void osgEarthCacheRequestCallback (DtSimMessage *, void *usr)
 
static void osgEarthCacheCancelRequestCallback (DtSimMessage *, void *usr)
 
static void cacheProgressCallback (int reqeustId, int current, bool completed, double elapsedTime, void *)
 

Protected Attributes

DtSimulationServicesmySimulationServices
 
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 ( DtSimulationServices mgr)
explicit
virtual DtSimTerrainRequestManager::~DtSimTerrainRequestManager ( )
virtual

Member Function Documentation

static DtSimTerrainRequestManager* DtSimTerrainRequestManager::create ( DtSimulationServices )
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
double DtSimTerrainRequestManager::dotProductAerodromeRunwayWithWind ( const AerodromeResult::RunwayInformation runway)
protected
void DtSimTerrainRequestManager::findPreferredRunways ( AerodromeResult::RunwayInformation preferred,
AerodromeResult::RunwayInformation longest,
const AerodromeResult::RunwayInformation candidate,
double bestDotProduct,
double longestDistance 
)
protected
DtString DtSimTerrainRequestManager::findBestRunway ( AerodromeResult::RunwayInformation best,
const AerodromeResult::RunwayInformation longest,
double  bestDotProduct,
double  longestDistance,
const std::list< AerodromeResult::RunwayInformation * > *  runwaysInfo 
)
protected
bool DtSimTerrainRequestManager::processAerodromeRecord ( const AerodromeRecord )
protected

Member Data Documentation

DtSimulationServices* DtSimTerrainRequestManager::mySimulationServices
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 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)