VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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"
10 
12 
15 {
16 public:
17 
20 
22  bool operator<(const DtCoverPoint& other) const;
23 
26  double myPathCost;
29 
30  static double theCostToleranceFactor;
32 };
33 
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 
59  unsigned myNumberOfPoints;
61 
63 
65 
66 
68  std::set<DtCoverPoint> myBestCoverPoints;
69 
71 
72  static unsigned theMinPointsToConsider;
74  static double theCostLimitFactor;
75 };

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)