VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
entityStateEncoder.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2014 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
14 #include <vl/stateEncoder.h>
15 #include <vl/entityStatePdu.h>
17 
18 #define DtStateChange_POSITION 0x0100
19 #define DtStateChange_ORIENTATION 0x0200
20 #define DtStateChange_DR_ALG 0x0400
21 #define DtStateChange_DR_OTHER 0x0800
22 #define DtStateChange_APPEARANCE 0x1000
23 #define DtStateChange_ART_PARTS 0x2000
24 #define DtStateChange_ATT_PARTS 0x4000
25 #define DtStateChange_VP_RECS 0x8000
26 
27 
31 class DT_DLL_VL DtEntityStateEncoder : public DtStateEncoder
32 {
33 public:
34 
36  DtEntityStateEncoder();
37 
39  DtEntityStateEncoder( const DtEntityStateEncoder& orig );
40 
42  virtual ~DtEntityStateEncoder();
43 
45  DtEntityStateEncoder& operator = ( const DtEntityStateEncoder& orig );
46 
50  virtual DtEntityStatePdu* stateMsg(
51  const DtEntityStateRepository& stateRep,
52  const DtEntityStateRepository& asSeenByRemote );
53 
54  DtCLONE_ENCODER( DtEntityStateEncoder );
55 
56 protected:
57 
60  virtual bool sendNeeded( const DtEntityStateRepository& stateRep,
61  const DtEntityStateRepository& asSeenByRemote );
62 
64  virtual void fillOut( const DtEntityStateRepository& stateRep,
65  const DtEntityStateRepository& asSeenByRemote,
66  DtEntityStatePdu* pdu );
67 
69  virtual bool artPartsNeedUpdating(
70  const DtEntityStateRepository& stateRep,
71  const DtEntityStateRepository& asSeenByRemote );
72 
74  virtual bool attPartsNeedUpdating(
75  const DtEntityStateRepository& stateRep,
76  const DtEntityStateRepository& asSeenByRemote );
77 
79  virtual bool netnNeedsUpdating(
80  const DtEntityStateRepository& stateRep,
81  const DtEntityStateRepository& asSeenByRemote);
82 
84  virtual bool makExtensionsNeedUpdating(
85  const DtEntityStateRepository& stateRep,
86  const DtEntityStateRepository& asSeenByRemote);
87 
89  virtual bool variableDatumNeedsUpdating(
90  const DtEntityStateRepository& stateRep,
91  const DtEntityStateRepository& asSeenByRemote );
92 
96  virtual void fillOutDeadReckoningParams(
97  const DtEntityStateRepository& stateRep,
98  DtEntityStatePdu* pdu );
99 
102  virtual void fillOutArtAndAttParts(
103  const DtEntityStateRepository& stateRep,
104  const DtEntityStateRepository& asSeenByRemote,
105  DtEntityStatePdu* pdu );
106 
108  virtual void fillOutNetnAttributes(const DtEntityStateRepository& stateRep,
109  const DtEntityStateRepository& asSeenByRemote);
110 
112  virtual void fillOutMakExtendedAttributes(const DtEntityStateRepository& stateRep,
113  const DtEntityStateRepository& asSeenByRemote);
114 
115 protected:
116 
117  DtEntityStatePdu myEsPdu;
118  bool myFilloutMakAttributeRecords;
119  bool myFilloutNetnAttributeRecords;
120 
121 };
122 
123 #endif // DtDIS
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Instances of DtEntityStateRepository are used to maintain attributes and state of entity objects in a...
Definition: entityStateRepository.h:41
Contains the DtEntityStateRepository class declaration.
This file declares the DIS version of DtStateEncoder.
Contains classes, constants and macros which provide a wrapper around the Entity State PDU defined in...

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)