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

Instances of DtSensorFieldOfViewEncoder encode data from DtSensorFieldOfViewStateRepository objects to the net structures to be sent to the network. More...

Inheritance diagram for DtSensorFieldOfViewEncoder:
Inheritance graph
[legend]

Public Member Functions

 DtSensorFieldOfViewEncoder ()
 Default constructor. More...
 
 DtSensorFieldOfViewEncoder (const DtSensorFieldOfViewEncoder &orig)
 Copy constructor. More...
 
virtual ~DtSensorFieldOfViewEncoder ()
 Destructor. More...
 
DtSensorFieldOfViewEncoderoperator= (const DtSensorFieldOfViewEncoder &orig)
 Assignment operator. More...
 
virtual DtSensorFieldOfViewPdustateMsg (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Constructs a PDU from the state repository. More...
 
 DtCLONE_ENCODER (DtSensorFieldOfViewEncoder)
 
 DtSensorFieldOfViewEncoder (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 Default constructor. More...
 
virtual ~DtSensorFieldOfViewEncoder ()
 Destructor. More...
 
 DtSensorFieldOfViewEncoder (const DtSensorFieldOfViewEncoder &orig)
 Copy constructor. More...
 
DtSensorFieldOfViewEncoderoperator= (const DtSensorFieldOfViewEncoder &orig)
 Assignment operator. More...
 

Static Public Member Functions

static DtHlaStateEncodercreate (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 Function that creates a DtSensorFieldOfViewEncoder. More...
 

Protected Member Functions

virtual bool sendNeeded (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 
virtual void fillOut (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote, DtSensorFieldOfViewPdu *pdu)
 

Static Protected Member Functions

static bool needRelativeLocation (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if RelativeLocation needs to be sent to the network, false otherwise. More...
 
static void encodeRelativeLocation (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes RelativeLocation from rep into attrs. More...
 
static bool needRelativeOrientation (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if RelativeOrientation needs to be sent to the network, false otherwise. More...
 
static void encodeRelativeOrientation (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes RelativeOrientation from rep into attrs. More...
 
static bool needHost (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if Host needs to be sent to the network, false otherwise. More...
 
static void encodeHost (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes Host from rep into attrs. More...
 
static bool needId (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if Id needs to be sent to the network, false otherwise. More...
 
static void encodeId (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes Id from rep into attrs. More...
 
static bool needRadius (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if Radius needs to be sent to the network, false otherwise. More...
 
static void encodeRadius (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes Radius from rep into attrs. More...
 
static bool needTrackingMode (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if TrackingMode needs to be sent to the network, false otherwise. More...
 
static void encodeTrackingMode (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes TrackingMode from rep into attrs. More...
 
static bool needTargetedEntity (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if TargetedEntity needs to be sent to the network, false otherwise. More...
 
static void encodeTargetedEntity (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes TargetedEntity from rep into attrs. More...
 
static bool needTargetedLocation (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if TargetedLocation needs to be sent to the network, false otherwise. More...
 
static void encodeTargetedLocation (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes TargetedLocation from rep into attrs. More...
 
static bool needMinimumAzimuthAngle (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if MinimumAzimuthAngle needs to be sent to the network, false otherwise. More...
 
static void encodeMinimumAzimuthAngle (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes MinimumAzimuthAngle from rep into attrs. More...
 
static bool needMaximumAzimuthAngle (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if MaximumAzimuthAngle needs to be sent to the network, false otherwise. More...
 
static void encodeMaximumAzimuthAngle (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes MaximumAzimuthAngle from rep into attrs. More...
 
static bool needMinimumElevationAngle (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if MinimumElevationAngle needs to be sent to the network, false otherwise. More...
 
static void encodeMinimumElevationAngle (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes MinimumElevationAngle from rep into attrs. More...
 
static bool needMaximumElevationAngle (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if MaximumElevationAngle needs to be sent to the network, false otherwise. More...
 
static void encodeMaximumElevationAngle (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes MaximumElevationAngle from rep into attrs. More...
 
static bool needMaximumZoomLevel (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if MaximumZoomLevel needs to be sent to the network, false otherwise. More...
 
static void encodeMaximumZoomLevel (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes MaximumZoomLevel from rep into attrs. More...
 
static bool needZoomLevel (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if ZoomLevel needs to be sent to the network, false otherwise. More...
 
static void encodeZoomLevel (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes ZoomLevel from rep into attrs. More...
 
static bool needColor (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if Color needs to be sent to the network, false otherwise. More...
 
static void encodeColor (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes Color from rep into attrs. More...
 

Protected Attributes

DtSensorFieldOfViewPdu myPdu
 

Detailed Description

Instances of DtSensorFieldOfViewEncoder encode data from DtSensorFieldOfViewStateRepository objects to the net structures to be sent to the network.

Constructor & Destructor Documentation

DtSensorFieldOfViewEncoder::DtSensorFieldOfViewEncoder ( )

Default constructor.

DtSensorFieldOfViewEncoder::DtSensorFieldOfViewEncoder ( const DtSensorFieldOfViewEncoder orig)

Copy constructor.

virtual DtSensorFieldOfViewEncoder::~DtSensorFieldOfViewEncoder ( )
virtual

Destructor.

DtSensorFieldOfViewEncoder::DtSensorFieldOfViewEncoder ( DtExerciseConn *  exConn,
DtObjClassDesc *  classDesc 
)

Default constructor.

virtual DtSensorFieldOfViewEncoder::~DtSensorFieldOfViewEncoder ( )
virtual

Destructor.

DtSensorFieldOfViewEncoder::DtSensorFieldOfViewEncoder ( const DtSensorFieldOfViewEncoder orig)

Copy constructor.

Member Function Documentation

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

Assignment operator.

virtual DtSensorFieldOfViewPdu* DtSensorFieldOfViewEncoder::stateMsg ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote 
)
virtual

Constructs a PDU from the state repository.

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

Returns
PDU if send is needed, and NULL if not
DtSensorFieldOfViewEncoder::DtCLONE_ENCODER ( DtSensorFieldOfViewEncoder  )
virtual bool DtSensorFieldOfViewEncoder::sendNeeded ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote 
)
protectedvirtual
virtual void DtSensorFieldOfViewEncoder::fillOut ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote,
DtSensorFieldOfViewPdu pdu 
)
protectedvirtual
DtSensorFieldOfViewEncoder& DtSensorFieldOfViewEncoder::operator= ( const DtSensorFieldOfViewEncoder orig)

Assignment operator.

static DtHlaStateEncoder* DtSensorFieldOfViewEncoder::create ( DtExerciseConn *  exConn,
DtObjClassDesc *  classDesc 
)
static

Function that creates a DtSensorFieldOfViewEncoder.

static bool DtSensorFieldOfViewEncoder::needRelativeLocation ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote 
)
staticprotected

Return true if RelativeLocation needs to be sent to the network, false otherwise.

static void DtSensorFieldOfViewEncoder::encodeRelativeLocation ( const DtSensorFieldOfViewStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes RelativeLocation from rep into attrs.

static bool DtSensorFieldOfViewEncoder::needRelativeOrientation ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote 
)
staticprotected

Return true if RelativeOrientation needs to be sent to the network, false otherwise.

static void DtSensorFieldOfViewEncoder::encodeRelativeOrientation ( const DtSensorFieldOfViewStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes RelativeOrientation from rep into attrs.

static bool DtSensorFieldOfViewEncoder::needHost ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote 
)
staticprotected

Return true if Host needs to be sent to the network, false otherwise.

static void DtSensorFieldOfViewEncoder::encodeHost ( const DtSensorFieldOfViewStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes Host from rep into attrs.

static bool DtSensorFieldOfViewEncoder::needId ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote 
)
staticprotected

Return true if Id needs to be sent to the network, false otherwise.

static void DtSensorFieldOfViewEncoder::encodeId ( const DtSensorFieldOfViewStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes Id from rep into attrs.

static bool DtSensorFieldOfViewEncoder::needRadius ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote 
)
staticprotected

Return true if Radius needs to be sent to the network, false otherwise.

static void DtSensorFieldOfViewEncoder::encodeRadius ( const DtSensorFieldOfViewStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes Radius from rep into attrs.

static bool DtSensorFieldOfViewEncoder::needTrackingMode ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote 
)
staticprotected

Return true if TrackingMode needs to be sent to the network, false otherwise.

static void DtSensorFieldOfViewEncoder::encodeTrackingMode ( const DtSensorFieldOfViewStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes TrackingMode from rep into attrs.

static bool DtSensorFieldOfViewEncoder::needTargetedEntity ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote 
)
staticprotected

Return true if TargetedEntity needs to be sent to the network, false otherwise.

static void DtSensorFieldOfViewEncoder::encodeTargetedEntity ( const DtSensorFieldOfViewStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes TargetedEntity from rep into attrs.

static bool DtSensorFieldOfViewEncoder::needTargetedLocation ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote 
)
staticprotected

Return true if TargetedLocation needs to be sent to the network, false otherwise.

static void DtSensorFieldOfViewEncoder::encodeTargetedLocation ( const DtSensorFieldOfViewStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes TargetedLocation from rep into attrs.

static bool DtSensorFieldOfViewEncoder::needMinimumAzimuthAngle ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote 
)
staticprotected

Return true if MinimumAzimuthAngle needs to be sent to the network, false otherwise.

static void DtSensorFieldOfViewEncoder::encodeMinimumAzimuthAngle ( const DtSensorFieldOfViewStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes MinimumAzimuthAngle from rep into attrs.

static bool DtSensorFieldOfViewEncoder::needMaximumAzimuthAngle ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote 
)
staticprotected

Return true if MaximumAzimuthAngle needs to be sent to the network, false otherwise.

static void DtSensorFieldOfViewEncoder::encodeMaximumAzimuthAngle ( const DtSensorFieldOfViewStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes MaximumAzimuthAngle from rep into attrs.

static bool DtSensorFieldOfViewEncoder::needMinimumElevationAngle ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote 
)
staticprotected

Return true if MinimumElevationAngle needs to be sent to the network, false otherwise.

static void DtSensorFieldOfViewEncoder::encodeMinimumElevationAngle ( const DtSensorFieldOfViewStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes MinimumElevationAngle from rep into attrs.

static bool DtSensorFieldOfViewEncoder::needMaximumElevationAngle ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote 
)
staticprotected

Return true if MaximumElevationAngle needs to be sent to the network, false otherwise.

static void DtSensorFieldOfViewEncoder::encodeMaximumElevationAngle ( const DtSensorFieldOfViewStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes MaximumElevationAngle from rep into attrs.

static bool DtSensorFieldOfViewEncoder::needMaximumZoomLevel ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote 
)
staticprotected

Return true if MaximumZoomLevel needs to be sent to the network, false otherwise.

static void DtSensorFieldOfViewEncoder::encodeMaximumZoomLevel ( const DtSensorFieldOfViewStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes MaximumZoomLevel from rep into attrs.

static bool DtSensorFieldOfViewEncoder::needZoomLevel ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote 
)
staticprotected

Return true if ZoomLevel needs to be sent to the network, false otherwise.

static void DtSensorFieldOfViewEncoder::encodeZoomLevel ( const DtSensorFieldOfViewStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes ZoomLevel from rep into attrs.

static bool DtSensorFieldOfViewEncoder::needColor ( const DtSensorFieldOfViewStateRepository stateRep,
const DtSensorFieldOfViewStateRepository asSeenByRemote 
)
staticprotected

Return true if Color needs to be sent to the network, false otherwise.

static void DtSensorFieldOfViewEncoder::encodeColor ( const DtSensorFieldOfViewStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes Color from rep into attrs.

Member Data Documentation

DtSensorFieldOfViewPdu DtSensorFieldOfViewEncoder::myPdu
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)