VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aStarGraph.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 //vrf includes
15 #include <features/pathFeature.h>
18 
19 #include <vrfutil/asyncJob.h>
20 #include <vrfutil/kinematicTools.h>
21 #include <vrfutil/railSegment.h>
23 
24 //third party includes
25 #include <boost/graph/adjacency_list.hpp>
26 #include <boost/graph/properties.hpp>
27 #include <boost/graph/graph_traits.hpp>
28 #include <boost/function.hpp>
29 
30 #include <tbb/queuing_mutex.h>
31 #include <tbb/queuing_rw_mutex.h>
32 #include <atomic>
33 #include <tbb/mutex.h>
34 
35 //std lib includes
36 #include <list>
37 #include <map>
38 
39 namespace MAKVRinTerra
40 {
41  class DtAStarGraphDebugger;
42 
43  //Properties of each vertex
45  {
46  explicit VertexInfo();
47  explicit VertexInfo(const DtPoint& point);
48 
50 
51  //DtFeatureGeometry::Point geometry() const;
52  };
53 
57  {
58  explicit EdgeInfo(const DtPathFeature& p, const DtFeatureGeometry::Path&);
59  explicit EdgeInfo(const DtPathFeature::CPtr& p, const DtFeatureGeometry::Path&);
60 
61  typedef std::vector<DtPathFeature::CPtr> FeatureVector;
62 
63  DtFeatureGeometry::Path edgeGeometry() const;
64  double length() const;
65  double width() const;
66  bool isOneway() const;
67  bool isDeleted() const;
68  FeatureVector features() const;
69  DtPathFeature::CPtr firstValidFeature() const;
70  void addFeature(const DtPathFeature::CPtr&);
71  size_t hash() const;
72 
73  private:
74  friend class DtAStarGraph;
75  struct Data;
76 
77  std::shared_ptr<Data> myData;
78  };
79 
81 
90  {
91  class BoostGraphVisitor;
92  friend class BoostGraphVisitor;
93 
97 
98  public:
99  typedef std::shared_ptr<DtAStarGraph> Ptr;
100 
101  Ptr shared_from_this();
102 
103  typedef boost::adjacency_list< //graph is adjacency list (vs adjacency matrix)
104  boost::setS, //per-vertex edge-list is a set
105  boost::vecS, //graph's vertex-list is a vector
106  boost::directedS, //graph is directed
107  VertexInfo, //VertexInfo struct is property on edges
108  EdgeInfo, //EdgeInfo struct is property on edges
109  boost::no_property, //no property on graph
110  boost::vecS> //graph's edge-list is a vector
112 
113  typedef boost::graph_traits<DtBoostGraph> GraphTraits;
114 
116  typedef DtBoostGraph::vertex_descriptor vertex_descriptor;
117 
118  typedef DtBoostGraph::edge_descriptor edge_descriptor;
119 
120  typedef GraphTraits::vertex_iterator vertex_iterator;
121  typedef GraphTraits::edge_iterator edge_iterator;
122 
123  typedef std::list<vertex_descriptor> VertexList;
124 
125  //Weight is a property on edges.
126  typedef boost::property<boost::edge_weight_t, double> Weight;
127 
136 
147  {
148  typedef std::list<PathVertexData> VertexList;
149 
152  static double pathLength(const VertexList&);
153 
156  std::string printString() const;
157 
158  explicit PathVertexData(
159  const DtPoint& l,
160  vertex_descriptor v = GraphTraits::null_vertex(),
162 
166  };
167 
180  {
181  typedef std::list<MultiPathVertex> SetOfPaths;
182 
183  explicit MultiPathVertex(
184  const DtPoint& l,
185  vertex_descriptor v = GraphTraits::null_vertex(),
187 
188  explicit MultiPathVertex(const PathVertexData&);
189 
193  PathVertexData::VertexList getSinglePath() const;
194 
196  void addBranch(PathVertexData::VertexList::const_iterator, PathVertexData::VertexList::const_iterator);
197 
201  void addPathToFront(const PathVertexData::VertexList&);
202 
205  void addPathToEndOfEachBranch(PathVertexData::VertexList::const_iterator, PathVertexData::VertexList::const_iterator);
207  void addPathToEndOfEachBranch(const MultiPathVertex&);
208 
211  };
212 
222  {
223  public:
224  typedef std::vector<PathList> Sequence;
225 
226  explicit PathList(const std::string& = std::string());
227 
231  PathVertexData::VertexList getSinglePath() const;
232 
236  void addPath(const PathVertexData::VertexList& ptList);
237 
239  void addPaths(const MultiPathVertex::SetOfPaths& listOfPointPaths);
240 
242  void addPath(const PathList& pathCollection);
243 
244  void addPathToFront(const PathVertexData::VertexList&);
245  void addPathToEnd(const PathVertexData::VertexList&);
246 
247  bool empty() const { return myPathCollection.empty(); }
248  size_t numPaths() const { return myPathCollection.size(); }
249 
250  std::string description() const { return myDescription; }
251 
252  const MultiPathVertex::SetOfPaths& pathVertices() const { return myPathCollection; }
253  MultiPathVertex::SetOfPaths& pathVertices() { return myPathCollection; }
254 
255  private:
257  std::string myDescription;
258  };
259 
261 
262  template <typename T>
264 
266 
267  typedef std::pair<DtQuery, double> DtWeightFactor;
268  typedef std::list<DtWeightFactor> DtWeightFactorsList;
269 
270  typedef boost::function<double (edge_descriptor)> EdgeWeightAdjustor;
271 
272  typedef boost::function<bool ()> CancelCheck;
273 
277  static DtRailSegment* vertex2RailSegment(const PathVertexData& v,
278  const PathVertexData& next);
279 
282  static DtRailSegmentList* DtPath2RailSegmentList(const PathList& path);
283 
284  static Ptr Make(
285  std::unique_ptr<DtFeatureSet> input,
286  DtProj::CPtr localProj,
287  const DtTerrainInterfaceConfig& config,
288  std::string label = std::string());
289 
290  virtual ~DtAStarGraph() override;
291 
292  virtual void shutdown();
293  virtual bool isShutdown() const;
294 
296  virtual bool cancel() const;
297 
300 
317  PathList makePath(
318  const DtPoint& startLocation,
319  const DtPoint& endLocation,
320  double maxSearchRadius,
321  double startProximityThreshold,
322  double stopProximityThreshold,
323  const DtWeightFactorsList& weightFactors,
324  const CancelCheck& cancelCheck,
325  const double offRoadPathWeight = 10.0);
326 
327  struct Results;
328 
331  {
334  boost::optional<DtFeatureGeometry::Area> searchArea;
354 
356  const DtFeatureGeometry::Point& start,
357  const DtFeatureGeometry::Point& end);
358 
359  void setMaxSearchRadius(double radius);
360  void setSearchRadius(double maxRadius, double minRadius);
361 
362  bool cancel() const;
363  };
364 
365  PathList makePath(
366  SearchParameters params,
367  Results* results = 0,
368  unsigned recursionLevel = 0);
369 
371 
374  bool onPathFeature(const DtPoint& location, double offset = 0.5);
375 
376  std::unique_ptr<DtPathFeatureSet> paths() const;
377 
378  const DtFeatureSet& inputFeatureSet() const;
379 
380  DtProj::CPtr localProj() const;
381 
390  DtClosestPathFeatureFinder closestFeatureOnNetwork(
391  const DtPoint& startingLocation, const double& searchRadius, bool* dataAvailable = NULL);
392 
393  virtual std::string label() const override;
394 
395  virtual DtFeaturesDebugger::Record& addToDebugger(DtFeaturesDebugger&);
396 
400  void addFeatureToGraph(
401  const DtFeature & r,
402  bool joinToIntersectingEdges,
403  const boost::optional<DtFeatureGeometry>& searchArea = boost::none);
404 
407  void addFeatureToGraph(
408  const DtFeature&,
409  const boost::optional<DtFeatureGeometry>& searchArea = boost::none);
410 
411  void addGeometryToGraph(DtFeatureGeometry g);
412 
419  bool loadTile(const DtPoint& localLocation, double timeout = 0);
420  bool loadTile(const DtFeatureGeometry& geom, double timeout = 0);
421  bool loadTileAndBlock(
422  const DtPoint& localLocation, const CancelCheck& = CancelCheck());
423  bool loadTileAndBlock(
424  const DtFeatureGeometry& geom, const CancelCheck& = CancelCheck());
425 
426  protected:
427 
435  void maybeAddEdgeToGraph(const DtPoint& vA, const vertex_descriptor vAIndex,
436  const DtPoint& vB, const vertex_descriptor vBIndex,
437  std::shared_ptr<DtPathFeature> path,
438  unsigned& numAddedEdges, unsigned& numDuplicates);
439 
447  bool maybeAddVertexToGraph(const DtPoint& vLocation, const VertexBoolMap& existingVertices,
448  const double tolerance,
449  vertex_descriptor& vIndex);
450 
451  protected:
454  DtAStarGraph(
455  std::unique_ptr<DtFeatureSet> input,
456  DtProj::CPtr localProj,
457  const DtTerrainInterfaceConfig& config,
458  std::string label);
459 
461  const std::unique_ptr<DtFeatureSet> myInputFeatureSet;
462 
464 
467 
468  typedef tbb::queuing_rw_mutex GraphMutex;
469 
472 
475 
478 
480  struct GridTile : public std::enable_shared_from_this<GridTile>
481  {
482  typedef std::shared_ptr<GridTile> TilePtr;
483  typedef std::vector<TilePtr> TilePtrVector;
484 
485  struct EdgeRecord
486  {
487  struct Hash
488  {
489  size_t operator()(const EdgeRecord& edge) const;
490  };
491 
492  bool operator==(const EdgeRecord& other) const;
493 
496 
497  explicit EdgeRecord(edge_descriptor, const EdgeInfo&);
498  };
499 
501  typedef std::vector<EdgeRecord> EdgeSet;
502  //typedef boost::unordered_set<EdgeRecord, EdgeRecord::Hash> EdgeSet;
503 
504  const unsigned myLevel;
505  const unsigned myMaxLevel;
506 
510 
518  explicit GridTile(const GridTile& parent, unsigned x, unsigned y);
519 
522  explicit GridTile(DtAStarGraph&, const DtProj::Bounds&, unsigned maxLevel);
523 
524  ~GridTile();
525 
529  bool loadAllLeafSubTiles(const DtFeatureGeometry&, double timeout);
530 
535  void findIntersectingSubTiles(const DtFeatureGeometry&, TilePtrVector& tileList);
536 
539  void getTiles(TilePtrVector&);
540 
543  void addEdge(edge_descriptor, const EdgeInfo&);
544 
549  void getEdges(const DtFeatureGeometry&, EdgeSet& allIntersectingEdges);
550 
553  void getEdgesWithWidth(const DtFeatureGeometry&, EdgeSet& allIntersectingEdges);
554 
555  private:
558  void loadAndGet();
559 
560  bool loaded(double timeout) const;
561 
563 
564  typedef tbb::mutex LoadingMutex;
565 
567  enum State { None, Loading, Done, Error };
568  std::atomic<State> myState;
569 
570  typedef tbb::queuing_rw_mutex Mutex;
571 
572  mutable Mutex myMutex;
576 
578  std::shared_ptr<GridTile> mySubtiles[2][2];
579 
582  };
583 
584  friend struct GridTile;
585 
590 
592 
594 
595  std::atomic<bool> myShutdownFlag;
596 
597  std::string myLabel;
598 
601 
603  };
604 
607 
612  template <typename T>
614  {
615  typedef std::vector<T> Sequence;
616 
617  static T CreateDefault(T def, size_t) { return def; }
618 
619  public:
620  typedef size_t key_type;
621  typedef typename Sequence::value_type value_type;
622  typedef typename Sequence::reference reference;
623  typedef boost::lvalue_property_map_tag category;
624 
625  typedef boost::function<T (size_t)> DefaultFactory;
626 
627  explicit DynamicPropertyMap(const DefaultFactory& def, size_t size = 0)
628  : myDefaultFactory(def)
629  , myValues(new Sequence(size))
630  {
631  for (size_t i=0; i != size; ++i)
632  (*myValues)[i] = myDefaultFactory(i);
633  }
634 
635  explicit DynamicPropertyMap(T def, size_t size = 0)
636  : myDefaultFactory(boost::bind(&CreateDefault, def, boost::placeholders::_1))
637  , myValues(new Sequence(size, def))
638  {
639  }
640 
641  T& operator[](size_t index)
642  {
643  while (index >= size())
644  myValues->push_back(myDefaultFactory(index));
645 
646  return (*myValues)[index];
647  }
648 
649  T& operator[](size_t index) const
650  {
651  while (index >= size())
652  myValues->push_back(myDefaultFactory(index));
653 
654  return (*myValues)[index];
655  }
656 
657  size_t size() const
658  {
659  return myValues->size();
660  }
661 
662  void clear()
663  {
664  myValues->clear();
665  }
666 
667  private:
669  std::shared_ptr<Sequence> myValues;
670  };
671 
673  template <typename T>
674  T get(const DtAStarGraph::DynamicPropertyMap<T>& map, size_t index)
675  {
676  return map[index];
677  }
678 
684 
686  template <typename T>
687  void put(DtAStarGraph::DynamicPropertyMap<T>& map, size_t index, const T& value)
688  {
689  map[index] = value;
690  }
691 
697 
699  {
700  public:
702  };
704 
708  {
709  public:
710  DtMakePathJob(const DtAStarGraph::Ptr& pathFinder, const DtPoint& localStart, const DtPoint& localDestination,
711  double maxSearchRadius, double startProximityThreshold, double stopProximityThreshold,
712  const DtAStarGraph::DtWeightFactorsList& factors, const double offRoadPathWeight = 10.0);
713 
714  virtual void onExecute() override;
715  virtual void onException() override;
716 
717  public:
726  };
727 }
728 
Represents a set of DtFeature objects or others which conform to the DtFeature concept.
Definition: featureSet.h:105
Concrete job class which manages a weak pointer to it&#39;s job map entry. Using this job will require th...
Definition: asyncJob.h:89
double startProximityThreshold
The radius from the start point within which the feature data will be searched for a start feature...
Definition: aStarGraph.h:337
State
Definition: aStarGraph.h:567
GraphTraits::edge_iterator edge_iterator
Definition: aStarGraph.h:121
#define DT_DLL_features
stop complaining about multiple independent base classes for boost::noncopyable this should probably ...
Definition: featuresDefines.h:41
const unsigned myMaxLevel
Definition: aStarGraph.h:505
bool empty() const
Definition: aStarGraph.h:247
DtFeatureGeometry::Point endPoint
Definition: aStarGraph.h:333
Class DtTerrainInterfaceConfig is a readable-writable class holding terrain interface configuration o...
Definition: terrainInterfaceConfig.h:33
boost::graph_traits< DtBoostGraph > GraphTraits
Definition: aStarGraph.h:113
PathVertexData vertexData
Definition: aStarGraph.h:209
The asynchronous job for making a path. The parameters for the path search are passed in the construc...
Definition: aStarGraph.h:707
DtFeatureGeometry::Point startPoint
Definition: aStarGraph.h:332
boost::function< void()> DetachCallback
Callback type for disconnecting other callbacks. Functions which register callbacks return a DetachCa...
Definition: featureSet.h:132
double length(const dvec3 &theVec)
Definition: DtVecUtils.h:20
FeaturePtr addFeatureRef(const Feature &f)
Definition: featureSetUtils.h:311
DtAStarGraph & myAStarGraph
Definition: aStarGraph.h:562
int myDebuggingGraphicIndex
For debugging output.
Definition: aStarGraph.h:600
std::shared_ptr< const DtProj > CPtr
Definition: proj.h:56
Properties on each edge in the A* graph. Each edge corresponds to a path feature, and the properties ...
Definition: aStarGraph.h:56
std::vector< PathList > Sequence
Definition: aStarGraph.h:224
std::list< DtRailSegment * > DtRailSegmentList
Definition: railSegment.h:194
DtBoostGraph myGraph
Boost graph for path planning.
Definition: aStarGraph.h:474
boost::lvalue_property_map_tag category
Definition: aStarGraph.h:623
DynamicPropertyMap(T def, size_t size=0)
Definition: aStarGraph.h:635
DtFeatureSet::DetachCallback myDetacherCallbackFn
Definition: aStarGraph.h:577
MAKVRinTerra::DtAStarGraph::PathList path
Definition: aStarGraph.h:701
std::vector< TilePtr > TilePtrVector
Definition: aStarGraph.h:483
void put(DtAStarGraph::DynamicPropertyMap< T > &map, size_t index, const T &value)
template &lt;typename t&gt;=&quot;&quot;&gt; T get(const DtAStarGraph::DynamicPropertyMap&lt;T&gt;* map, size_t index) { retur...
Definition: aStarGraph.h:687
DtRailSegment are segments entities can follow when using the rail movement system.
Definition: railSegment.h:20
tbb::mutex LoadingMutex
Definition: aStarGraph.h:564
voidpf void uLong size
Definition: ioapi.h:39
GraphTraits::vertex_iterator vertex_iterator
Definition: aStarGraph.h:120
FeaturePtr addFeature(Feature *f)
these functions make it easier to take the address of addFeature
Definition: featureSetUtils.h:309
tbb::queuing_rw_mutex GraphMutex
Definition: aStarGraph.h:468
double stopProximityThreshold
The radius to the destination location within which the graph search must end to be successful...
Definition: aStarGraph.h:341
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
std::atomic< State > myState
Definition: aStarGraph.h:568
Mutex myEdgesMutex
Definition: aStarGraph.h:580
double minOffFeatureDistanceToDestination
The closest distance to the destination at which the closest feature is found. The remaining path to ...
Definition: aStarGraph.h:347
Definition: featureGeometry.h:65
Mutex myMutex
Definition: aStarGraph.h:572
virtual FeaturePtr addFeaturePtr(Feature *feature)
These functions are used to add features to the feature sets. The argument is the feature being added...
Definition: proj.h:76
Definition: featureSet.h:64
SetOfPaths branches
Definition: aStarGraph.h:210
DtProj::CPtr myLocalProj
For converting local coordinates passed in from the user.
Definition: aStarGraph.h:466
DtAStarGraph holds all the classes used to read in feature data tile-wise, create a Boost Graph...
Definition: aStarGraph.h:89
This is the data associated with a vertex of the path returned from makePath (in a Path class...
Definition: aStarGraph.h:146
boost::function< bool()> CancelCheck
Definition: aStarGraph.h:272
GridTile::TilePtr myLoadedTiles
Points to one top-level (level = 0) tile. This tile will have 4 subtiles, one for each quadrant...
Definition: aStarGraph.h:589
double myStartProximityThreshold
Definition: aStarGraph.h:722
std::list< DtWeightFactor > DtWeightFactorsList
Definition: aStarGraph.h:268
Entry for a feature set in the debugger.
Definition: featuresDebugger.h:55
edge_descriptor myEdgeDescriptor
Definition: aStarGraph.h:494
const unsigned myLevel
Definition: aStarGraph.h:504
size_t size() const
Definition: aStarGraph.h:657
double myOffRoadPathWeight
Definition: aStarGraph.h:725
std::list< vertex_descriptor > VertexList
Definition: aStarGraph.h:123
DtWeightFactorsList weightFactors
Definition: aStarGraph.h:348
MultiPathVertex::SetOfPaths & pathVertices()
Definition: aStarGraph.h:253
DtTerrainInterfaceConfig myTerrainInterfaceConfig
Definition: aStarGraph.h:593
std::string myLabel
Definition: aStarGraph.h:597
std::atomic< bool > myShutdownFlag
Definition: aStarGraph.h:595
Handle< PointType > Point
Definition: featureGeometry.h:74
std::string description() const
Definition: aStarGraph.h:250
EdgeSet myEdgeSet
Definition: aStarGraph.h:581
Sequence::reference reference
Definition: aStarGraph.h:622
size_t numPaths() const
Definition: aStarGraph.h:248
DtPoint myLocalStart
Definition: aStarGraph.h:719
Definition: aStarGraph.h:44
const std::unique_ptr< DtFeatureSet > myInputFeatureSet
Feature source for this graph.
Definition: aStarGraph.h:461
DtFeatureSetWrapper< DtFeatureSet, std::shared_ptr > myFeatureSet
A feature set that is the AStarGraph&#39;s input feature set, but clipped to the geometry of this tile...
Definition: aStarGraph.h:575
A rectangular area of the world with feature edges from the input feature set.
Definition: aStarGraph.h:480
A MultiPathVertex is vertex with a list of next vertices, thus it is the root of a subtree...
Definition: aStarGraph.h:179
MultiPathVertex::SetOfPaths myPathCollection
Definition: aStarGraph.h:256
DefaultFactory myDefaultFactory
Definition: aStarGraph.h:668
double offRoadPathWeight
Definition: aStarGraph.h:349
Handle< PathType > Path
Definition: featureGeometry.h:75
std::shared_ptr< DtAStarGraph > Ptr
Definition: aStarGraph.h:99
DtBoostGraph::edge_descriptor edge_descriptor
Definition: aStarGraph.h:118
std::list< PathVertexData > VertexList
Definition: aStarGraph.h:148
size_t key_type
Definition: aStarGraph.h:620
double directPathCost
A computed parameter. The cost (offroad weight * start-to-end distance) of going directly to the dest...
Definition: aStarGraph.h:353
Base class for result of job.
Definition: asyncJobServer.h:43
template &lt;typename t&gt;=&quot;&quot;&gt; void put(DtAStarGraph::DynamicPropertyMap&lt;T&gt;* map, size_t index...
Definition: aStarGraph.h:698
boost::optional< DtFeatureGeometry::Area > searchArea
Definition: aStarGraph.h:334
std::shared_ptr< Data > myData
Definition: aStarGraph.h:75
std::vector< DtPathFeature::CPtr > FeatureVector
Definition: aStarGraph.h:61
DtPoint myLocalDestination
Definition: aStarGraph.h:720
void clear()
Definition: aStarGraph.h:662
EdgeInfo myEdgeInfo
Definition: aStarGraph.h:495
LoadingMutex myLoadingMutex
Definition: aStarGraph.h:566
std::shared_ptr< const DtPathFeature > CPtr
Definition: pathFeature.h:21
DtPathFeature::CPtr nextEdgeFeature
Definition: aStarGraph.h:165
Definition: pathFeature.h:99
double myStopProximityThreshold
Definition: aStarGraph.h:723
boost::function< T(size_t)> DefaultFactory
Definition: aStarGraph.h:625
Definition: pathFeature.h:17
const DtProj::Bounds myBounds
Bounds define the extent of this tile.
Definition: aStarGraph.h:508
double myMaxSearchRadius
Definition: aStarGraph.h:721
DtPoint localLocation
Definition: aStarGraph.h:163
DynamicPropertyMap(const DefaultFactory &def, size_t size=0)
Definition: aStarGraph.h:627
This is the class that is returned from makePath. It contains a collection of independent paths (sequ...
Definition: aStarGraph.h:221
Source feature sets are used to create your own feature sets with your own features.
Definition: featureSetUtils.h:287
std::vector< EdgeRecord > EdgeSet
fixme change to unordered set
Definition: aStarGraph.h:501
boost::function< double(edge_descriptor)> EdgeWeightAdjustor
Definition: aStarGraph.h:270
DynamicPropertyMap< unsigned > VertexBoolMap
Definition: aStarGraph.h:263
GraphMutex myGraphMutex
Synchronize access to boost graph.
Definition: aStarGraph.h:471
const DtFeatureGeometry::Area myBoundsGeometry
Definition: aStarGraph.h:509
DtPoint location
Definition: aStarGraph.h:49
T & operator[](size_t index)
Definition: aStarGraph.h:641
Sequence::value_type value_type
Definition: aStarGraph.h:621
tbb::queuing_rw_mutex Mutex
Definition: aStarGraph.h:570
T & operator[](size_t index) const
Definition: aStarGraph.h:649
std::shared_ptr< GridTile > TilePtr
Definition: aStarGraph.h:482
CancelCheck myCancelCheck
Definition: aStarGraph.h:602
Represents a GIS feature. Features consist of a DtFeatureGeometry (2.5D geometric vector data) and a ...
Definition: feature.h:36
The parameters for the graph search.
Definition: aStarGraph.h:330
Definition: featuresDebugger.h:33
std::shared_ptr< Sequence > myValues
Definition: aStarGraph.h:669
voidpf uLong offset
Definition: ioapi.h:42
std::pair< DtQuery, double > DtWeightFactor
Definition: aStarGraph.h:267
std::list< MultiPathVertex > SetOfPaths
Definition: aStarGraph.h:181
DtAStarGraph::Ptr myPathFinder
Definition: aStarGraph.h:718
std::string myDescription
Definition: aStarGraph.h:257
std::vector< T > Sequence
Definition: aStarGraph.h:615
static T CreateDefault(T def, size_t)
Definition: aStarGraph.h:617
Represents a feature geometry.
Definition: featureGeometry.h:44
Definition: point.h:34
DtAStarGraph::DtWeightFactorsList myWeightFactors
Definition: aStarGraph.h:724
boost::property< boost::edge_weight_t, double > Weight
Definition: aStarGraph.h:126
const MultiPathVertex::SetOfPaths & pathVertices() const
Definition: aStarGraph.h:252
vertex_descriptor vertex
Definition: aStarGraph.h:164
CancelCheck cancelCheck
Definition: aStarGraph.h:350
boost::adjacency_list< boost::setS, boost::vecS, boost::directedS, VertexInfo, EdgeInfo, boost::no_property, boost::vecS > DtBoostGraph
Definition: aStarGraph.h:111
This serves as a map from vertex indices to properties of type T. The A* algorithm saves graph search...
Definition: aStarGraph.h:263
DtBoostGraph::vertex_descriptor vertex_descriptor
Note that this is an integer, and can be printed with d.
Definition: aStarGraph.h:116

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)