VR-Forces Developer's Guide
 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.

Inheritance diagram for DtSensorFieldOfViewEncoder:
Inheritance graph
[legend]

Public Member Functions

 DtSensorFieldOfViewEncoder ()
 
 DtSensorFieldOfViewEncoder (const DtSensorFieldOfViewEncoder &orig)
 
virtual ~DtSensorFieldOfViewEncoder () override
 
DtSensorFieldOfViewEncoderoperator= (const DtSensorFieldOfViewEncoder &orig)
 
virtual DtSensorFieldOfViewPdustateMsg (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 
 DtCLONE_ENCODER (DtSensorFieldOfViewEncoder)
 
 DtSensorFieldOfViewEncoder (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 
virtual ~DtSensorFieldOfViewEncoder () override
 
 DtSensorFieldOfViewEncoder (const DtSensorFieldOfViewEncoder &orig)
 
DtSensorFieldOfViewEncoderoperator= (const DtSensorFieldOfViewEncoder &orig)
 

Static Public Member Functions

static DtHlaStateEncodercreate (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 

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)
 
static void encodeRelativeLocation (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 
static bool needRelativeOrientation (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 
static void encodeRelativeOrientation (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 
static bool needHost (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 
static void encodeHost (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 
static bool needId (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 
static void encodeId (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 
static bool needRadius (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 
static void encodeRadius (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 
static bool needTrackingMode (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 
static void encodeTrackingMode (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 
static bool needTargetedEntity (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 
static void encodeTargetedEntity (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 
static bool needTargetedLocation (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 
static void encodeTargetedLocation (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 
static bool needMinimumAzimuthAngle (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 
static void encodeMinimumAzimuthAngle (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 
static bool needMaximumAzimuthAngle (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 
static void encodeMaximumAzimuthAngle (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 
static bool needMinimumElevationAngle (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 
static void encodeMinimumElevationAngle (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 
static bool needMaximumElevationAngle (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 
static void encodeMaximumElevationAngle (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 
static bool needMaximumZoomLevel (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 
static void encodeMaximumZoomLevel (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 
static bool needZoomLevel (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 
static void encodeZoomLevel (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 
static bool needColor (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 
static void encodeColor (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 

Protected Attributes

DtSensorFieldOfViewPdu myPdu
 

Constructor & Destructor Documentation

DtSensorFieldOfViewEncoder::DtSensorFieldOfViewEncoder ( )

Default constructor.

DtSensorFieldOfViewEncoder::DtSensorFieldOfViewEncoder ( const DtSensorFieldOfViewEncoder orig)

Copy constructor.

virtual DtSensorFieldOfViewEncoder::~DtSensorFieldOfViewEncoder ( )
overridevirtual

Destructor.

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

Default constructor.

virtual DtSensorFieldOfViewEncoder::~DtSensorFieldOfViewEncoder ( )
overridevirtual

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 Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)