VR-Forces 5.0.2 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
DtFindPositionGroupsInAreaUsingRidgeQuery Class Reference

Find Position Groups In Area Using Ridge Algorithm Job.

Inheritance diagram for DtFindPositionGroupsInAreaUsingRidgeQuery:
Inheritance graph
[legend]

Public Member Functions

 DtFindPositionGroupsInAreaUsingRidgeQuery (DtTerrainInterface *, const std::list< DtLocation3D > &sourceAreaVertices, const std::list< DtLocation3D > &targetsAreaVertices, unsigned int targetsAreaSampleCount, double targetsHeightMeters, double viewHeightMeters, double hideHeightMeters, double coverRangeMeters, double lateralRangeMeters, double forwardBackRangeMeters, double forwardBackIntervalMeters, double maxSlopeDegrees, double lateralIntervalMeters, double positionsSpacing, unsigned int positionsCount, bool bDebug)
 
virtual ~DtFindPositionGroupsInAreaUsingRidgeQuery ()
 
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
 
double myTargetHeight
 
double myShootHeight
 
double myHideHight
 
double myCoverRange
 
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

DtFindPositionGroupsInAreaUsingRidgeQuery::DtFindPositionGroupsInAreaUsingRidgeQuery ( DtTerrainInterface ,
const std::list< DtLocation3D > &  sourceAreaVertices,
const std::list< DtLocation3D > &  targetsAreaVertices,
unsigned int  targetsAreaSampleCount,
double  targetsHeightMeters,
double  viewHeightMeters,
double  hideHeightMeters,
double  coverRangeMeters,
double  lateralRangeMeters,
double  forwardBackRangeMeters,
double  forwardBackIntervalMeters,
double  maxSlopeDegrees,
double  lateralIntervalMeters,
double  positionsSpacing,
unsigned int  positionsCount,
bool  bDebug 
)
explicit

DtFindPositionGroupsInAreaUsingRidgeQuery.

Parameters
sourceAreaVerticesThe area to search for shoot and hide positions.
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).
coverRangeMetersMax total in meters to search from forward edge of group to back.
lateralRangeMetersMeters distance total from left edge of group to right in which to search.
forwardBackIntervalMetersDistance in meters along forward/back line at which to sample for position candidates, e.g. 10m or 1.5x vehicle length or similar.
lateralIntervalMetersLateral 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 DtFindPositionGroupsInAreaUsingRidgeQuery::~DtFindPositionGroupsInAreaUsingRidgeQuery ( )
virtual

Member Function Documentation

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

Spawns the task, does the work.

Implements DtAsyncJob.

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

Called when an exception is caught during execution.

Implements DtAsyncJob.

Member Data Documentation

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

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)