VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwNavigationProfile.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <readerWriter/rwReal.h>
13 #include "vrfutil/rwIntegerList.h"
15 
16 #include "vrfutil/vrfutilDefines.h"
20 
21 
26 {
27 public:
28 
29  //Default constructor
31 
32  //Real constructors
33  DtRwNavigationProfile(const DtString& name,
34  DtReaderWriterRegistry* parentRegistry = NULL);
36  DtReaderWriterRegistry* parentRegistry = NULL);
37 
38  //Copy constructor
40 
41  double entityHeight() const { return myEntityHeight; };
42  void setEntityHeight(double height) { myEntityHeight = height; };
43 
44  double entityRadius() const { return myEntityRadius; };
45  void setEntityRadius(double radius) { myEntityRadius = radius; };
46 
47  double stepMax() const { return myStepMax; };
48  void setStepMax(double stepMax) { myStepMax = stepMax; };
49 
50  double slopeMax() const { return mySlopeMax; };
51  void setSlopeMax(double slopeMax) { mySlopeMax = slopeMax; };
52 
53  double rasterPrecision() const { return myRasterPrecision; };
54  void setRasterPrecision(double precision) { myRasterPrecision = precision; };
55 
56  bool generateAbstractData() const { return myGenerateAbstractData;};
57  void setGenerateAbstractData(bool yesNo) { myGenerateAbstractData = yesNo; };
58 
59  bool generateCoverPoints() const { return myGenerateCoverPoints; };
60  void setGenerateCoverPoints(bool yesNo) { myGenerateCoverPoints = yesNo; };
61 
62  int regenerationPriority() const { return myRegenPriority; };
63  void setGenerateAbstractData(int priority) { myRegenPriority = priority; };
64 
65  DtRwStringList& regenForDynamicTerrainTypes() { return myRegenForDynamicTerrainTypes; };
66  const DtRwStringList& regenForDynamicTerrainTypes() const { return myRegenForDynamicTerrainTypes; };
67 
68  DtRwNavigationProfileSoilTypeEntryList& soilTypeEntryList() { return mySoilTypeEntryList; };
69  const DtRwNavigationProfileSoilTypeEntryList& soilTypeEntryList() const { return mySoilTypeEntryList; };
70  const DtRwNavigationProfileSoilTypeEntry* soilTypeEntry(const DtString& soilType) const;
71 
72  DtRwNavigationProfileFeatureEntryList& featureEntryList() { return myFeatureEntryList; };
73  const DtRwNavigationProfileFeatureEntryList& featureEntryList() const { return myFeatureEntryList; };
74 
75  DtRwNavigationProfileGenEntryList& navEdgeEntryList() { return myNavEdgeEntryList; };
76  const DtRwNavigationProfileGenEntryList& navEdgeEntryList() const { return myNavEdgeEntryList; };
77 
78  DtRwNavigationProfileGenEntryList& navPointEntryList() { return myNavPointEntryList; };
79  const DtRwNavigationProfileGenEntryList& navPointEntryList() const { return myNavPointEntryList; };
80 
81 protected:
82  DtRwReal myEntityHeight;
95 };
96 
98 {
99 public:
100 
101  //Default constructor
103 
104  //Real constructors
106  DtReaderWriterRegistry* parentRegistry = NULL);
108  DtReaderWriterRegistry* parentRegistry = NULL);
109 
110  //Copy constructor
112 
113  virtual DtString pluginPath() const;
114  virtual void setPluginPath(const DtString& p);
115 
116 protected:
117 
118  static const DtString& platform();
119 
125 
131 };
132 
134 {
135 public:
138 
140  DtRwNavigationProfileList(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL);
141 
142  DtRwNavigationProfileList(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL);
143 
145  DtReaderWriterRegistry* parentRegistry = NULL);
146 
148  DtReaderWriterRegistry* parentRegistry = NULL);
149 
151  DtReaderWriterRegistry* parentRegistry = NULL);
152 
153  virtual DtRwNavigationProfile* getProfileByName(const DtString& profileName) const;
154 
156 
157 
158  int maxCells() const { return myMaxCells; };
159  void setMaxCells(int maxCells) { myMaxCells = maxCells; };
160 
161  double areaDepth() const { return myAreaDepth; };
162  void setAreaDepth(double depth) { myAreaDepth = depth; };
163 
164  double areaHeight() const { return myAreaHeight; };
165  void setAreaHeight(double height) { myAreaHeight = height; };
166 
167  const std::set<DtFilename>& plugins() const;
168  void setPlugins(const std::set<DtFilename>& pluginPaths);
169 
170 protected:
176 
178  mutable std::set<DtFilename> myPluginFiles;
179 };
180 
181 bool DT_DLL_vrfutil ReadFromFile(const DtFilename& filePath, DtRwNavigationProfileList* input);
182 bool DT_DLL_vrfutil WriteToFile(const DtFilename& filePath, DtRwNavigationProfileList* input);

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)