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
appsrc
vctBlaster
textIf.h
Go to the documentation of this file.
1
/******************************************************************************
2
* Copyright (c) 2015 MaK Technologies, Inc.
3
* All rights reserved.
4
******************************************************************************/
5
6
#pragma once
7
8
#include <vlutil/vlUtil.h>
9
#include <vlpi/entityIdentifier.h>
10
11
#include <string>
12
#include <map>
13
#include <list>
14
15
#include <boost/bind.hpp>
16
#include <boost/function.hpp>
17
20
21
class
DtExerciseConn;
22
23
namespace
vrvControlToolkit
24
{
25
struct
DtVrvControl_v1;
26
}
27
28
class
DtTextInterface
29
{
30
public
:
31
32
typedef
std::list<std::string>
TokenList
;
33
typedef
TokenList::const_iterator
TokenIter
;
34
typedef
std::map<std::string, boost::function<void (const TokenList& )> >
CommandMap
;
35
36
DtTextInterface
(DtExerciseConn*
controller
);
37
virtual
~DtTextInterface
();
38
40
void
readStdin
();
41
43
virtual
void
setTimeToQuit
(
bool
yesNo);
44
virtual
bool
timeToQuit
()
const
;
45
46
void
helpCmd
(
const
TokenList
& tokens);
47
void
quitCmd
(
const
TokenList
& tokens);
48
50
void
resetViewCmd
(
const
TokenList
& tokens);
51
void
absViewCmd
(
const
TokenList
& tokens);
52
void
followViewCmd
(
const
TokenList
& tokens);
53
void
mimicViewCmd
(
const
TokenList
& tokens);
54
void
tetherViewCmd
(
const
TokenList
& tokens);
55
void
trackViewCmd
(
const
TokenList
& tokens);
56
void
mimicTrackViewCmd
(
const
TokenList
& tokens);
57
void
tetherTrackViewCmd
(
const
TokenList
& tokens);
58
void
mimicLocationTrackViewCmd
(
const
TokenList
& tokens);
59
void
tetherLocationTrackViewCmd
(
const
TokenList
& tokens);
60
void
spaceFollowViewCmd
(
const
TokenList
& tokens);
61
void
observerSettingCmd
(
unsigned
int
settingType,
const
TokenList
& tokens);
62
63
void
groundClampingCmd
(
const
TokenList
& tokens);
64
void
modelSetCmd
(
const
TokenList
& tokens);
65
void
tacticalGraphicsCmd
(
const
TokenList
& tokens);
66
void
tacticalGraphicsLabelsCmd
(
const
TokenList
& tokens);
67
void
radioCommsCmd
(
const
TokenList
& tokens );
68
void
commLinesCmd
(
const
TokenList
& tokens );
69
void
squawkIndicatorsCmd
(
const
TokenList
& tokens );
70
void
entityLabelsCmd
(
const
TokenList
& tokens);
71
void
entitySmoothingCmd
(
const
TokenList
& tokens);
72
void
fireDetonateLinesCmd
(
const
TokenList
& tokens);
73
void
fogCmd
(
const
TokenList
& tokens);
74
void
hazeCmd
(
const
TokenList
& tokens);
75
void
precipitationCmd
(
const
TokenList
& tokens);
76
void
cloudLayersCmd
(
const
TokenList
& tokens);
77
void
dateTimeCmd
(
const
TokenList
& tokens);
78
void
timeScaleCmd
(
const
TokenList
& tokens);
79
void
shadowCmd
(
const
TokenList
& tokens);
80
void
shadowSettingsCmd
(
const
TokenList
& tokens);
81
void
performanceStatsCmd
(
const
TokenList
& tokens);
82
void
hudsCmd
(
const
TokenList
& tokens);
83
void
remoteGraphicsSetCmd
(
const
TokenList
& tokens);
84
void
wireframeCmd
(
const
TokenList
& tokens);
85
void
observerModeCmd
(
const
TokenList
& tokens);
86
void
zoomCmd
(
const
TokenList
& tokens);
87
void
viewMagnificationCmd
(
const
TokenList
& tokens);
88
void
sensorModeCmd
(
const
TokenList
& tokens);
89
void
sensorBoolParameterCmd
(
const
TokenList
& tokens);
90
void
sensorFloatParameterCmd
(
const
TokenList
& tokens);
91
void
sensorStringParameterCmd
(
const
TokenList
& tokens);
92
void
sensorIntParameterCmd
(
const
TokenList
& tokens);
93
void
streamingVideoCmd
(
const
TokenList
& tokens);
94
void
observerSpeedLinearCmd
(
const
TokenList
& tokens);
95
void
observerSpeedRotationalCmd
(
const
TokenList
& tokens);
96
void
observerSpeedOrbitalCmd
(
const
TokenList
& tokens);
97
void
modelScaleTypeCmd
(
const
TokenList
& tokens);
98
void
modelScaleFactorCmd
(
const
TokenList
& tokens);
99
void
projectionCmd
(
const
TokenList
& tokens);
100
void
audioCmd
(
const
TokenList
& tokens);
101
void
audioVolumeCmd
(
const
TokenList
& tokens);
102
void
terrainScalingCmd
(
const
TokenList
& tokens);
103
void
terrainScaleFactorCmd
(
const
TokenList
& tokens);
104
void
trackHistoryRibbonLengthCmd
(
const
TokenList
& tokens);
105
void
trackHistoryRibbonSpacingCmd
(
const
TokenList
& tokens);
106
void
observerModeRestoreCmd
(
const
TokenList
& tokens);
107
void
savedViewCmd
(
const
TokenList
& tokens);
108
void
advancedLightingCmd
(
const
TokenList
& tokens);
109
void
planarReflectionsCmd
(
const
TokenList
& tokens);
110
void
lensFlareCmd
(
const
TokenList
& tokens);
111
void
crepuscularRaysCmd
(
const
TokenList
& tokens);
112
void
rainSplashCmd
(
const
TokenList
& tokens);
113
void
waveSplashCmd
(
const
TokenList
& tokens);
114
void
oceanSprayCmd
(
const
TokenList
& tokens);
115
void
depthOfFieldCmd
(
const
TokenList
& tokens);
116
void
entityHatCmd
(
const
TokenList
& tokens);
117
void
tacticalGraphicsHatCmd
(
const
TokenList
& tokens);
118
void
emitterVolumesCmd
(
const
TokenList
& tokens);
119
void
senderIdCmd
(
const
TokenList
& tokens);
120
void
receiverIdCmd
(
const
TokenList
& tokens);
121
void
wakesCmd
(
const
TokenList
& tokens);
122
void
laserDesignatorsCmd
(
const
TokenList
& tokens);
123
void
wavesSprayEffectCmd
(
const
TokenList
& tokens);
124
void
rotorWashDecalCmd
(
const
TokenList
& tokens);
125
void
seaStateCmd
(
const
TokenList
& tokens);
// sea state and optional direction (forces manual driven)
126
void
seaStateCtrlCmd
(
const
TokenList
& tokens);
// wind driven or manual
127
void
swellStateCmd
(
const
TokenList
& tokens);
// swell state and optional direction
128
void
depthOfFieldAutoFocusCmd
(
const
TokenList
& tokens);
129
void
depthOfFieldFocusDistanceCmd
(
const
TokenList
& tokens);
130
void
depthOfFieldDepthCmd
(
const
TokenList
& tokens);
131
void
windDirectionCmd
(
const
TokenList
& tokens);
132
void
windSpeedCmd
(
const
TokenList
& tokens);
133
void
visibilityCmd
(
const
TokenList
& tokens);
134
void
cloudCoverCmd
(
const
TokenList
& tokens);
135
void
observerCameraShakeCmd
(
const
TokenList
& tokens);
136
void
observerCameraShakeIntensityCmd
(
const
TokenList
& tokens);
137
void
pagedLodMagnificationHighLodAngleCmd
(
const
TokenList
& tokens);
138
139
void
useGlobalTimeZoneCmd
(
const
TokenList
& tokens);
140
void
detachViewCmd
(
const
TokenList
& tokens);
141
void
hideModelOnAttachCmd
(
const
TokenList
& tokens);
142
143
// Test for example
144
void
diffuseLightScaleCmd
(
const
TokenList
& tokens);
145
void
ambientLightScaleCmd
(
const
TokenList
& tokens);
146
147
// public for using the command line interface
148
void
processCmd
(
const
std::string& buff);
149
150
protected
:
151
152
void
prompt
();
153
TokenList
tokenize
(
const
std::string& str,
const
std::string& delim);
154
void
packageAndSend
(
vrvControlToolkit::DtVrvControl_v1
* cmd );
155
156
bool
myTimeToQuit
;
157
DtExerciseConn*
myExconn
;
158
CommandMap
myCommands
;
159
DtEntityIdentifier
mySenderId
;
160
DtEntityIdentifier
myReceiverId
;
161
162
};
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
)