![]() |
VR-Forces 4.1 Class Documentation
|
Public Types | |
| enum | Direction { Left, Right, Up, Down, Forward, Backward } |
| Move the eyepoint. More... | |
Public Member Functions | |
| DtStealthRemoteController (DtCustomRemoteControlSender *sender, const DtGlobalObjectDesignator &targetStealthId=SEND_TO_ALL) | |
| Create a DtStealthRemoteController that can send view control msgs using a custom message sender. | |
| DtStealthRemoteController (DtExerciseConn *c, const DtGlobalObjectDesignator &targetStealthId=SEND_TO_ALL) | |
| Create a DtStealthRemoteController for sending and receiving view control using the given exercise connection. | |
| DtStealthRemoteController (const char *execName, const char *federateType, DtFomMapper *mapper=DtRprFomMapper::create(NULL), const char *fedFileName=NULL, const DtGlobalObjectDesignator &targetStealthId=SEND_TO_ALL) | |
| Constructors. | |
| DtStealthRemoteController (const char *execName, const char *federateType, const char *dsoName, const char *fedFileName=NULL, void *fomMapInitData=NULL, const DtGlobalObjectDesignator &targetStealthId=SEND_TO_ALL) | |
| virtual | ~DtStealthRemoteController () |
| virtual void | setTargetStealthId (const DtGlobalObjectDesignator &id) |
| Set/Get current target stealth (Can be DtEntityIdentifier::nullId) | |
| virtual const DtGlobalObjectDesignator & | targetStealthId () const |
| virtual void | setControllerId (const DtGlobalObjectDesignator &id) |
| Set/Get the controller id. | |
| virtual const DtGlobalObjectDesignator & | controllerId () const |
| virtual void | reset () const |
View Mode Control | |
| virtual void | moveEyepoint (Direction d) const |
| virtual void | turnEyepoint (Direction d) const |
| virtual void | set (const DtVector *geoc=NULL, const DtTaitBryan *ori=NULL) const |
| Set a new viewer position or orientation (in geocentric) without changing changing the current view mode. | |
| virtual void | setMode (DtViewerCommand m, const DtVector *geocPos=NULL, const DtTaitBryan *geocOri=NULL) const |
| Change the current view mode to the mode specified by m; If a geocentric position or database orientation is set, initilize the viewer position to this position. | |
| virtual void | setAbsoluteMode (const DtVector *geoc=NULL, const DtTaitBryan *ori=NULL) const |
| Change the current view mode to absolute. | |
| virtual void | setCompassMode (const DtGlobalObjectDesignator *primary=NULL, const float *radius=NULL, const float *azimuth=NULL, const float *elevation=NULL) const |
| Change the current view mode to Compass. | |
| virtual void | setMimicMode (const DtGlobalObjectDesignator *primary=NULL, const DtVector *offset=NULL) const |
| Change the current view mode to Mimic. | |
| virtual void | setOrbitMode (const DtGlobalObjectDesignator *primary=NULL, const float *radius=NULL, const float *azimuth=NULL, const float *elevation=NULL, const float *azimuthRate=NULL) const |
| Change the current view mode to Orbit. | |
| virtual void | setTetherMode (const DtGlobalObjectDesignator *primary=NULL, const DtVector *offset=NULL, const DtTaitBryan *ori=NULL) const |
| Change the current view mode to Tether. | |
| virtual void | setTrackMode (const DtGlobalObjectDesignator *primary=NULL, const DtVector *geoc=NULL) const |
| Change the current view mode to Track. | |
| virtual void | setMimicTrackMode (const DtGlobalObjectDesignator *attach=NULL, const DtGlobalObjectDesignator *track=NULL, const DtVector *offset=NULL) const |
| Change the current view mode to MimicTrack. | |
| virtual void | setTetherTrackMode (const DtGlobalObjectDesignator *attach=NULL, const DtGlobalObjectDesignator *track=NULL, const DtVector *offset=NULL) const |
| Change the current view mode to TetherTrack. | |
| virtual void | send (const DtStealthControlPdu &pdu) const |
| Use this function to send a stealth control PDU directly. | |
Static Public Attributes | |
| static const DtGlobalObjectDesignator | SEND_TO_ALL |
| Returns a wild-card designator Id. | |
Protected Attributes | |
| DtGlobalObjectDesignator | myId |
| DtGlobalObjectDesignator | myTargetId |
| DtExerciseConn * | myExConn |
| DtCustomRemoteControlSender * | mySender |
| bool | myCreatedExConn |
| DtStealthRemoteController::DtStealthRemoteController | ( | DtCustomRemoteControlSender * | sender, |
| const DtGlobalObjectDesignator & | targetStealthId = SEND_TO_ALL |
||
| ) |
Create a DtStealthRemoteController that can send view control msgs using a custom message sender.
Use this creator if you would like to send view control msgs without a VR-Link license.
| DtStealthRemoteController::DtStealthRemoteController | ( | DtExerciseConn * | c, |
| const DtGlobalObjectDesignator & | targetStealthId = SEND_TO_ALL |
||
| ) |
Create a DtStealthRemoteController for sending and receiving view control using the given exercise connection.
| DtStealthRemoteController::DtStealthRemoteController | ( | const char * | execName, |
| const char * | federateType, | ||
| DtFomMapper * | mapper = DtRprFomMapper::create(NULL), |
||
| const char * | fedFileName = NULL, |
||
| const DtGlobalObjectDesignator & | targetStealthId = SEND_TO_ALL |
||
| ) |
Constructors.
| DtStealthRemoteController::DtStealthRemoteController | ( | const char * | execName, |
| const char * | federateType, | ||
| const char * | dsoName, | ||
| const char * | fedFileName = NULL, |
||
| void * | fomMapInitData = NULL, |
||
| const DtGlobalObjectDesignator & | targetStealthId = SEND_TO_ALL |
||
| ) |
|
virtual |
|
virtual |
Set/Get current target stealth (Can be DtEntityIdentifier::nullId)
|
virtual |
|
virtual |
Set/Get the controller id.
|
virtual |
|
virtual |
Reset the current view mode
|
virtual |
|
virtual |
|
virtual |
Set a new viewer position or orientation (in geocentric) without changing changing the current view mode.
Does nothing if both arguments are NULL.
|
virtual |
Change the current view mode to the mode specified by m; If a geocentric position or database orientation is set, initilize the viewer position to this position.
The following are invalid: DtViewerTurret = 4, DtViewerGroup = 9, DtViewerModeless = 10, DtViewerOptions = 11
|
virtual |
Change the current view mode to absolute.
If any of the optional parameters are set, these values will be used to initialize the view: geoc = start position (geocentric coords) ori = start orientation (database heading/pitch/roll) ; otherwise, the view with adopt the state from the last view.
|
virtual |
Change the current view mode to Compass.
If any of the optional parameters are set, these values will be used to initialize the view: primary = id of primary entity radius = distance from center of the primary object azimuth = angle to move left/right around entity (radians) elevation = angle to move up/down around entity (radians) ; otherwise, the view with adopt the state from the last view.
|
virtual |
Change the current view mode to Mimic.
If any of the optional parameters are set, these values will be used to initialize the view: primary = id of primary entity offset = offset (in entity body coords) from the primary entity ; otherwise, the view with adopt the state from the last view.
|
virtual |
Change the current view mode to Orbit.
If any of the optional parameters are set, these values will be used to initialize the view: primary = id of primary entity radius = distance from center of the primary object azimuth = angle to move left/right around entity (radians) elevation = angle to move up/down around entity (radians) velocity = speed to travel left/right around the entity ; otherwise, the view with adopt the state from the last view.
|
virtual |
Change the current view mode to Tether.
If any of the optional parameters are set, these values will be used to initialize the view: primary = id of primary entity offset = offset (in body coords) from center of the primary object ori = orientation (in body coords) relative to the orientation of the object ; otherwise, the view with adopt the state from the last view.
|
virtual |
Change the current view mode to Track.
If any of the optional parameters are set, these values will be used to initialize the view: primary = id of primary entity geoc = start position (in geocentric coords) ; otherwise, the view with adopt the state from the last view.
|
virtual |
Change the current view mode to MimicTrack.
If any of the optional parameters are set, these values will be used to initialize the view: attach = id of primary entity (view looks from this entity) track = id of secondary entity (view looks at this entity) offset = offset (in body coords) from the center of the primary entity ; otherwise, the view with adopt the state from the last view.
|
virtual |
Change the current view mode to TetherTrack.
If any of the optional parameters are set, these values will be used to initialize the view: attach = id of primary entity (view looks from this entity) track = id of secondary entity (view looks at this entity) offset = offset (in body coords) from the center of the primary entity ; otherwise, the view with adopt the state from the last view.
|
virtual |
Use this function to send a stealth control PDU directly.
|
static |
Returns a wild-card designator Id.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |