VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtFindPositionGroupsInAreaUsingHilltopsQuery Class Reference

Find Position Groups In Area Job.

Inheritance diagram for DtFindPositionGroupsInAreaUsingHilltopsQuery:
Inheritance graph
[legend]

Public Member Functions

 DtFindPositionGroupsInAreaUsingHilltopsQuery (DtTerrainInterface *, const std::list< DtLocation3D > &sourceAreaVertices, unsigned int gridResolutionMeters, double prominenceMeters, unsigned int prominenceRangeMeters, const std::list< DtLocation3D > &targetsAreaVertices, unsigned int targetsAreaSampleCount, double targetsHeightMeters, double viewHeightMeters, double hideHeightMeters, double forwardBackSearchLimitMeters, double sideToSideSearchLimitMeters, double forwardBackSearchIntervalMeters, double maxSlopeDegrees, double sideToSideSearchIntervalMeters, double positionsSpacing, unsigned int positionsCount, bool bDebug)
 
virtual ~DtFindPositionGroupsInAreaUsingHilltopsQuery ()
 
void message (Severity severity, std::string msg)
 
tbb::task * onExecute ()
 
tbb::task * onException ()
 
- Public Member Functions inherited from DtAsyncDetachedJob
boost::shared_ptr
< DtAsyncJobMapEntry
getEntry () const
 
void setEntry (boost::shared_ptr< DtAsyncJobMapEntry >)
 
task * execute ()
 
- Public Member Functions inherited from DtAsyncJob
 DtAsyncJob ()
 
virtual ~DtAsyncJob ()
 
virtual void tick ()
 
bool cancel () const
 
- Public Member Functions inherited from DtAlgorithmManager
virtual void message (Severity, const std::string &) const
 
void errorMessage (const std::string &) const
 
void warnMessage (const std::string &) const
 
void infoMessage (const std::string &) const
 
void verboseMessage (const std::string &) const
 
void debugMessage (const std::string &) const
 

Protected Attributes

DtTerrainInterfacepMyTerrainInterface
 
std::list< DtLocation3DmySourceAreaCorners
 
std::list< DtLocation3DmyTargetAreaCorners
 
unsigned int myNumberPositionsPerGroupRequested
 
unsigned int myTargetsAreaSampleCount
 
unsigned int myGridResolutionMeters
 
double myProminenceMeters
 
unsigned int myProminenceRangeMeters
 
double myTargetHeight
 
double myShootHeight
 
double myHideHight
 
double myForwardBackSearchLimitMeters
 
double mySideSideSearchLimit
 
double myForwardBackSearchIntervalMeters
 
double myMaxSlopeDegrees
 
double mySideSideSearchIntervalMeters
 
double myPositionsSpacing
 
bool bMyDebug
 
- Protected Attributes inherited from DtAsyncDetachedJob
boost::shared_ptr
< DtAsyncJobMapEntry
myEntry
 
- Protected Attributes inherited from DtAsyncJob
DtAsyncJobServermyServer
 

Additional Inherited Members

- Public Types inherited from DtAlgorithmManager
enum  Severity {
  Error, WARN, INFO, VERBOSE,
  DEBUG_LEVEL
}
 
typedef DtTaggedException
< DtAlgorithmManager
Exception
 

Constructor & Destructor Documentation

DtFindPositionGroupsInAreaUsingHilltopsQuery::DtFindPositionGroupsInAreaUsingHilltopsQuery ( DtTerrainInterface ,
const std::list< DtLocation3D > &  sourceAreaVertices,
unsigned int  gridResolutionMeters,
double  prominenceMeters,
unsigned int  prominenceRangeMeters,
const std::list< DtLocation3D > &  targetsAreaVertices,
unsigned int  targetsAreaSampleCount,
double  targetsHeightMeters,
double  viewHeightMeters,
double  hideHeightMeters,
double  forwardBackSearchLimitMeters,
double  sideToSideSearchLimitMeters,
double  forwardBackSearchIntervalMeters,
double  maxSlopeDegrees,
double  sideToSideSearchIntervalMeters,
double  positionsSpacing,
unsigned int  positionsCount,
bool  bDebug 
)
explicit

DtFindPositionGroupsInAreaUsingHilltopsQuery.

