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

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 () override |
| void | message (Severity severity, std::string msg) |
| virtual void | onExecute () override |
| virtual void | onException () override |
Public Member Functions inherited from DtAsyncDetachedJob | |
| virtual std::shared_ptr < DtAsyncJobMapEntry > | getEntry () const override |
| virtual void | setEntry (std::shared_ptr< DtAsyncJobMapEntry >) override |
| virtual void | execute () override |
Public Member Functions inherited from DtAsyncJob | |
| DtAsyncJob () | |
| virtual | ~DtAsyncJob () |
| virtual void | tick () |
| virtual bool | cancel () const override |
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 |
| 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 | |
| std::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 |
DtFindPositionGroupsInAreaUsingRidgeQuery.
| sourceAreaVertices | The area to search for shoot and hide positions. | |
| 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
| |
| coverRangeMeters | Max total in meters to search from forward edge of group to back. | |
| lateralRangeMeters | Meters distance total from left edge of group to right in which to search. | |
| forwardBackIntervalMeters | Distance in meters along forward/back line at which to sample for position candidates, e.g. 10m or 1.5x vehicle length or similar. | |
| lateralIntervalMeters | 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. |
|
overridevirtual |
| void DtFindPositionGroupsInAreaUsingRidgeQuery::message | ( | Severity | severity, |
| std::string | msg | ||
| ) |
|
overridevirtual |
Spawns the task, does the work.
Implements DtAsyncJob.
|
overridevirtual |
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 |