VR-Link API Documentation for DIS
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
DtDesignatorPublisher Class Reference
+ Inheritance diagram for DtDesignatorPublisher:
+ Collaboration diagram for DtDesignatorPublisher:

List of all members.

Public Types

typedef DtDesignatorRepository *(* DtStateRepCreator )()
 Function prototype for functions that create DtDesignatorRepositories.

Public Member Functions

 DtDesignatorPublisher (DtDesignatorRepository *stateRepToUse, DtExerciseConn *conn, const DtObjectId &entityId=DtObjectId::defaultId())
 constructor
 DtDesignatorPublisher (DtExerciseConn *conn, const DtObjectId &entityId=DtObjectId::defaultId())
 constructor
virtual ~DtDesignatorPublisher ()
 destructor
virtual void tick ()
 This function should be called once per frame for each designator object.
virtual DtDesignatorRepositorydesignatorStateRep ()
 Returns a pointer to the DesignatorRepository - through which you can set or inspect current state information.
virtual DtDesignatorRepositorydsr ()
 Synonym for designatorStateRep().
virtual DtDesignatorDecoderdecoder ()
 Returns a pointer to the Decoder being used to decode PDUs that we send back into the asSeenByRemote ESR.
virtual DtDesignatorEncoderencoder ()
 Returns a pointer to the Encoder being used to encode current state into an entity state PDU.
virtual const DtObjectIdid () const
 Get the designator's identifier.
virtual const DtObjectIdlocalId () const
 Get the designator's localId - same as id for DIS.
virtual const
DtGlobalObjectDesignator
globalId () const
 Get the global object designator - same as id for DIS.
virtual void sendFinalPduOnDestruction (bool onOff)
 Set flag indicating whether to send a final PDU with the "FinalPdu" appearance bit set, from within the DtDesignatorPublisher destructor.
virtual void forceUpdate ()
 Force a state update to be sent during the next call to tick, even if nothing would normally cause a send.
virtual void setRelPosThreshold (double val)
 Set/Query the value of the "Relative Position" Update Threshold.
virtual double relPosThreshold () const
virtual void setAbsPosThreshold (double val)
 Set/Query the value of the "Relative Position" Update Threshold.
virtual double absPosThreshold () const
virtual void setAccelThreshold (double val)
 Set/Query the value of the "Relative Position" Update Threshold.
virtual double accelThreshold () const

Static Public Member Functions

static void setDfltRelPosThreshold (double val)
 Get/Set default "Relative Position" threshold.
static double dfltRelPosThreshold ()
static void setDfltAbsPosThreshold (double val)
 Get/Set default "Absolute Position" threshold.
static double dfltAbsPosThreshold ()
static void setDfltAccelThreshold (double val)
 Get/Set default "Acceleration" threshold.
static double dfltAccelThreshold ()
static void setStateRepCreator (DtStateRepCreator creator)
 Give us a function to be used for creating SRs.
static DtStateRepCreator stateRepCreator (void)
static void setClassDfltTimeThreshold (DtTime threshold)

Protected Member Functions

void init (const DtObjectId &)
 Not virtual since called from constructor.
void sendFinalPdu ()
 Not virtual since called from destructor.
 DtDesignatorPublisher (const DtDesignatorPublisher &)
 copy constructor -- Not Implemented
DtDesignatorPublisheroperator= (const DtDesignatorPublisher &)
 assignment operator -- Not Implemented

Protected Attributes

DtDesignatorDecodermyDecoder
DtDesignatorEncodermyEncoder
bool mySendFinalInDtor
bool myStateRepPassedFlag

Static Protected Attributes

static double theDfltRelPosThreshold
static double theDfltAbsPosThreshold
static double theDfltAccelThreshold
static DtStateRepCreator theStateRepCreator
static DtTime theClassDfltTimeThreshold
static bool theClassDfltIsSetFlag

Member Typedef Documentation

