32#ifndef WSFTERRAINPATHFINDER_HPP
33#define WSFTERRAINPATHFINDER_HPP
35#include "wsf_export.h"
66 void RQTRefineMesh(
float aMetric);
69 std::string ConvertToDegMinSec(
double aLoc);
70 void RQTEvaluateLine(
int x,
int y,
float metric,
int stride);
71 void RQTMarkPointDependants(
int x,
int y,
int stride);
73 void ComputeNodeNormals();
74 void GeneratePathFinderLight();
75 void WriteOutAsZones();
79 const_node_iterator aDstNodeIter,
82 const cost_func* aCostFuncPtr)
const override;
89 std::string mNavMeshZonesFile;
90 float mMaxNormalAngle;
93 class pf_cost_func :
public PFGraph::cost_func
98 if (aNode2.
mWeight == std::numeric_limits<double>::max())
100 return std::numeric_limits<double>::max();
107 double operator()(
const WsfPFNode& aNode1,
const WsfPFNode& aNode2)
const override
114 bool consider_node(
const WsfPFNode& aNode1)
const override
117 return (aNode1.
mWeight == std::numeric_limits<double>::max() ?
false :
true);
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfGeoPoint.hpp:29
double GetDistanceFrom(double aLocationWCS[3]) const
Definition WsfGeoPoint.cpp:151
Definition WsfPathFinder.hpp:58
WsfGeoPoint mLoc
Definition WsfPathFinder.hpp:79
double mWeight
Definition WsfPathFinder.hpp:77
WsfPathFinder(WsfScenario *aScenarioPtr, WsfGeoPoint &aUpperLeftPtr, WsfGeoPoint &aLowerRightPtr, double aGridSizeDegrees)
Definition WsfPathFinder.cpp:64
bool ProcessInput(UtInput &aInput) override
Definition WsfPathFinder.cpp:465
bool shortest_path(const_node_iterator aSrcNodeIter, const_node_iterator aDstNodeIter, NodeList &aPath, double &aCost, const cost_func *aCostFuncPtr=nullptr) const override
Definition WsfPathFinder.cpp:395
virtual bool Initialize(WsfSimulation *aSimulationPtr)
Definition WsfPathFinder.cpp:102
virtual const WsfPFNode * GetClosestNode(const WsfGeoPoint &aPointPtr)
Definition WsfPathFinder.cpp:292
Contains the data required to create a simulation, and acts as the entry point for input file process...
Definition WsfScenario.hpp:111
The main controller for a simulation.
Definition WsfSimulation.hpp:109
const WsfPFNode * GetClosestNodePos(float x, const WsfGeoPoint &aPointPtr)
Definition WsfTerrainPathFinder.cpp:747
bool ComparePoints(sTerrainLatLon aPt1, sTerrainLatLon aPt2)
Definition WsfTerrainPathFinder.cpp:1657
~WsfTerrainPathFinder() override=default
WsfTerrainPathFinder(WsfScenario *aScenarioPtr)
Definition WsfTerrainPathFinder.cpp:49
Definition WsfPathFinder.hpp:87
double mLength
Definition WsfPathFinder.hpp:102
Definition WsfTerrainPathFinder.hpp:51
double Lat
Definition WsfTerrainPathFinder.hpp:52
double Lon
Definition WsfTerrainPathFinder.hpp:53
Definition WsfTerrainPathFinder.hpp:57
sTerrainLatLon Pt2
Definition WsfTerrainPathFinder.hpp:59
sTerrainLatLon Pt1
Definition WsfTerrainPathFinder.hpp:58
sTerrainLatLon Pt3
Definition WsfTerrainPathFinder.hpp:60