VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtStealthCommandLineProcessor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <cmdLine/cmdArg.h>
15 
16 namespace makVrv
17 {
21  {
22  public:
23 
26 
29 
31  virtual void processCommandLine(DtVrvApplicationConfiguration& appConfig,
32  int argc, char** argv);
33 
37 
38  protected:
39 
40  struct StealthArgs
41  {
42  DtCmdLine::UnlabeledMultiArg<std::string>* fileToOpenArg;
44  DtCmdLine::ValueArg<std::string>* localeArg;
45  DtCmdLine::ValueArg<int>* notifyLevelArg;
46  DtCmdLine::ValueArg<std::string>* logFilenameArg;
47  DtCmdLine::ValueArg<std::string>* modelPreloadFilenameArg;
48  DtCmdLine::ValueArg<std::string>* discoveredModelPreloadFilenameArg;
49  DtCmdLine::ValueArg<std::string>* userDataDir;
50  DtCmdLine::ValueArg<std::string>* appDataDir;
51  DtCmdLine::ValueArg<std::string>* dataDir;
52  DtCmdLine::ValueArg<std::string>* factoryRootDir;
53  DtCmdLine::MultiArg<std::string>* addPlugin;
54  DtCmdLine::MultiArg<std::string>* excludePlugin;
55  DtCmdLine::ValueArg<unsigned short>* displayEnginePortArg;
56  DtCmdLine::MultiArg<std::string>* connectToDisplayEnginesArg;
57  DtCmdLine::ValueArg<std::string>* loadDisplayConfig;
58  DtCmdLine::ValueArg<std::string>* loadEnvironmentConfig;
59  DtCmdLine::ValueArg<std::string>* loadEntityDisplayConfig;
60  DtCmdLine::MultiArg<std::string>* autoDriverArg;
61  DtCmdLine::MultiArg<std::string>* mappingsConfig;
62  DtCmdLine::MultiArg<std::string>* loadObserverViewsArg;
63  DtCmdLine::MultiArg<std::string>* bindObserverStateArg;
65  DtCmdLine::MultiArg<std::string>* entityDefsHierFilesOrDirs;
66  DtCmdLine::MultiArg<std::string>* entityDefsLeafFilesOrDirs;
67  DtCmdLine::MultiArg<std::string>* aggregateDefsHierFilesOrDirs;
68  DtCmdLine::MultiArg<std::string>* aggregateDefsLeafFilesOrDirs;
69  DtCmdLine::MultiArg<std::string>* tacticalGraphicsDefsHierFilesOrDirs;
70  DtCmdLine::MultiArg<std::string>* tacticalGraphicsDefsLeafFilesOrDirs;
71  DtCmdLine::MultiArg<std::string>* modelDefsFileOrDir;
72  DtCmdLine::MultiArg<std::string>* entityTypeMapFileOrDir;
73  DtCmdLine::MultiArg<std::string>* aggregateTypeMapFileOrDir;
74  DtCmdLine::MultiArg<std::string>* tacticalGraphicsTypeMapFileOrDir;
75 
76 
82  DtCmdLine::ValueArg<double>* tcpSendTimeout;
83  DtCmdLine::ValueArg<double>* autoReconnectPeriod;
84 
85  DtCmdLine::ValueArg<unsigned short>* numDepthBitsArg;
86  DtCmdLine::ValueArg<unsigned short>* numStencilBitsArg;
87  DtCmdLine::ValueArg<unsigned short>* antiAliasingArg;
88 
89  DtCmdLine::ValueArg<unsigned short>* frameRate;
91 
93 
96 
98 
100 
108  DtCmdLine::ValueArg<std::string>* entityDefsDir;
109  DtCmdLine::ValueArg<std::string>* tacticalGraphicsDefsDir;
110  DtCmdLine::ValueArg<std::string>* unitDefsDir;
111 
113 
114 #ifdef _WIN32
115 #ifndef _DEBUG
116  makVrv::SwitchArg* showConsoleArg;
118 #endif
119 #endif
121 
123 
124  DtCmdLine::ValueArg<unsigned short>* mainScreenNumArg;
126  DtCmdLine::ValueArg<std::string>* extraArgs;
127 
129 
130  DtCmdLine::ValueArg<std::string>* guiWindowRectangleArg;
131 
134 
149  DtCmdLine::ValueArg<std::string>* limitEntityTexturesArg = nullptr;
150 
157  DtCmdLine::ValueArg<std::string>* limitTerrainTexturesArg = nullptr;
158 
162  DtCmdLine::ValueArg<std::string>* limitEntityTexturesExclusionsArg = nullptr;
163 
167  DtCmdLine::ValueArg<std::string>* limitEarthTerrainTexturesArg = nullptr;
168 
172  DtCmdLine::ValueArg<std::string>* limitEarthSplattingTexturesArg = nullptr;
173 
177  DtCmdLine::ValueArg<std::string>* limitEarthVegetationTexturesArg = nullptr;
178 
189  DtCmdLine::ValueArg<int>* limitGpuMemoryPercentageArg = nullptr;
190 
200  DtCmdLine::ValueArg<std::string>* entityGridCellSizeArg = nullptr;
201 
203  DtCmdLine::ValueArg<std::string>* appCacheDir = nullptr;
204 
206 
207 
209  DtCmdLine::ValueArg<std::string>* sharedDataDir = nullptr;
210 
213  DtCmdLine::ValueArg<std::string>* sharedDataRoot = nullptr;
214 
217  DtCmdLine::ValueArg<std::string>* sharedDataStem = nullptr;
219 
222 
227 
233 
237 
239  DtCmdLine::ValueArg<std::string>* disableModelSetsArg = nullptr;
240 
243  DtCmdLine::ValueArg<unsigned short>* rendererThreadingModelArg = nullptr;
244 
247  };
248 
251  virtual void setupArguments(StealthArgs& args, std::vector<DtCmdLine::Arg*>& argumentOrder);
252 
254  virtual void processArgs(DtVrvApplicationConfiguration& appConfig, StealthArgs& args);
255 
259  virtual void setupShowConsoleEnv(StealthArgs& args);
260  };
261 }
262 
263 #define DtStealthCommandLineProcessor_INL_
264 #include <vrvCore/DtStealthCommandLineProcessor.inl>
265 #undef DtStealthCommandLineProcessor_INL_
makVrv::SwitchArg * suppressHatIntersectOnAttachArg
Definition: DtStealthCommandLineProcessor.h:95
DtCmdLine::ValueArg< std::string > * loadEnvironmentConfig
Definition: DtStealthCommandLineProcessor.h:58
DtCmdLine::ValueArg< unsigned short > * mainScreenNumArg
Definition: DtStealthCommandLineProcessor.h:124
DtCmdLine::ValueArg< int > * limitGpuMemoryPercentageArg
Optional argument to specify the cutoff beyond which vrv will not create new textures/buffers for inc...
Definition: DtStealthCommandLineProcessor.h:189
makVrv::SwitchArg * disableIndirectExternalRendererArg
Whether indirect uses a renderer outside of it The currently implemented external renderer minimizes ...
Definition: DtStealthCommandLineProcessor.h:232
makVrv::SwitchArg * overwriteMappingsOnMerge
Over write the default mappings when merging files via the commandline.
Definition: DtStealthCommandLineProcessor.h:246
makVrv::SwitchArg * fullScreen
Definition: DtStealthCommandLineProcessor.h:77
DtCmdLine::MultiArg< std::string > * excludePlugin
Definition: DtStealthCommandLineProcessor.h:54
makVrv::SwitchArg * enablePersistentShadowTechniqueArg
Enable Persistent shadow technique, shadows technique will always be active and shader uniform used t...
Definition: DtStealthCommandLineProcessor.h:236
DtCmdLine::ValueArg< std::string > * loadEntityDisplayConfig
Definition: DtStealthCommandLineProcessor.h:59
This file declares the class makVrvmakVrv::CmdLine.
DtCmdLine::ValueArg< std::string > * guiWindowRectangleArg
Definition: DtStealthCommandLineProcessor.h:130
Definition: DtStealthCommandLineProcessor.h:40
DtCmdLine::MultiArg< std::string > * entityTypeMapFileOrDir
Definition: DtStealthCommandLineProcessor.h:72
Contains makVrv::DtVrvCommandLineProcessor class.
DtCmdLine::ValueArg< unsigned short > * numStencilBitsArg
Definition: DtStealthCommandLineProcessor.h:86
virtual void processArgs(DtVrvApplicationConfiguration &appConfig, StealthArgs &args)
Modify the app configuration based on the passed-in command line arguments.
makVrv::SwitchArg * highestPriority
Definition: DtStealthCommandLineProcessor.h:79
DtCmdLine::ValueArg< int > * notifyLevelArg
Definition: DtStealthCommandLineProcessor.h:45
makVrv::SwitchArg * noAppDataModelDefsLoadingArg
Definition: DtStealthCommandLineProcessor.h:102
makVrv::SwitchArg * hasNTPSyncArg
Definition: DtStealthCommandLineProcessor.h:97
DtCmdLine::MultiArg< std::string > * tacticalGraphicsDefsHierFilesOrDirs
Definition: DtStealthCommandLineProcessor.h:69
virtual void processCommandLine(DtVrvApplicationConfiguration &appConfig, int argc, char **argv)
Parse the command line and modify the appConfig accordingly.
DtCmdLine::MultiArg< std::string > * entityDefsHierFilesOrDirs
Definition: DtStealthCommandLineProcessor.h:65
DtCmdLine::ValueArg< std::string > * sharedDataRoot
Set an alternate root for shared data. The version number plus the current stem (default is &quot;latest&quot;)...
Definition: DtStealthCommandLineProcessor.h:213
DtStealthCommandLineProcessor()
Creator a command line processor for Vantage Stealth.
DtCmdLine::MultiArg< std::string > * modelDefsFileOrDir
Definition: DtStealthCommandLineProcessor.h:71
DtCmdLine::ValueArg< std::string > * factoryRootDir
Definition: DtStealthCommandLineProcessor.h:52
virtual void setupArguments(StealthArgs &args, std::vector< DtCmdLine::Arg * > &argumentOrder)
Setup the list of arguments and their information. Broken into it&#39;s own function to make derrived app...
DtCmdLine::ValueArg< std::string > * appDataDir
Definition: DtStealthCommandLineProcessor.h:50
makVrv::SwitchArg * slaveModeArg
Definition: DtStealthCommandLineProcessor.h:43
DtCmdLine::ValueArg< std::string > * userDataDir
Definition: DtStealthCommandLineProcessor.h:49
makVrv::SwitchArg * enableMutexesOnIndirectStructures
Optional argument used to enable mutexes on indirect data structures. Tempory argument to help debugg...
Definition: DtStealthCommandLineProcessor.h:226
makVrv::SwitchArg * disableReverseZBufferArg
Definition: DtStealthCommandLineProcessor.h:125
makVrv::SwitchArg * noAppDataUnitDefsLoadingArg
Definition: DtStealthCommandLineProcessor.h:103
DtCmdLine::MultiArg< std::string > * aggregateTypeMapFileOrDir
Definition: DtStealthCommandLineProcessor.h:73
DtCmdLine::ValueArg< unsigned short > * rendererThreadingModelArg
The threading model of the renderer. See DtRendererThreadingModel.h.
Definition: DtStealthCommandLineProcessor.h:243
makVrv::SwitchArg * ignoreZoomForSpeedtreeLodArg
Definition: DtStealthCommandLineProcessor.h:94
DtCmdLine::MultiArg< std::string > * tacticalGraphicsTypeMapFileOrDir
Definition: DtStealthCommandLineProcessor.h:74
DtCmdLine::ValueArg< std::string > * limitEntityTexturesExclusionsArg
Optional argument to exclude certain model definitions from the entity limits sample usage: –limitEnt...
Definition: DtStealthCommandLineProcessor.h:162
makVrv::SwitchArg * noAppDataEntityDefsLoadingArg
Definition: DtStealthCommandLineProcessor.h:101
DtCmdLine::ValueArg< std::string > * limitTerrainTexturesArg
Optional argument to only use mip map levels at or below this resolution. This, essentially clamps te...
Definition: DtStealthCommandLineProcessor.h:157
DtCmdLine::ValueArg< std::string > * discoveredModelPreloadFilenameArg
Definition: DtStealthCommandLineProcessor.h:48
The DtVrvCommandLineProcessor is an interface for an application-specific command line parser...
Definition: DtVrvCommandLineProcessor.h:21
makVrv::SwitchArg * forceTextShapingArg
Definition: DtStealthCommandLineProcessor.h:122
DtCmdLine::ValueArg< unsigned short > * displayEnginePortArg
Definition: DtStealthCommandLineProcessor.h:55
DtCmdLine::ValueArg< std::string > * limitEarthVegetationTexturesArg
Optional argument to clamp earth vegetation textures to this resolution. Must be a power of 2...
Definition: DtStealthCommandLineProcessor.h:177
DtCmdLine::ValueArg< std::string > * sharedDataDir
Shared data options.
Definition: DtStealthCommandLineProcessor.h:209
The Stealth Application&#39;s command line processor.
Definition: DtStealthCommandLineProcessor.h:20
makVrv::SwitchArg * realizeMinimapModelSet
Definition: DtStealthCommandLineProcessor.h:112
DtCmdLine::ValueArg< std::string > * unitDefsDir
Definition: DtStealthCommandLineProcessor.h:110
makVrv::SwitchArg * noAppDataUnitTypeMapLoadingArg
Definition: DtStealthCommandLineProcessor.h:106
DtCmdLine::ValueArg< std::string > * logFilenameArg
Definition: DtStealthCommandLineProcessor.h:46
DtCmdLine::ValueArg< std::string > * extraArgs
Definition: DtStealthCommandLineProcessor.h:126
DtCmdLine::ValueArg< std::string > * entityDefsDir
Definition: DtStealthCommandLineProcessor.h:108
This owns a list of window configurations.
Definition: DtDisplayConfiguration.h:43
DtCmdLine::MultiArg< std::string > * mappingsConfig
Definition: DtStealthCommandLineProcessor.h:61
makVrv::SwitchArg * disableDynamicTerrainArg
Definition: DtStealthCommandLineProcessor.h:128
DtCmdLine::ValueArg< std::string > * dataDir
Definition: DtStealthCommandLineProcessor.h:51
DtCmdLine::ValueArg< std::string > * appCacheDir
Set the full path to use for caching terrain and model data.
Definition: DtStealthCommandLineProcessor.h:203
DtCmdLine::MultiArg< std::string > * entityDefsLeafFilesOrDirs
Definition: DtStealthCommandLineProcessor.h:66
DtCmdLine::ValueArg< unsigned short > * antiAliasingArg
Definition: DtStealthCommandLineProcessor.h:87
This owns a list of display engine configurations.
Definition: DtVrvApplicationConfiguration.h:32
virtual void setupShowConsoleEnv(StealthArgs &args)
Mostly for the artists, if you define VRV_SHOW_CONSOLE=1, you enable the console with notifyLevel 2 (...
DtCmdLine::MultiArg< std::string > * autoDriverArg
Definition: DtStealthCommandLineProcessor.h:60
makVrv::SwitchArg * enableDofConstraintsArg
Definition: DtStealthCommandLineProcessor.h:99
makVrv::SwitchArg * enableTracyProfiling
Optional argument used to enable tracy profiling on startup.
Definition: DtStealthCommandLineProcessor.h:221
DtCmdLine::ValueArg< std::string > * limitEarthTerrainTexturesArg
Optional argument to clamp earth terrain textures to this resolution. Must be a power of 2...
Definition: DtStealthCommandLineProcessor.h:167
DtCmdLine::ValueArg< std::string > * modelPreloadFilenameArg
Definition: DtStealthCommandLineProcessor.h:47
makVrv::SwitchArg * disableKdTreesArg
Definition: DtStealthCommandLineProcessor.h:120
makVrv::SwitchArg * noAppDataTacticalGraphicsDefsLoadingArg
Definition: DtStealthCommandLineProcessor.h:104
DtCmdLine::ValueArg< std::string > * tacticalGraphicsDefsDir
Definition: DtStealthCommandLineProcessor.h:109
DtCmdLine::ValueArg< std::string > * limitEarthSplattingTexturesArg
Optional argument to clamp earth splatting textures to this resolution. Must be a power of 2...
Definition: DtStealthCommandLineProcessor.h:172
makVrv::SwitchArg * disableTerrainObserverViewsArg
Definition: DtStealthCommandLineProcessor.h:64
DtCmdLine::ValueArg< double > * tcpSendTimeout
Definition: DtStealthCommandLineProcessor.h:82
virtual ~DtStealthCommandLineProcessor()
DTOR.
makVrv::SwitchArg * disableIndirectEntitiesArg
Definition: DtStealthCommandLineProcessor.h:90
DtCmdLine::MultiArg< std::string > * connectToDisplayEnginesArg
Definition: DtStealthCommandLineProcessor.h:56
makVrv::SwitchArg * noGui
Definition: DtStealthCommandLineProcessor.h:80
A simple switch argument.
Definition: DtVrvCmdSwitchArg.h:42
DtCmdLine::MultiArg< std::string > * aggregateDefsLeafFilesOrDirs
Definition: DtStealthCommandLineProcessor.h:68
makVrv::SwitchArg * pseudoFullScreen
Definition: DtStealthCommandLineProcessor.h:78
DtCmdLine::ValueArg< std::string > * localeArg
Definition: DtStealthCommandLineProcessor.h:44
DtCmdLine::ValueArg< std::string > * sharedDataStem
Set an alternate stem for shared data. This will be appended to the current shared data root (Default...
Definition: DtStealthCommandLineProcessor.h:217
DtCmdLine::ValueArg< std::string > * limitEntityTexturesArg
Optional argument to only use mip map levels at or below this resolution. This, essentially clamps te...
Definition: DtStealthCommandLineProcessor.h:149
DtCmdLine::ValueArg< std::string > * loadDisplayConfig
Definition: DtStealthCommandLineProcessor.h:57
DtCmdLine::UnlabeledMultiArg< std::string > * fileToOpenArg
Definition: DtStealthCommandLineProcessor.h:42
DtCmdLine::ValueArg< double > * autoReconnectPeriod
Definition: DtStealthCommandLineProcessor.h:83
makVrv::SwitchArg * noAppDataTacticalGraphicsTypeMapLoadingArg
Definition: DtStealthCommandLineProcessor.h:107
DtCmdLine::MultiArg< std::string > * loadObserverViewsArg
Definition: DtStealthCommandLineProcessor.h:62
makVrv::SwitchArg * enableVSync
Definition: DtStealthCommandLineProcessor.h:81
makVrv::SwitchArg * noAppDataEntityTypeMapLoadingArg
Definition: DtStealthCommandLineProcessor.h:105
DtCmdLine::MultiArg< std::string > * addPlugin
Definition: DtStealthCommandLineProcessor.h:53
DtCmdLine::ValueArg< std::string > * disableModelSetsArg
Optional argument to disable model sets.
Definition: DtStealthCommandLineProcessor.h:239
DtCmdLine::MultiArg< std::string > * bindObserverStateArg
Definition: DtStealthCommandLineProcessor.h:63
DtCmdLine::MultiArg< std::string > * tacticalGraphicsDefsLeafFilesOrDirs
Definition: DtStealthCommandLineProcessor.h:70
makVrv::SwitchArg * disableBufferClearUsesComputeArg
Definition: DtStealthCommandLineProcessor.h:92
DtCmdLine::ValueArg< std::string > * entityGridCellSizeArg
Entities (in indirect) are divided into a grid of cells. The cells have the same size. So, this is a regular (sparse) grid. This allows efficient higher level culling. You can adjust this using this argument. The default cell size is (5000, 5000, 5000) example usage: –entityGridCellSize &quot;2000&quot; or –entityGridCellSize &quot;2000 2000 2000&quot; or –entityGridCellSize &quot;2000 200 10000&quot; or –entityGridCellSize &quot;2000, 200, 10000&quot;.
Definition: DtStealthCommandLineProcessor.h:200
DtDisplayConfiguration embeddedDisplayConfig() const
Create a default embedded display config for the stealth (to be used if no config was loaded via comm...
makVrv::SwitchArg * disableErrorDialogArg
used by the autotest plugin to avoid stalling the tests when a terrain is missing.
Definition: DtStealthCommandLineProcessor.h:133
DtCmdLine::ValueArg< unsigned short > * numDepthBitsArg
Definition: DtStealthCommandLineProcessor.h:85
DtCmdLine::MultiArg< std::string > * aggregateDefsHierFilesOrDirs
Definition: DtStealthCommandLineProcessor.h:67
DtCmdLine::ValueArg< unsigned short > * frameRate
Definition: DtStealthCommandLineProcessor.h:89

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)