7 #ifndef physicalEntityEncoder_H_
8 #define physicalEntityEncoder_H_
107 static void encodeArticulatedParametersArrayPre09(
110 RTI::AttributeHandle attrHandle);
153 static void convertToRPR1_0(
158 static void encodeAttachedParts(
163 static void setArticulatedPartDeadReckoningEnabled(
bool enable);
164 static bool articulatedPartDeadReckoningEnabled();
175 #define DtDEFINE_SIMPLE_PHYS_ENTITY_ATTR_ENCODER( \
176 attrName, netType, inspector) \
177 DtDEFINE_SIMPLE_ATTR_ENCODER(DtPhysicalEntityEncoder, \
178 DtEntityStateRepository, \
179 attrName, netType, inspector)
186 #define DtDEFINE_SIMPLE_PHYS_ENTITY_ATTR_CHECKER( \
187 attrName, inspector) \
188 DtDEFINE_SIMPLE_ATTR_CHECKER(DtPhysicalEntityEncoder, \
189 DtEntityStateRepository, \
195 #define DtDEFINE_LIGHT_ATTR_CHECKER( \
196 encClass, attrName, arg1) \
197 bool encClass::need##attrName( \
198 const DtEntityStateRepository& stateRep, \
199 const DtEntityStateRepository& asSeenByRemote) \
201 return (bool) (stateRep.lightState(arg1) != asSeenByRemote.lightState(arg1)); \
204 #define DtDEFINE_LIGHT_ATTR_ENCODER( \
205 encClass, attrName, arg1) \
206 void encClass::encode##attrName( \
207 const DtEntityStateRepository& rep, \
208 RTI::AttributeHandleValuePairSet* attrs, \
209 RTI::AttributeHandle attrHandle) \
211 DtNetBoolean netVal; \
212 netVal = rep.lightState(arg1); \
213 attrs->add(attrHandle, (char*) &netVal, sizeof(DtNetBoolean)); \
A DtAttachedPartCollection is a collection of attached parts of an entity.
Definition: attachedPartCollection.h:24
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:60
Definition: netStructs.h:301
#define DtDECLARE_ENTITY_ATTR_ENCODER(attrName)
This is used to declare attribute encoding functions which are members of the class.
Definition: baseEntityEncoder.h:29
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
class DtBaseEntityEncoder:
Definition: baseEntityEncoder.h:58
DtHlaStateEncoder is used to provide encoding of a state repository into a state message in an HLA (a...
Definition: hlaStateEncoder.h:30
An instance of DtObjClassDesc is a "class descriptor" for an HLA Object class.
Definition: objClassDesc1516.h:41
Instances of DtEntityStateRepository are used to maintain attributes and state of entity objects in a...
Definition: entityStateRepository.h:37
DtBaseEntityEncoder & operator=(const DtBaseEntityEncoder &orig)
assignment operator
This file provides a declaration of the class DtBaseEntityEncoder.
Definition: netStructs.h:234
static bool theAreArticulatedPartsDeadReckoned
Definition: physicalEntityEncoder.h:167
Contains the DtEntityStateRepository class declaration.
Definition: netStructs.h:245
Used to provide backwards compatibility for VR-Link Encoders and Decoders who use either AttributeHan...
Definition: rtiCompatibility.h:154
static DtHlaStateEncoder * create(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
Create a DtBaseEntityEncoder. Caller is responsible for deletion.
#define DtDECLARE_ENTITY_ATTR_CHECKER(attrName)
This is used to declare static member functions for determining whether or not an attribute needs to ...
Definition: baseEntityEncoder.h:24
class DtPhysicalEntityEncoder:
Definition: physicalEntityEncoder.h:25