![]() |
VR-Forces Developer's Guide
|
Find Position Groups In Area Job.

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 | |
| DtTerrainInterface * | pMyTerrainInterface |
| std::list< DtLocation3D > | mySourceAreaCorners |
| std::list< DtLocation3D > | myTargetAreaCorners |
| 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 | |
| DtAsyncJobServer * | myServer |
Additional Inherited Members | |
Public Types inherited from DtAlgorithmManager | |
| enum | Severity { Error, WARN, INFO, VERBOSE, DEBUG_LEVEL } |
| typedef DtTaggedException < DtAlgorithmManager > | Exception |
|
explicit |
DtFindPositionGroupsInAreaUsingHilltopsQuery.
| sourceAreaVertices | The area to search for shoot and hide positions. | |
| gridResolutionMeters | The distance between adjacent grid points used for searching hilltops. | |
| prominenceMeters | Minimal height advantage over locality avarage height required for qualifying as a hilltop. | |
| prominenceRangeMeters | Radius of locality circle defining a hilltop. | |
| targetsAreaVertices | The area to maximize view and cover against, e.g. enemy engagement area. | |
| targetsAreaSampleCount | Number 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. | |
| targetsHeightMeters | Height above ground of targets in targets area - to check line-of-sight and line-of-fire against. | |
| viewHeightMeters | Height above ground of view point (e.g. main gun). | |
| hideHeightMeters | Height above ground of cover point (e.g. turret top
| |
| forwardBackSearchLimitMeters | Max total in meters to search from forward edge of group to back. | |
| sideToSideSearchLimitMeters | Meters distance total from left edge of group to right in which to search. | |
| forwardBackSearchIntervalMeters | Distance in meters along forward/back line at which to sample for position candidates, e.g. 10m or 1.5x vehicle length or similar. | |
| sideToSideSearchIntervalMeters | Lateral distance between examined positions/lines (density of comb). | |
| positionsSpacing | Minimal allowed lateral distance between adjacent position pairs in each group. | |
| positionsCount | Number of required positions in each position group. | |
| [out] | foundPositionGroups | The collection of found position groups, ordered by decreasing overallPctAvg value. May be empty of the specified area contains no hilltops. |
| bDebug | Optional, set to true to log additional debug information. |
|
virtual |
| void DtFindPositionGroupsInAreaUsingHilltopsQuery::message | ( | Severity | severity, |
| std::string | msg | ||
| ) |
|
virtual |
Spawns the task, does the work.
Implements DtAsyncJob.
|
virtual |
Called when an exception is caught during execution.
Implements DtAsyncJob.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |