VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfNavigation
navSectorName.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2017 MaK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include <
vrfNavigation/vrfNavigationDefines.h
>
12
#include <vlutil/vlString.h>
13
14
enum
DtNavSectorDataType
15
{
16
UnknownNavDataType
,
17
NavDataType
,
18
TransitionPointType
,
19
CoverPointType
,
20
NavEdgeType
,
21
NavPointType
22
};
23
25
class
DT_DLL_vrfNavigation
DtNavSectorName
26
{
27
public
:
28
31
DtNavSectorName
(
const
DtNavSectorName
& other);
32
DtNavSectorName
(
const
DtString
& fullName);
33
DtNavSectorName
(
const
DtString
& profile,
int
x,
int
y,
DtNavSectorDataType
navDataType,
34
const
DtString
& randomId);
35
DtNavSectorName
(
const
DtString
& profile,
DtNavSectorDataType
navDataType,
const
DtString
& randomId);
36
37
39
const
DtString
& fullName()
const
;
40
42
const
DtString
& baseName()
const
;
43
45
const
DtString
& profile()
const
;
46
48
void
setProfile(
const
DtString
& prof);
49
51
int
x()
const
;
52
54
int
y()
const
;
55
57
void
setCoordinates(
int
x,
int
y);
58
60
DtNavSectorDataType
navDataType()
const
;
61
63
void
setNavDataType(
DtNavSectorDataType
dataType);
64
66
const
DtString
& randomId()
const
;
67
69
void
setRandomId(
const
DtString
& rId);
70
72
static
DtString
generateRandomId(
unsigned
length = 4);
73
76
virtual
bool
operator<(
const
DtNavSectorName
& rhs)
const
;
77
virtual
bool
operator>
(
const
DtNavSectorName
& rhs)
const
;
78
virtual
bool
operator<=(
const
DtNavSectorName
& rhs)
const
;
79
virtual
bool
operator>=(
const
DtNavSectorName
& rhs)
const
;
80
virtual
bool
operator==
(
const
DtNavSectorName
& rhs)
const
;
81
virtual
bool
operator!=
(
const
DtNavSectorName
& rhs)
const
;
83
86
static
DtString
navDataTypeToString(
DtNavSectorDataType
& dt);
87
static
DtNavSectorDataType
navDataTypeFromString(
const
DtString
& dtStr);
89
90
protected
:
91
93
void
assembleFullName()
const
;
94
96
void
parseFullName()
const
;
97
101
mutable
DtString
myFullName
;
102
mutable
DtString
myBaseName
;
103
mutable
DtString
myProfile
;
104
mutable
int
myX
;
105
mutable
int
myY
;
106
mutable
DtNavSectorDataType
myNavDataType
;
107
mutable
DtString
myRandomId
;
108
};
109
110
111
DT_DLL_vrfNavigation
std::ostream&
operator<<
(std::ostream&,
const
DtNavSectorName
&);
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)