Function prototype for functions that create DtDesignatorRepositories.


Constructor & Destructor Documentation

constructor

constructor

destructor

copy constructor -- Not Implemented


Member Function Documentation

virtual double DtDesignatorPublisher::absPosThreshold ( ) const [virtual]
virtual double DtDesignatorPublisher::accelThreshold ( ) const [virtual]
virtual DtDesignatorDecoder* DtDesignatorPublisher::decoder ( ) [inline, virtual]

Returns a pointer to the Decoder being used to decode PDUs that we send back into the asSeenByRemote ESR.

Returns a pointer to the DesignatorRepository - through which you can set or inspect current state information.

References dsr().

double DtDesignatorPublisher::dfltAbsPosThreshold ( ) [inline, static]
double DtDesignatorPublisher::dfltAccelThreshold ( ) [inline, static]

References theDfltAccelThreshold.

double DtDesignatorPublisher::dfltRelPosThreshold ( ) [inline, static]
virtual DtDesignatorEncoder* DtDesignatorPublisher::encoder ( ) [inline, virtual]

Returns a pointer to the Encoder being used to encode current state into an entity state PDU.

void DtDesignatorPublisher::forceUpdate ( ) [inline, virtual]

Force a state update to be sent during the next call to tick, even if nothing would normally cause a send.

Implements DtObjectPublisher.

References myEncoder, and DtStateEncoder::setSendNeeded().

virtual const DtGlobalObjectDesignator& DtDesignatorPublisher::globalId ( ) const [inline, virtual]

Get the global object designator - same as id for DIS.

Implements DtObjectPublisher.

References DtObjectPublisher::id().

virtual const DtObjectId& DtDesignatorPublisher::id ( ) const [virtual]

Get the designator's identifier.

Implements DtObjectPublisher.

void DtDesignatorPublisher::init ( const DtObjectId ) [protected]

Not virtual since called from constructor.

virtual const DtObjectId& DtDesignatorPublisher::localId ( ) const [inline, virtual]

Get the designator's localId - same as id for DIS.

Implements DtObjectPublisher.

References DtObjectPublisher::id().

DtDesignatorPublisher& DtDesignatorPublisher::operator= ( const DtDesignatorPublisher ) [protected]

assignment operator -- Not Implemented

virtual double DtDesignatorPublisher::relPosThreshold ( ) const [virtual]

Not virtual since called from destructor.

void DtDesignatorPublisher::sendFinalPduOnDestruction ( bool  onOff) [inline, virtual]

Set flag indicating whether to send a final PDU with the "FinalPdu" appearance bit set, from within the DtDesignatorPublisher destructor.

References mySendFinalInDtor.

virtual void DtDesignatorPublisher::setAbsPosThreshold ( double  val) [virtual]

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

virtual void DtDesignatorPublisher::setAccelThreshold ( double  val) [virtual]

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

static void DtDesignatorPublisher::setClassDfltTimeThreshold ( DtTime  threshold) [static]
void DtDesignatorPublisher::setDfltAbsPosThreshold ( double  val) [inline, static]

Get/Set default "Absolute Position" threshold.

References theDfltAbsPosThreshold.

void DtDesignatorPublisher::setDfltAccelThreshold ( double  val) [inline, static]

Get/Set default "Acceleration" threshold.

References theDfltAccelThreshold.

void DtDesignatorPublisher::setDfltRelPosThreshold ( double  val) [inline, static]

Get/Set default "Relative Position" threshold.

References theDfltRelPosThreshold.

virtual void DtDesignatorPublisher::setRelPosThreshold ( double  val) [virtual]

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

Give us a function to be used for creating SRs.

virtual void DtDesignatorPublisher::tick ( ) [virtual]

This function should be called once per frame for each designator object.

It determines if any data needs to be sent to the other exercise participants, and if so then it sends the data.

Implements DtObjectPublisher.


Member Data Documentation

Referenced by forceUpdate().


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)