VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
textIf.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (c) 2012 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 spaceFollowViewCmd(const TokenList& tokens);
59  void observerSettingCmd(unsigned int settingType, const TokenList& tokens);
60 
61  void groundClampingCmd(const TokenList& tokens);
62  void modelSetCmd(const TokenList& tokens);
63  void tacticalGraphicsCmd(const TokenList& tokens);
64  void tacticalGraphicsLabelsCmd(const TokenList& tokens);
65  void radioCommsCmd( const TokenList& tokens );
66  void commLinesCmd( const TokenList& tokens );
67  void squawkIndicatorsCmd( const TokenList& tokens );
68  void entityLabelsCmd(const TokenList& tokens);
69  void entitySmoothingCmd(const TokenList& tokens);
70  void fireDetonateLinesCmd(const TokenList& tokens);
71  void fogCmd(const TokenList& tokens);
72  void hazeCmd(const TokenList& tokens);
73  void precipitationCmd(const TokenList& tokens);
74  void cloudLayersCmd(const TokenList& tokens);
75  void dateTimeCmd(const TokenList& tokens);
76  void timeScaleCmd(const TokenList& tokens);
77  void shadowCmd(const TokenList& tokens);
78  void shadowSettingsCmd(const TokenList& tokens);
79  void performanceStatsCmd(const TokenList& tokens);
80  void hudsCmd(const TokenList& tokens);
81  void remoteGraphicsSetCmd(const TokenList& tokens);
82  void wireframeCmd(const TokenList& tokens);
83  void observerModeCmd(const TokenList& tokens);
84  void zoomCmd(const TokenList& tokens);
85  void viewMagnificationCmd(const TokenList& tokens);
86  void sensorModeCmd(const TokenList& tokens);
87  void sensorBoolParameterCmd(const TokenList& tokens);
88  void sensorFloatParameterCmd(const TokenList& tokens);
89  void sensorStringParameterCmd(const TokenList& tokens);
90  void sensorIntParameterCmd(const TokenList& tokens);
91  void streamingVideoCmd(const TokenList& tokens);
92  void observerSpeedLinearCmd(const TokenList& tokens);
93  void observerSpeedRotationalCmd(const TokenList& tokens);
94  void observerSpeedOrbitalCmd(const TokenList& tokens);
95  void modelScaleTypeCmd(const TokenList& tokens);
96  void modelScaleFactorCmd(const TokenList& tokens);
97  void projectionCmd(const TokenList& tokens);
98  void audioCmd(const TokenList& tokens);
99  void audioVolumeCmd(const TokenList& tokens);
100  void terrainScalingCmd(const TokenList& tokens);
101  void terrainScaleFactorCmd(const TokenList& tokens);
102  void trackHistoryRibbonLengthCmd(const TokenList& tokens);
103  void trackHistoryRibbonSpacingCmd(const TokenList& tokens);
104  void observerModeRestoreCmd(const TokenList& tokens);
105  void savedViewCmd(const TokenList& tokens);
106  void advancedLightingCmd(const TokenList& tokens);
107  void planarReflectionsCmd(const TokenList& tokens);
108  void lensFlareCmd(const TokenList& tokens);
109  void crepuscularRaysCmd(const TokenList& tokens);
110  void rainSplashCmd(const TokenList& tokens);
111  void waveSplashCmd(const TokenList& tokens);
112  void oceanSprayCmd(const TokenList& tokens);
113  void depthOfFieldCmd(const TokenList& tokens);
114  void entityHatCmd(const TokenList& tokens);
115  void tacticalGraphicsHatCmd(const TokenList& tokens);
116  void emitterVolumesCmd(const TokenList& tokens);
117  void senderIdCmd(const TokenList& tokens);
118  void receiverIdCmd(const TokenList& tokens);
119  void wakesCmd(const TokenList& tokens);
120  void laserDesignatorsCmd(const TokenList& tokens);
121  void wavesSprayEffectCmd(const TokenList& tokens);
122  void rotorWashDecalCmd(const TokenList& tokens);
123  void seaStateCmd(const TokenList& tokens); // sea state and optional direction (forces manual driven)
124  void seaStateCtrlCmd(const TokenList& tokens); // wind driven or manual
125  void swellStateCmd(const TokenList& tokens); // swell state and optional direction
126 
127  // public for using the command line interface
128  void processCmd(const std::string& buff);
129 
130 protected:
131 
132  void prompt();
133  TokenList tokenize(const std::string& str, const std::string& delim);
135 
136  bool myTimeToQuit;
137  DtExerciseConn* myExconn;
139  DtEntityIdentifier mySenderId;
140  DtEntityIdentifier myReceiverId;
141 
142 };

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)