VR-Forces Development_Version 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"
18 
19 
24 {
25 public:
26 
27  //Default constructor
29 
30  //Real constructors
31  DtRwNavigationProfile(const DtString& name,
32  DtReaderWriterRegistry* parentRegistry = NULL);
34  DtReaderWriterRegistry* parentRegistry = NULL);
35 
36  //Copy constructor
38 
39  double entityHeight() const { return myEntityHeight; };
40  void setEntityHeight(double height) { myEntityHeight = height; };
41 
42  double entityRadius() const { return myEntityRadius; };
43  void setEntityRadius(double radius) { myEntityRadius = radius; };
44 
45  double stepMax() const { return myStepMax; };
46  void setStepMax(double stepMax) { myStepMax = stepMax; };
47 
48  double slopeMax() const { return mySlopeMax; };
49  void setSlopeMax(double slopeMax) { mySlopeMax = slopeMax; };
50 
51  DtRwIntegerList& impassableSoilTypes() { return myImpassableSoilTypes; };
52 
53  DtRwIntegerList& waterSoilTypes() { return myWaterSoilTypes; };
54 
55  double rasterPrecision() const { return myRasterPrecision; };
56  void setRasterPrecision(double precision) { myRasterPrecision = precision; };
57 
58  bool generateAbstractData() const { return myGenerateAbstractData;};
59  void setGenerateAbstractData(bool yesNo) {myGenerateAbstractData = yesNo;};
60 
61  bool enableRandomPoints() const {return myEnableRandomPoints;};
62  void setEnableRandomPoints(bool yesNo) {myEnableRandomPoints = yesNo;};
63 
65  const DtRwNavigationProfileFeatureEntryList& featureEntryList() const {return myFeatureEntryList;};
66 
67 protected:
68  DtRwReal myEntityHeight;
78 };
79 
81 {
82 public:
85 
87  DtRwNavigationProfileList(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL);
88 
89  DtRwNavigationProfileList(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL);
90 
92  DtReaderWriterRegistry* parentRegistry = NULL);
93 
95  DtReaderWriterRegistry* parentRegistry = NULL);
96 
98  DtReaderWriterRegistry* parentRegistry = NULL);
99 
100  virtual DtRwNavigationProfile* getProfileByName(const DtString& profileName) const;
101 
103 
104 
105  int maxCells() const { return myMaxCells; };
106  void setMaxCells(int maxCells) { myMaxCells = maxCells; };
107 
108 protected:
109  DtRwInt myMaxCells;
111 };
112 
113 bool DT_DLL_vrfutil ReadFromFile(const DtFilename& filePath, DtRwNavigationProfileList* input);
114 bool DT_DLL_vrfutil WriteToFile(const DtFilename& filePath, DtRwNavigationProfileList* input);

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)