VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Attributes | Protected Attributes
DtStealthRemoteController Class Reference

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
DtCustomRemoteControlSendermySender
bool myCreatedExConn

Member Enumeration Documentation

Move the eyepoint.

Enumerator:
Left 
Right 
Up 
Down 
Forward 
Backward 

Constructor & Destructor Documentation

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 DtStealthRemoteController::~DtStealthRemoteController ( )
virtual

Member Function Documentation

virtual void DtStealthRemoteController::setTargetStealthId ( const DtGlobalObjectDesignator id)
virtual

Set/Get current target stealth (Can be DtEntityIdentifier::nullId)

virtual const DtGlobalObjectDesignator& DtStealthRemoteController::targetStealthId ( ) const
virtual
virtual void DtStealthRemoteController::setControllerId ( const DtGlobalObjectDesignator id)
virtual

Set/Get the controller id.

virtual const DtGlobalObjectDesignator& DtStealthRemoteController::controllerId ( ) const
virtual
virtual void DtStealthRemoteController::reset ( ) const
virtual


View Mode Control

Reset the current view mode

virtual void DtStealthRemoteController::moveEyepoint ( Direction  d) const
virtual
virtual void DtStealthRemoteController::turnEyepoint ( Direction  d) const
virtual
virtual void DtStealthRemoteController::set ( const DtVector geoc = NULL,
const DtTaitBryan *  ori = NULL 
) const
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 void DtStealthRemoteController::setMode ( DtViewerCommand  m,
const DtVector geocPos = NULL,
const DtTaitBryan *  geocOri = NULL 
) const
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 void DtStealthRemoteController::setAbsoluteMode ( const DtVector geoc = NULL,
const DtTaitBryan *  ori = NULL 
) const
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 void DtStealthRemoteController::setCompassMode ( const DtGlobalObjectDesignator primary = NULL,
const float *  radius = NULL,
const float *  azimuth = NULL,
const float *  elevation = NULL 
) const
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 void DtStealthRemoteController::setMimicMode ( const DtGlobalObjectDesignator primary = NULL,
const DtVector offset = NULL 
) const
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 void DtStealthRemoteController::setOrbitMode ( const DtGlobalObjectDesignator primary = NULL,
const float *  radius = NULL,
const float *  azimuth = NULL,
const float *  elevation = NULL,
const float *  azimuthRate = NULL 
) const
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 void DtStealthRemoteController::setTetherMode ( const DtGlobalObjectDesignator primary = NULL,
const DtVector offset = NULL,
const DtTaitBryan *  ori = NULL 
) const
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 void DtStealthRemoteController::setTrackMode ( const DtGlobalObjectDesignator primary = NULL,
const DtVector geoc = NULL 
) const
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 void DtStealthRemoteController::setMimicTrackMode ( const DtGlobalObjectDesignator attach = NULL,
const DtGlobalObjectDesignator track = NULL,
const DtVector offset = NULL 
) const
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 void DtStealthRemoteController::setTetherTrackMode ( const DtGlobalObjectDesignator attach = NULL,
const DtGlobalObjectDesignator track = NULL,
const DtVector offset = NULL 
) const
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 void DtStealthRemoteController::send ( const DtStealthControlPdu pdu) const
virtual

Use this function to send a stealth control PDU directly.

Member Data Documentation

const DtGlobalObjectDesignator DtStealthRemoteController::SEND_TO_ALL
static

Returns a wild-card designator Id.

DtGlobalObjectDesignator DtStealthRemoteController::myId
protected
DtGlobalObjectDesignator DtStealthRemoteController::myTargetId
protected
DtExerciseConn* DtStealthRemoteController::myExConn
protected
DtCustomRemoteControlSender* DtStealthRemoteController::mySender
protected
bool DtStealthRemoteController::myCreatedExConn
protected

The documentation for this class was generated from the following file:

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)