VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfNavigation
coverPointFinder.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2017 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include "matrix/vlVector.h"
9
#include "
vrfNavigation/navArea.h
"
10
11
#include "
vrfNavigation/vrfNavigationDefines.h
"
12
14
class
DT_DLL_vrfNavigation
DtCoverPoint
15
{
16
public
:
17
18
DtCoverPoint
() {};
19
~DtCoverPoint
() {};
20
22
bool
operator<(
const
DtCoverPoint
& other)
const
;
23
24
DtVector
myPoint
;
25
double
myDistanceFromThreat
;
26
double
myPathCost
;
27
double
myAngularDistFromThreat
;
28
bool
myCoverIsHigh
;
29
30
static
double
theCostToleranceFactor
;
31
static
double
theThreatDistanceToleranceFactor
;
32
};
33
36
class
DT_DLL_vrfNavigation
DtCoverPointFinder
37
{
38
public
:
39
40
DtCoverPointFinder
(
const
DtVector
& startPosition,
const
DtVector
& threatPosition,
41
double
threatRadius,
double
distanceFromThreat,
unsigned
numberOfPoints,
Coordinate_System
* cs);
42
43
static
DtOnGraphVertexVisitedResult
pointCallback(
44
const
DtVector
& localPoint,
const
DtNavTag
& tag,
void
* userData);
45
virtual
DtOnGraphVertexVisitedResult
processPoint(
const
DtVector
& localPoint,
const
DtNavTag
& tag);
46
47
static
DtOnPathToGraphVertexComputedResult
pathCallback(
48
const
DtVector
& localPoint,
double
pathCost,
void
* userData);
49
virtual
DtOnPathToGraphVertexComputedResult
processPath(
const
DtVector
& localPoint,
double
pathCost);
50
51
double
angleToPoint(
const
DtVector
& fromPoint,
const
DtVector
& toPoint);
52
53
std::pair<double, double> anglesToCircularArea(
const
DtVector
& fromPoint,
const
DtVector
& toPoint,
double
radius);
54
55
DtVector
myThreatPosition
;
56
double
myThreatRadius
;
57
double
myDistanceFromThreat
;
58
DtVector
myStartPosition
;
59
unsigned
myNumberOfPoints
;
60
double
myAngleToThreat
;
61
62
unsigned
myNumberOfPointsConsidered
;
63
64
bool
myCurrentCoverIsHigh
;
65
66
68
std::set<DtCoverPoint>
myBestCoverPoints
;
69
70
Coordinate_System
*
myCoordSys
;
71
72
static
unsigned
theMinPointsToConsider
;
73
static
double
theMaxPointsToConsiderFactor
;
74
static
double
theCostLimitFactor
;
75
};
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)