VR-Link API Documentation for DIS
Public Member Functions | Protected Member Functions | Protected Attributes
DtDesignatorEncoder Class Reference

Instances of DtDesignatorEncoder are used to take state information from a DtDesignatorRepository and place it into a designator PDU. More...

+ Inheritance diagram for DtDesignatorEncoder:
+ Collaboration diagram for DtDesignatorEncoder:

List of all members.

Public Member Functions

 DtDesignatorEncoder (double _relPosThreshold=1.0, double _absPosThreshold=1.0, double _accelThreshold=0.2)
 Constructor.
virtual ~DtDesignatorEncoder ()
 Destructor.
 DtDesignatorEncoder (const DtDesignatorEncoder &orig)
 Copy constructor.
DtDesignatorEncoderoperator= (const DtDesignatorEncoder &orig)
 Assignment operator.
virtual DtDesignatorPdustateMsg (const DtDesignatorRepository &stateRep, const DtDesignatorRepository &asSeenByRemote)
 Constructs a PDU from the state repository.
virtual void setRelPosThreshold (double val)
 Set/Query the value of the "Relative Position" Update Threshold.
virtual double relPosThreshold () const
 Set/Query the value of the "Relative Position" Update Threshold.
virtual void setAbsPosThreshold (double val)
 Set/Query the value of the "Absolute Position" Update Threshold.
virtual double absPosThreshold () const
 Set/Query the value of the "Absolute Position" Update Threshold.
virtual void setAccelThreshold (double val)
 Set/Query the value of the "Acceleration" Update Threshold.
virtual double accelThreshold () const
 Set/Query the value of the "Acceleration" Update Threshold.

Protected Member Functions

virtual bool sendNeeded (const DtDesignatorRepository &stateRep, const DtDesignatorRepository &asSeenByRemote)
 Determine if a state message needs to be sent.

Protected Attributes

double myRelPosThreshold
double myAbsPosThreshold
double myAccelThreshold
DtDesignatorPdu myPdu

Detailed Description

Instances of DtDesignatorEncoder are used to take state information from a DtDesignatorRepository and place it into a designator PDU.


Constructor & Destructor Documentation

DtDesignatorEncoder::DtDesignatorEncoder ( double  _relPosThreshold = 1.0,
double  _absPosThreshold = 1.0,
double  _accelThreshold = 0.2 
)

Constructor.

Destructor.

Copy constructor.


Member Function Documentation

double DtDesignatorEncoder::absPosThreshold ( ) const [inline, virtual]

Set/Query the value of the "Absolute Position" Update Threshold.

References myAbsPosThreshold.

double DtDesignatorEncoder::accelThreshold ( ) const [inline, virtual]

Set/Query the value of the "Acceleration" Update Threshold.

References myAccelThreshold.

DtDesignatorEncoder& DtDesignatorEncoder::operator= ( const DtDesignatorEncoder orig)

Assignment operator.

double DtDesignatorEncoder::relPosThreshold ( ) const [inline, virtual]

Set/Query the value of the "Relative Position" Update Threshold.

References myRelPosThreshold.

virtual bool DtDesignatorEncoder::sendNeeded ( const DtDesignatorRepository stateRep,
const DtDesignatorRepository asSeenByRemote 
) [protected, virtual]

Determine if a state message needs to be sent.

void DtDesignatorEncoder::setAbsPosThreshold ( double  val) [inline, virtual]

Set/Query the value of the "Absolute Position" Update Threshold.

References myAbsPosThreshold.

void DtDesignatorEncoder::setAccelThreshold ( double  val) [inline, virtual]

Set/Query the value of the "Acceleration" Update Threshold.

References myAccelThreshold.

void DtDesignatorEncoder::setRelPosThreshold ( double  val) [inline, virtual]

Set/Query the value of the "Relative Position" Update Threshold.

References myRelPosThreshold.

virtual DtDesignatorPdu* DtDesignatorEncoder::stateMsg ( const DtDesignatorRepository stateRep,
const DtDesignatorRepository asSeenByRemote 
) [virtual]

Constructs a PDU from the state repository.

stateMsg determines whether a Designator PDU needs to be sent and constructs one of it does.

Returns:
PDU if send is needed, and NULL if not

Member Data Documentation


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

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)