VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
featureNavigator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <features/areaFeature.h>
14 
16 
18 
19 namespace MAKVRinTerra
20 {
21  class DtProj;
22 
29  {
30  public:
34 
37 
39  typedef boost::function<bool ()> CancelCheckFunction;
40 
42  DtFeatureNavigator(const DtAreaFeatureSet& obstacles,
43  const DtAlgorithmManager& mgr);
45  const DtAlgorithmManager& mgr);
46 
47  virtual bool processObstacles(DtFeatureGeometry obstacleArea);
48  virtual bool processObstacles(DtFeatureGeometry obstacleArea, const DtAlgorithmManager& mgr);
49 
50  virtual DtFeatureGeometry::Path makePath(Path inputPath);
51  virtual DtFeatureGeometry::Path makePath(Path inputPath, const DtAlgorithmManager& mgr);
52 
57  virtual void setFailIfStartInObstacle(bool v);
58 
64  virtual void setFailIfEndInObstacle(bool v);
65 
66  virtual const DtAlgorithmManager* getMgr() { return myMgr; };
67 
68  protected:
69  const std::unique_ptr<DtAreaFeatureSetOperation> myObstacles;
70 
74  };
75 }
Represents a set of DtFeature objects or others which conform to the DtFeature concept.
Definition: featureSet.h:105
#define DT_DLL_features
stop complaining about multiple independent base classes for boost::noncopyable this should probably ...
Definition: featuresDefines.h:41
std::vector< DtPoint > PointVector
Definition: featureGeometry.h:80
DtGeometryDuplicateRemover DuplicateRemover
Definition: featureNavigator.h:38
bool myFailIfStartsInObstacle
Definition: featureNavigator.h:71
DtFeatureGeometry::Path Path
Definition: featureNavigator.h:32
boost::function< bool()> CancelCheckFunction
Definition: featureNavigator.h:39
bool myFailIfEndsInObstacle
Definition: featureNavigator.h:72
DtFeatureGeometry::Point Point
Definition: featureNavigator.h:31
Definition: featureGeometry.h:65
DtFeatureGeometry::GeometryVector GeometryVector
Definition: featureNavigator.h:36
Handle< PointType > Point
Definition: featureGeometry.h:74
Handle< PathType > Path
Definition: featureGeometry.h:75
Class to represent an area feature set operation (union, difference, intersection) between two area f...
Definition: areaFeatureSetOperation.h:19
DtFeatureGeometry::PointVector PointVector
Definition: featureNavigator.h:35
std::vector< DtFeatureGeometry > GeometryVector
Definition: featureGeometry.h:79
A class that contains the algorithm for searching for a clear path among obstacles. The obstacles are area features. The path planner takes an input Path with two points, a start and end, and returns a path with points added between the start and end, if necessary, so that the path does not intersect any obstacles.
Definition: featureNavigator.h:28
const DtAlgorithmManager * myMgr
Definition: featureNavigator.h:73
DtFeatureGeometry::Area Area
Definition: featureNavigator.h:33
General interface which can be passed into an algorithm to control its behavior.
Definition: algorithmManager.h:24
Definition: geometryDuplicateRemover.h:26
Represents a feature geometry.
Definition: featureGeometry.h:44

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)