VR-Vantage 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Static Protected Attributes
DtDynamicTerrainEncoder Class Reference

Instances of DtDynamicTerrainEncoder encode data from DtDynamicTerrainStateRepository objects to the net structures to be sent to the network. More...

Inheritance diagram for DtDynamicTerrainEncoder:
Inheritance graph
[legend]

Public Member Functions

 DtDynamicTerrainEncoder (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 Default constructor.
virtual ~DtDynamicTerrainEncoder ()
 Destructor.
 DtDynamicTerrainEncoder (const DtDynamicTerrainEncoder &orig)
 Copy constructor.
DtDynamicTerrainEncoderoperator= (const DtDynamicTerrainEncoder &orig)
 Assignment operator.

Static Public Member Functions

static DtHlaStateEncodercreate (DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 Function that creates a DtDynamicTerrainEncoder.
static void setUseFullComparison (bool useFull)
 By default the encoder will determine if a send is needed for the GeometryAndData and CommonData attributes based solely on changes to their associated event numbers.
static bool useFullComparison ()
 By default the encoder will determine if a send is needed for the GeometryAndData and CommonData attributes based solely on changes to their associated event numbers.

Static Protected Member Functions

static bool needObjectIdentifier (const DtDynamicTerrainStateRepository &stateRep, const DtDynamicTerrainStateRepository &asSeenByRemote)
 Return true if ObjectIdentifier needs to be sent to the network, false otherwise.
static void encodeObjectIdentifier (const DtDynamicTerrainStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes ObjectIdentifier from rep into attrs.
static bool needGeometryAndData (const DtDynamicTerrainStateRepository &stateRep, const DtDynamicTerrainStateRepository &asSeenByRemote)
 Return true if GeometryAndData needs to be sent to the network, false otherwise.
static void encodeGeometryAndData (const DtDynamicTerrainStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes GeometryAndData from rep into attrs.
static bool needCommonData (const DtDynamicTerrainStateRepository &stateRep, const DtDynamicTerrainStateRepository &asSeenByRemote)
 Return true if CommonData needs to be sent to the network, false otherwise.
static void encodeCommonData (const DtDynamicTerrainStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes CommonData from rep into attrs.
static bool needCommonDataEventNumber (const DtDynamicTerrainStateRepository &stateRep, const DtDynamicTerrainStateRepository &asSeenByRemote)
 Return true if CommonDataEventNumber needs to be sent to the network, false otherwise.
static void encodeCommonDataEventNumber (const DtDynamicTerrainStateRepository &rep, RTI::AttributeHandleValuePairSet *attrs, RTI::AttributeHandle attrHandle)
 Encodes CommonDataEventNumber from rep into attrs.

Static Protected Attributes

static bool theUseFullComparison

Detailed Description

Instances of DtDynamicTerrainEncoder encode data from DtDynamicTerrainStateRepository objects to the net structures to be sent to the network.

Constructor & Destructor Documentation

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

Default constructor.

virtual DtDynamicTerrainEncoder::~DtDynamicTerrainEncoder ( )
virtual

Destructor.

DtDynamicTerrainEncoder::DtDynamicTerrainEncoder ( const DtDynamicTerrainEncoder orig)

Copy constructor.

Member Function Documentation

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

Assignment operator.

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

Function that creates a DtDynamicTerrainEncoder.

static void DtDynamicTerrainEncoder::setUseFullComparison ( bool  useFull)
static

By default the encoder will determine if a send is needed for the GeometryAndData and CommonData attributes based solely on changes to their associated event numbers.

If useFullComparison is set to true, all data in the attributes will be checked for changes.

static bool DtDynamicTerrainEncoder::useFullComparison ( )
static

By default the encoder will determine if a send is needed for the GeometryAndData and CommonData attributes based solely on changes to their associated event numbers.

If useFullComparison is set to true, all data in the attributes will be checked for changes.

static bool DtDynamicTerrainEncoder::needObjectIdentifier ( const DtDynamicTerrainStateRepository stateRep,
const DtDynamicTerrainStateRepository asSeenByRemote 
)
staticprotected

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

static void DtDynamicTerrainEncoder::encodeObjectIdentifier ( const DtDynamicTerrainStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes ObjectIdentifier from rep into attrs.

static bool DtDynamicTerrainEncoder::needGeometryAndData ( const DtDynamicTerrainStateRepository stateRep,
const DtDynamicTerrainStateRepository asSeenByRemote 
)
staticprotected

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

static void DtDynamicTerrainEncoder::encodeGeometryAndData ( const DtDynamicTerrainStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes GeometryAndData from rep into attrs.

static bool DtDynamicTerrainEncoder::needCommonData ( const DtDynamicTerrainStateRepository stateRep,
const DtDynamicTerrainStateRepository asSeenByRemote 
)
staticprotected

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

static void DtDynamicTerrainEncoder::encodeCommonData ( const DtDynamicTerrainStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes CommonData from rep into attrs.

static bool DtDynamicTerrainEncoder::needCommonDataEventNumber ( const DtDynamicTerrainStateRepository stateRep,
const DtDynamicTerrainStateRepository asSeenByRemote 
)
staticprotected

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

static void DtDynamicTerrainEncoder::encodeCommonDataEventNumber ( const DtDynamicTerrainStateRepository rep,
RTI::AttributeHandleValuePairSet *  attrs,
RTI::AttributeHandle  attrHandle 
)
staticprotected

Encodes CommonDataEventNumber from rep into attrs.

Member Data Documentation

bool DtDynamicTerrainEncoder::theUseFullComparison
staticprotected

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


Copyright © 2005-2018 VT MAK. All Rights Reserved (www.mak.com)