Parameters
sourceAreaVerticesThe area to search for shoot and hide positions.
gridResolutionMetersThe distance between adjacent grid points used for searching hilltops.
prominenceMetersMinimal height advantage over locality avarage height required for qualifying as a hilltop.
prominenceRangeMetersRadius of locality circle defining a hilltop.
targetsAreaVerticesThe area to maximize view and cover against, e.g. enemy engagement area.
targetsAreaSampleCountNumber of points in targets srea (approx.) to use as a sample for checking line-of-sight (for view) and line-of-fire (for cover) against.
targetsHeightMetersHeight above ground of targets in targets area - to check line-of-sight and line-of-fire against.
viewHeightMetersHeight above ground of view point (e.g. main gun).
hideHeightMetersHeight above ground of cover point (e.g. turret top
  • tank commander's head).
forwardBackSearchLimitMetersMax total in meters to search from forward edge of group to back.
sideToSideSearchLimitMetersMeters distance total from left edge of group to right in which to search.
forwardBackSearchIntervalMetersDistance in meters along forward/back line at which to sample for position candidates, e.g. 10m or 1.5x vehicle length or similar.
sideToSideSearchIntervalMetersLateral distance between examined positions/lines (density of comb).
positionsSpacingMinimal allowed lateral distance between adjacent position pairs in each group.
positionsCountNumber of required positions in each position group.
[out]foundPositionGroupsThe collection of found position groups, ordered by decreasing overallPctAvg value. May be empty of the specified area contains no hilltops.
bDebugOptional, set to true to log additional debug information.
virtual DtFindPositionGroupsInAreaUsingHilltopsQuery::~DtFindPositionGroupsInAreaUsingHilltopsQuery ( )
virtual

Member Function Documentation

void DtFindPositionGroupsInAreaUsingHilltopsQuery::message ( Severity  severity,
std::string  msg 
)
tbb::task* DtFindPositionGroupsInAreaUsingHilltopsQuery::onExecute ( )
virtual

Spawns the task, does the work.

Implements DtAsyncJob.

tbb::task* DtFindPositionGroupsInAreaUsingHilltopsQuery::onException ( )
virtual

Called when an exception is caught during execution.

Implements DtAsyncJob.

Member Data Documentation

DtTerrainInterface* DtFindPositionGroupsInAreaUsingHilltopsQuery::pMyTerrainInterface
protected
std::list<DtLocation3D> DtFindPositionGroupsInAreaUsingHilltopsQuery::mySourceAreaCorners
protected
std::list<DtLocation3D> DtFindPositionGroupsInAreaUsingHilltopsQuery::myTargetAreaCorners
protected
unsigned int DtFindPositionGroupsInAreaUsingHilltopsQuery::myNumberPositionsPerGroupRequested
protected
unsigned int DtFindPositionGroupsInAreaUsingHilltopsQuery::myTargetsAreaSampleCount
protected
unsigned int DtFindPositionGroupsInAreaUsingHilltopsQuery::myGridResolutionMeters
protected
double DtFindPositionGroupsInAreaUsingHilltopsQuery::myProminenceMeters
protected
unsigned int DtFindPositionGroupsInAreaUsingHilltopsQuery::myProminenceRangeMeters
protected
double DtFindPositionGroupsInAreaUsingHilltopsQuery::myTargetHeight
protected
double DtFindPositionGroupsInAreaUsingHilltopsQuery::myShootHeight
protected
double DtFindPositionGroupsInAreaUsingHilltopsQuery::myHideHight
protected
double DtFindPositionGroupsInAreaUsingHilltopsQuery::myForwardBackSearchLimitMeters
protected
double DtFindPositionGroupsInAreaUsingHilltopsQuery::mySideSideSearchLimit
protected
double DtFindPositionGroupsInAreaUsingHilltopsQuery::myForwardBackSearchIntervalMeters
protected
double DtFindPositionGroupsInAreaUsingHilltopsQuery::myMaxSlopeDegrees
protected
double DtFindPositionGroupsInAreaUsingHilltopsQuery::mySideSideSearchIntervalMeters
protected
double DtFindPositionGroupsInAreaUsingHilltopsQuery::myPositionsSpacing
protected
bool DtFindPositionGroupsInAreaUsingHilltopsQuery::bMyDebug
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)