![]() |
VR-Forces 5.0.3 Developer's Guide
|
Responsible for maintaining and executing stealth commands. The stealth commands are of the format (in the stealth command vector) stealth command, display name, variables that are used for entry for the stealth command (see vrfScriptedTasksConstants.h)
When adding a stealth command a boost function is also associated with the command that will be used to execute that actual command. The variables that are sent will contain a match for the variable(s) supplied. Stealth commands act very much like a scripted task, but, instead of executing a lua script it sends a stealth command
Public Types | |
| typedef std::pair < DtSimulationAddress, DtString > | StealthObserver |
| typedef std::vector < StealthObserver > | StealthObservers |
Protected Types | |
| typedef std::map< DtString, DtStealthCommandExecutorFcn > | StealthCommandExecutors |
Protected Member Functions | |
| virtual void | initializeResetCommand () |
| virtual void | initializeDetachCommand () |
| virtual void | initializeMimicCommand () |
| virtual void | initializeTetherCommand () |
| virtual void | initializeFollowCommand () |
| virtual void | initializeTrackCommand () |
| virtual void | initializeTetherTrackCommand () |
| virtual void | initializeTetherLocationTrackCommand () |
| virtual void | initializeMimicLocationTrackCommand () |
| virtual void | initializeSetLocationCommand () |
| virtual void | initializeUseViewModeCommand () |
| virtual void | processStealthCommandsRequest (DtIfRequestStealthCommands *msg) |
Static Protected Member Functions | |
| static void | stealthCommandsRequestCallback (DtSimMessage *msg, void *usr) |
Protected Attributes | |
| DtSimulationServices * | mySimulationServices |
| DtStealthCommands | myStealthCommands |
| StealthCommandExecutors | myStealthCommandExecutors |
| typedef std::pair<DtSimulationAddress, DtString> DtStealthCommandsManager::StealthObserver |
Returns stealth address/observer name pairs to send messages to.
| typedef std::vector<StealthObserver> DtStealthCommandsManager::StealthObservers |
|
protected |
| DtStealthCommandsManager::DtStealthCommandsManager | ( | DtSimulationServices * | simManager | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Calls register callbacks and default stealth commands.
|
virtual |
Adds a new stealth command. Once added you can add/remove variables to that command using the keyword. If the keyword exists will replace the existing command.
|
virtual |
Removes the stealth command with the given keyword.
|
virtual |
Adds a stealth command selector variable to the given command. Variable name will be "observer" and the display string "Select Observer". This control will also add a "Broadcast" check box.
|
virtual |
Adds an observer mode (Stealth, Plan View, etc.) selector to the command with a variable called "observermode".
|
virtual |
Adds a selector to select an entity/aggegate to attach to. Will create a variable called "attachto".
|
virtual |
Adds a selector to select an entity/aggegate to attach to. Will create a variable called "track".
|
virtual |
Adds a body position entry for offset. Will create a variable called "bodypositionoffset".
|
virtual |
Adds a location entry. Will create a variable called "location".
|
virtual |
Adds an offset orientation entry for offset. Will create a variable called "orientationoffset".
|
virtual |
Adds a selector for a saved (or current) observer view to use.
|
virtual |
Adds a time control to set the transition time to move the camera from the current to the new position.
| StealthObservers DtStealthCommandsManager::getStealthObservers | ( | const DtRwVariableBindings & | ) | const |
|
virtual |
Executes the given stealth command by it's registered executor function.
|
virtual |
Sets the observer mode to the given mode for all the observers in the variable bindings.
|
virtual |
Returns global object identifier of attached entity.
|
virtual |
Executes the stealth reset to reset the stealth to the appropriate origin/orientation. Variables: observers - String list of observers to send message to. If blank sends to all.
|
virtual |
Executes the stealth detach to detach the stealth observers - String list of observers to send message to. If blank sends to all.
|
virtual |
Executes the stealth mimic attach command Variables: observers - String list of observers to send message to. If blank sends to all observermode - Mode to setthe observers to (Stealth, Plan View, etc) attachto - Entity to attach to.
|
virtual |
Executes the stealth tether attach command Variables: observers - String list of observers to send message to. If blank sends to all observermode - Mode to setthe observers to (Stealth, Plan View, etc) attachto - Entity to attach to bodypositionoffset - Location offset from the origin of the entity to place the camera orientationoffset - Orientation offset to place the location.
|
virtual |
Executes the stealth tether location track command Variables: observers - String list of observers to send message to. If blank sends to all observermode - Mode to setthe observers to (Stealth, Plan View, etc) attachto - Entity to attach to bodypositionoffset - Location offset from the origin of the entity to place the camera orientationoffset - Orientation offset to place the location location - Location to track.
|
virtual |
Executes the stealth mimic location track command Variables: observers - String list of observers to send message to. If blank sends to all observermode - Mode to setthe observers to (Stealth, Plan View, etc) attachto - Entity to attach to bodypositionoffset - Location offset from the origin of the entity to place the camera orientationoffset - Orientation offset to place the location location - Location to track.
|
virtual |
Executes the stealth follow attach command Variables: observers - String list of observers to send message to. If blank sends to all observermode - Mode to setthe observers to (Stealth, Plan View, etc) attachto - Entity to attach to bodypositionoffset - Location offset from the origin of the entity to place the camera orientationoffset - Orientation offset to place the location.
|
virtual |
Executes the stealth track attach command Variables: observers - String list of observers to send message to. If blank sends to all observermode - Mode to setthe observers to (Stealth, Plan View, etc) tracked - Entity to attach to bodypositionoffset - Location offset from the origin of the entity to place the camera orientationoffset - Orientation offset to place the location.
|
virtual |
Executes the stealth tether track attach command Variables: observers - String list of observers to send message to. If blank sends to all observermode - Mode to setthe observers to (Stealth, Plan View, etc) attachto - Entity to attach to bodypositionoffset - Location offset from the origin of the entity to place the camera orientationoffset - Orientation offset to place the location.
|
virtual |
Executes the absolute command which will detach the stealth and set it to the specified location and orientation Variables: observers - String list of observers to send message to. If blank sends to all observermode - Mode to setthe observers to (Stealth, Plan View, etc) location - Location to place the camera orientationoffset - Orientation offset to place the location.
|
virtual |
Sets the observer to the current view. Variables: observers - String list of observers to send message to. If blank sends to all observerview - View record to use transitiontime - Time used to transition to the final view.
|
virtual |
Given the UUID of the potential simulation object and the front-end address (blank for all), create or destroye the sensor gimbal view for that UUID.
|
inline |
|
protectedvirtual |
Initializes stealth reset command.
|
protectedvirtual |
Initializes stealth detach command.
|
protectedvirtual |
Initializes stealth mimic attach command.
|
protectedvirtual |
Initializes stealth tether attach command.
|
protectedvirtual |
Initializes stealth follow attach command.
|
protectedvirtual |
Initializes stealth track attach command.
|
protectedvirtual |
Initializes stealth tether track attach command.
|
protectedvirtual |
Initializes stealth tether location track attach command.
|
protectedvirtual |
Initializes stealth mimic location track attach command.
|
protectedvirtual |
Initializes stealth set location command.
|
protectedvirtual |
Initializes command to use the the current view or allow the user to select a view mode to use as part of the command. Note that once the view mode is selected the information for that mode is transcribed into the command such that if it changes later (the view mode) the plan statement will not update.
|
staticprotected |
Request and return current sim commands.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |