VR-Forces 4.6 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
DtRectangularPyramidEncoder Class Reference

Instances of DtRectangularPyramidEncoder encode data from DtRectangularPyramidStateRepository objects to the net structures to be sent to the network. More...

Inheritance diagram for DtRectangularPyramidEncoder:
Inheritance graph
[legend]

Public Member Functions

 DtRectangularPyramidEncoder ()
 Default constructor.
 DtRectangularPyramidEncoder (const DtRectangularPyramidEncoder &orig)
 Copy constructor.
virtual ~DtRectangularPyramidEncoder ()
 Destructor.
DtRectangularPyramidEncoderoperator= (const DtRectangularPyramidEncoder &orig)
 Assignment operator.
virtual DtRectangularPyramidPdustateMsg (const DtRectangularPyramidStateRepository &stateRep, const DtRectangularPyramidStateRepository &asSeenByRemote)
 Constructs a PDU from the state repository.
 DtCLONE_ENCODER (DtRectangularPyramidEncoder)
 DtRectangularPyramidEncoder (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 Default constructor.
 DtRectangularPyramidEncoder (const DtRectangularPyramidEncoder &orig)
 Copy constructor.
virtual ~DtRectangularPyramidEncoder ()
 Destructor.
DtRectangularPyramidEncoderoperator= (const DtRectangularPyramidEncoder &orig)
 Assignment operator.
- Public Member Functions inherited from DtSensorFieldOfViewEncoder
 DtSensorFieldOfViewEncoder ()
 Default constructor.
 DtSensorFieldOfViewEncoder (const DtSensorFieldOfViewEncoder &orig)
 Copy constructor.
virtual ~DtSensorFieldOfViewEncoder ()
 Destructor.
DtSensorFieldOfViewEncoderoperator= (const DtSensorFieldOfViewEncoder &orig)
 Assignment operator.
virtual DtSensorFieldOfViewPdustateMsg (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Constructs a PDU from the state repository.
 DtCLONE_ENCODER (DtSensorFieldOfViewEncoder)
 DtSensorFieldOfViewEncoder (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 Default constructor.
virtual ~DtSensorFieldOfViewEncoder ()
 Destructor.
 DtSensorFieldOfViewEncoder (const DtSensorFieldOfViewEncoder &orig)
 Copy constructor.
DtSensorFieldOfViewEncoderoperator= (const DtSensorFieldOfViewEncoder &orig)
 Assignment operator.

Static Public Member Functions

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

Protected Member Functions

virtual bool sendNeeded (const DtRectangularPyramidStateRepository &stateRep, const DtRectangularPyramidStateRepository &asSeenByRemote)
virtual void fillOut (const DtRectangularPyramidStateRepository &stateRep, const DtRectangularPyramidStateRepository &asSeenByRemote, DtRectangularPyramidPdu *pdu)
- Protected Member Functions inherited from DtSensorFieldOfViewEncoder
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 needXHalfAngle (const DtRectangularPyramidStateRepository &stateRep, const DtRectangularPyramidStateRepository &asSeenByRemote)
 Return true if XHalfAngle needs to be sent to the network, false otherwise.
static void encodeXHalfAngle (const DtRectangularPyramidStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes XHalfAngle from rep into attrs.
static bool needYHalfAngle (const DtRectangularPyramidStateRepository &stateRep, const DtRectangularPyramidStateRepository &asSeenByRemote)
 Return true if YHalfAngle needs to be sent to the network, false otherwise.
static void encodeYHalfAngle (const DtRectangularPyramidStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes YHalfAngle from rep into attrs.
- Static Protected Member Functions inherited from DtSensorFieldOfViewEncoder
static bool needRelativeLocation (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if RelativeLocation needs to be sent to the network, false otherwise.
static void encodeRelativeLocation (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes RelativeLocation from rep into attrs.
static bool needRelativeOrientation (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if RelativeOrientation needs to be sent to the network, false otherwise.
static void encodeRelativeOrientation (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes RelativeOrientation from rep into attrs.
static bool needHost (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if Host needs to be sent to the network, false otherwise.
static void encodeHost (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes Host from rep into attrs.
static bool needId (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if Id needs to be sent to the network, false otherwise.
static void encodeId (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes Id from rep into attrs.
static bool needRadius (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if Radius needs to be sent to the network, false otherwise.
static void encodeRadius (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes Radius from rep into attrs.
static bool needTrackingMode (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if TrackingMode needs to be sent to the network, false otherwise.
static void encodeTrackingMode (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes TrackingMode from rep into attrs.
static bool needTargetedEntity (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if TargetedEntity needs to be sent to the network, false otherwise.
static void encodeTargetedEntity (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes TargetedEntity from rep into attrs.
static bool needTargetedLocation (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if TargetedLocation needs to be sent to the network, false otherwise.
static void encodeTargetedLocation (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes TargetedLocation from rep into attrs.
static bool needMinimumAzimuthAngle (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if MinimumAzimuthAngle needs to be sent to the network, false otherwise.
static void encodeMinimumAzimuthAngle (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes MinimumAzimuthAngle from rep into attrs.
static bool needMaximumAzimuthAngle (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if MaximumAzimuthAngle needs to be sent to the network, false otherwise.
static void encodeMaximumAzimuthAngle (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes MaximumAzimuthAngle from rep into attrs.
static bool needMinimumElevationAngle (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if MinimumElevationAngle needs to be sent to the network, false otherwise.
static void encodeMinimumElevationAngle (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes MinimumElevationAngle from rep into attrs.
static bool needMaximumElevationAngle (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if MaximumElevationAngle needs to be sent to the network, false otherwise.
static void encodeMaximumElevationAngle (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes MaximumElevationAngle from rep into attrs.
static bool needMaximumZoomLevel (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if MaximumZoomLevel needs to be sent to the network, false otherwise.
static void encodeMaximumZoomLevel (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes MaximumZoomLevel from rep into attrs.
static bool needZoomLevel (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if ZoomLevel needs to be sent to the network, false otherwise.
static void encodeZoomLevel (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes ZoomLevel from rep into attrs.
static bool needColor (const DtSensorFieldOfViewStateRepository &stateRep, const DtSensorFieldOfViewStateRepository &asSeenByRemote)
 Return true if Color needs to be sent to the network, false otherwise.
static void encodeColor (const DtSensorFieldOfViewStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes Color from rep into attrs.

Protected Attributes

DtRectangularPyramidPdu myPdu
- Protected Attributes inherited from DtSensorFieldOfViewEncoder
DtSensorFieldOfViewPdu myPdu

Detailed Description

Instances of DtRectangularPyramidEncoder encode data from DtRectangularPyramidStateRepository objects to the net structures to be sent to the network.

Constructor & Destructor Documentation

DtRectangularPyramidEncoder::DtRectangularPyramidEncoder ( )

Default constructor.

DtRectangularPyramidEncoder::DtRectangularPyramidEncoder ( const DtRectangularPyramidEncoder orig)

Copy constructor.

virtual DtRectangularPyramidEncoder::~DtRectangularPyramidEncoder ( )
virtual

Destructor.

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

Default constructor.

DtRectangularPyramidEncoder::DtRectangularPyramidEncoder ( const DtRectangularPyramidEncoder orig)

Copy constructor.

virtual DtRectangularPyramidEncoder::~DtRectangularPyramidEncoder ( )
virtual

Destructor.

Member Function Documentation

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

Assignment operator.

virtual DtRectangularPyramidPdu* DtRectangularPyramidEncoder::stateMsg ( const DtRectangularPyramidStateRepository stateRep,
const DtRectangularPyramidStateRepository 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
DtRectangularPyramidEncoder::DtCLONE_ENCODER ( DtRectangularPyramidEncoder  )
virtual bool DtRectangularPyramidEncoder::sendNeeded ( const DtRectangularPyramidStateRepository stateRep,
const DtRectangularPyramidStateRepository asSeenByRemote 
)
protectedvirtual
virtual void DtRectangularPyramidEncoder::fillOut ( const DtRectangularPyramidStateRepository stateRep,
const DtRectangularPyramidStateRepository asSeenByRemote,
DtRectangularPyramidPdu pdu 
)
protectedvirtual
static DtHlaStateEncoder* DtRectangularPyramidEncoder::create ( DtExerciseConn *  exConn,
DtObjClassDesc *  classDesc 
)
static

Function that creates a DtRectangularPyramidEncoder.

Reimplemented from DtSensorFieldOfViewEncoder.

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

Assignment operator.

static bool DtRectangularPyramidEncoder::needXHalfAngle ( const DtRectangularPyramidStateRepository stateRep,
const DtRectangularPyramidStateRepository asSeenByRemote 
)
staticprotected

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

static void DtRectangularPyramidEncoder::encodeXHalfAngle ( const DtRectangularPyramidStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes XHalfAngle from rep into attrs.

static bool DtRectangularPyramidEncoder::needYHalfAngle ( const DtRectangularPyramidStateRepository stateRep,
const DtRectangularPyramidStateRepository asSeenByRemote 
)
staticprotected

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

static void DtRectangularPyramidEncoder::encodeYHalfAngle ( const DtRectangularPyramidStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes YHalfAngle from rep into attrs.

Member Data Documentation

DtRectangularPyramidPdu DtRectangularPyramidEncoder::myPdu
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)