VR-Forces Development_Version 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
19
23
class
DT_DLL_vrfutil
DtRwNavigationProfile
:
public
DtReaderWriter
24
{
25
public
:
26
27
//Default constructor
28
DtRwNavigationProfile
();
29
30
//Real constructors
31
DtRwNavigationProfile
(
const
DtString
& name,
32
DtReaderWriterRegistry
* parentRegistry = NULL);
33
DtRwNavigationProfile
(
const
DtSymbolString
& name,
34
DtReaderWriterRegistry
* parentRegistry = NULL);
35
36
//Copy constructor
37
DtRwNavigationProfile
(
const
DtRwNavigationProfile
& orig);
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
64
DtRwNavigationProfileFeatureEntryList
&
featureEntryList
() {
return
myFeatureEntryList;};
65
const
DtRwNavigationProfileFeatureEntryList
& featureEntryList()
const
{
return
myFeatureEntryList;};
66
67
protected
:
68
DtRwReal
myEntityHeight;
69
DtRwReal
myEntityRadius
;
70
DtRwReal
myStepMax
;
71
DtRwReal
mySlopeMax
;
72
DtRwIntegerList
myImpassableSoilTypes
;
73
DtRwIntegerList
myWaterSoilTypes
;
74
DtRwReal
myRasterPrecision
;
75
DtRwBoolean
myGenerateAbstractData
;
76
DtRwNavigationProfileFeatureEntryList
myFeatureEntryList
;
77
DtRwBoolean
myEnableRandomPoints
;
78
};
79
80
class
DT_DLL_vrfutil
DtRwNavigationProfileList
:
public
DtReaderWriter
81
{
82
public
:
84
DtRwNavigationProfileList
();
85
87
DtRwNavigationProfileList
(
const
DtString
& name,
DtReaderWriterRegistry
* parentRegistry = NULL);
88
89
DtRwNavigationProfileList
(
const
DtSymbolString
& name,
DtReaderWriterRegistry
* parentRegistry = NULL);
90
91
DtRwNavigationProfileList
(
const
DtString
& name,
const
DtRwNavigationProfileList
& orig,
92
DtReaderWriterRegistry
* parentRegistry = NULL);
93
94
DtRwNavigationProfileList
(
const
DtSymbolString
& name,
const
DtRwNavigationProfileList
& orig,
95
DtReaderWriterRegistry
* parentRegistry = NULL);
96
97
DtRwNavigationProfileList
(
const
DtRwNavigationProfileList
& orig,
98
DtReaderWriterRegistry
* parentRegistry = NULL);
99
100
virtual
DtRwNavigationProfile
* getProfileByName(
const
DtString
& profileName)
const
;
101
102
virtual
DtRwTemplatedListPtr<DtRwNavigationProfile, true>
&
profiles
() {
return
myProfiles; };
103
104
105
int
maxCells
()
const
{
return
myMaxCells; };
106
void
setMaxCells
(
int
maxCells) { myMaxCells = maxCells; };
107
108
protected
:
109
DtRwInt
myMaxCells;
110
DtRwTemplatedListPtr<DtRwNavigationProfile, true>
myProfiles
;
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
)