VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfutil
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
"
14
#include "
vrfutil/rwTemplatedList.h
"
15
16
#include "
vrfutil/vrfutilDefines.h
"
17
#include "
vrfutil/rwNavigationProfileFeatureEntry.h
"
18
#include "
vrfutil/rwNavigationProfileSoilTypeEntry.h
"
19
20
24
class
DT_DLL_vrfutil
DtRwNavigationProfile
:
public
DtReaderWriter
25
{
26
public
:
27
28
//Default constructor
29
DtRwNavigationProfile
();
30
31
//Real constructors
32
DtRwNavigationProfile
(
const
DtString
& name,
33
DtReaderWriterRegistry
* parentRegistry = NULL);
34
DtRwNavigationProfile
(
const
DtSymbolString
& name,
35
DtReaderWriterRegistry
* parentRegistry = NULL);
36
37
//Copy constructor
38
DtRwNavigationProfile
(
const
DtRwNavigationProfile
& orig);
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;
67
DtRwReal
myEntityRadius
;
68
DtRwReal
myStepMax
;
69
DtRwReal
mySlopeMax
;
70
DtRwReal
myRasterPrecision
;
71
DtRwBoolean
myGenerateAbstractData
;
72
DtRwNavigationProfileSoilTypeEntryList
mySoilTypeEntryList
;
73
DtRwNavigationProfileFeatureEntryList
myFeatureEntryList
;
74
};
75
76
class
DT_DLL_vrfutil
DtRwNavigationProfileList
:
public
DtReaderWriter
77
{
78
public
:
80
DtRwNavigationProfileList
();
81
83
DtRwNavigationProfileList
(
const
DtString
& name,
DtReaderWriterRegistry
* parentRegistry = NULL);
84
85
DtRwNavigationProfileList
(
const
DtSymbolString
& name,
DtReaderWriterRegistry
* parentRegistry = NULL);
86
87
DtRwNavigationProfileList
(
const
DtString
& name,
const
DtRwNavigationProfileList
& orig,
88
DtReaderWriterRegistry
* parentRegistry = NULL);
89
90
DtRwNavigationProfileList
(
const
DtSymbolString
& name,
const
DtRwNavigationProfileList
& orig,
91
DtReaderWriterRegistry
* parentRegistry = NULL);
92
93
DtRwNavigationProfileList
(
const
DtRwNavigationProfileList
& orig,
94
DtReaderWriterRegistry
* parentRegistry = NULL);
95
96
virtual
DtRwNavigationProfile
* getProfileByName(
const
DtString
& profileName)
const
;
97
98
virtual
DtRwTemplatedListPtr<DtRwNavigationProfile, true>
&
profiles
() {
return
myProfiles; };
99
100
101
int
maxCells
()
const
{
return
myMaxCells; };
102
void
setMaxCells
(
int
maxCells) { myMaxCells = maxCells; };
103
104
protected
:
105
DtRwInt
myMaxCells;
106
DtRwTemplatedListPtr<DtRwNavigationProfile, true>
myProfiles
;
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
)