VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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"
19 
20 
25 {
26 public:
27 
28  //Default constructor
30 
31  //Real constructors
32  DtRwNavigationProfile(const DtString& name,
33  DtReaderWriterRegistry* parentRegistry = NULL);
35  DtReaderWriterRegistry* parentRegistry = NULL);
36 
37  //Copy constructor
39 
40  double entityHeight() const { return myEntityHeight; };
41  void setEntityHeight(double height) { myEntityHeight = height; };
42 
43  double entityRadius() const { return myEntityRadius; };
44  void setEntityRadius(double radius) { myEntityRadius = radius; };
45 
46  double stepMax() const { return myStepMax; };
47  void setStepMax(double stepMax) { myStepMax = stepMax; };
48 
49  double slopeMax() const { return mySlopeMax; };
50  void setSlopeMax(double slopeMax) { mySlopeMax = slopeMax; };
51 
52  double rasterPrecision() const { return myRasterPrecision; };
53  void setRasterPrecision(double precision) { myRasterPrecision = precision; };
54 
55  bool generateAbstractData() const { return myGenerateAbstractData;};
56  void setGenerateAbstractData(bool yesNo) {myGenerateAbstractData = yesNo;};
57 
58  DtRwNavigationProfileSoilTypeEntryList& soilTypeEntryList() { return mySoilTypeEntryList; };
59  const DtRwNavigationProfileSoilTypeEntryList& soilTypeEntryList() const { return mySoilTypeEntryList; };
60  const DtRwNavigationProfileSoilTypeEntry* soilTypeEntry(const DtString& soilType) const;
61 
62  DtRwNavigationProfileFeatureEntryList& featureEntryList() { return myFeatureEntryList; };
63  const DtRwNavigationProfileFeatureEntryList& featureEntryList() const { return myFeatureEntryList; };
64 
65 protected:
66  DtRwReal myEntityHeight;
74 };
75 
77 {
78 public:
81 
83  DtRwNavigationProfileList(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL);
84 
85  DtRwNavigationProfileList(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL);
86 
88  DtReaderWriterRegistry* parentRegistry = NULL);
89 
91  DtReaderWriterRegistry* parentRegistry = NULL);
92 
94  DtReaderWriterRegistry* parentRegistry = NULL);
95 
96  virtual DtRwNavigationProfile* getProfileByName(const DtString& profileName) const;
97 
99 
100 
101  int maxCells() const { return myMaxCells; };
102  void setMaxCells(int maxCells) { myMaxCells = maxCells; };
103 
104 protected:
105  DtRwInt myMaxCells;
107 };
108 
109 bool DT_DLL_vrfutil ReadFromFile(const DtFilename& filePath, DtRwNavigationProfileList* input);
110 bool DT_DLL_vrfutil WriteToFile(const DtFilename& filePath, DtRwNavigationProfileList* input);

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)