VR-Forces 4.6 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 
11 #include "vrfutil/readerWriter.h"
12 #include "vrfutil/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  DtRwNavigationProfileEdgeEntryList& navEdgeEntryList() { return myNavEdgeEntryList; };
76  const DtRwNavigationProfileEdgeEntryList& navEdgeEntryList() const { return myNavEdgeEntryList; };
77 
78 protected:
79  DtRwReal myEntityHeight;
91 };
92 
94 {
95 public:
98 
100  DtRwNavigationProfileList(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL);
101 
102  DtRwNavigationProfileList(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL);
103 
105  DtReaderWriterRegistry* parentRegistry = NULL);
106 
108  DtReaderWriterRegistry* parentRegistry = NULL);
109 
111  DtReaderWriterRegistry* parentRegistry = NULL);
112 
113  virtual DtRwNavigationProfile* getProfileByName(const DtString& profileName) const;
114 
116 
117 
118  int maxCells() const { return myMaxCells; };
119  void setMaxCells(int maxCells) { myMaxCells = maxCells; };
120 
121 protected:
122  DtRwInt myMaxCells;
124 };
125 
126 bool DT_DLL_vrfutil ReadFromFile(const DtFilename& filePath, DtRwNavigationProfileList* input);
127 bool DT_DLL_vrfutil WriteToFile(const DtFilename& filePath, DtRwNavigationProfileList* input);

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)