VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
reflectedRectangularPyramidDIS.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2017 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
15 #include <vl/globalObjectDesignator.h>
16 #include <vl/globalObjectDesignator.h>
17 #include <vl/reflectedObjectDIS.h>
18 #include <vl/objectIdHashKey.h>
19 #include <vlutil/vlMachineTypes.h>
20 
21 class DtExerciseConn;
22 
27 
30  DtReflectedRectangularPyramid* obj, void* userData);
31 
34 {
35 public:
36 
38  typedef DtRectangularPyramidStateRepository* (*DtStateRepCreator)();
39 
40 public:
41 
43  DtReflectedRectangularPyramid(DtExerciseConn* conn,
44  const DtEntityIdentifier& id);
45 
48 
49 private:
52 
55 public:
56 
59  virtual DtRectangularPyramidStateRepository* rectangularPyramidStateRep() const;
60 
62  virtual DtRectangularPyramidStateRepository* rsr() const;
63 
67  virtual DtStateRepository* stateRep() const;
68 
71  virtual DtRectangularPyramidDecoder* decoder();
72 
74  virtual const DtObjectId& id() const;
75 
78  virtual const DtGlobalObjectDesignator& globalId() const;
79 
81  virtual DtReflectedRectangularPyramid* next() const;
82  virtual DtReflectedRectangularPyramid* prev() const;
83 
85  virtual DtReflectedRectangularPyramid* wrapNext() const;
86  virtual DtReflectedRectangularPyramid* wrapPrev() const;
87 
89  virtual void addPostUpdateCallback(
90  DtRectangularPyramidCallbackFunction cb, void* userData);
91  virtual void removePostUpdateCallback(
92  DtRectangularPyramidCallbackFunction cb, void* userData);
93 
95  virtual void setHashKey(const DtString& uniqueVal);
96 
99  virtual const DtBaseHashKey& hashKey() const;
100 
102  virtual DtString idString() const;
103 
104 
106  virtual void processStateMessage(const DtStateMsg& msg);
107 
110  virtual void processRectangularPyramidState(const DtRectangularPyramidPdu& pdu);
111 
112 public:
113 
115  static void setStateRepCreator(DtStateRepCreator creator);
116  static DtStateRepCreator stateRepCreator(void);
117 
118 protected:
119 
120  static DtStateRepCreator theStateRepCreator;
121  DtStringHashKey myHashKey;
122  DtEntityIdentifier myId;
125 };
126 
127 #endif // DtDIS
Instances of DtRectangularPyramidDecoder encode data from DtRectangularPyramidStateRepository objects...
Definition: rectangularPyramidDecoderDIS.h:24
void(* DtRectangularPyramidCallbackFunction)(DtReflectedRectangularPyramid *obj, void *userData)
Definition: reflectedRectangularPyramidDIS.h:29
DtEntityIdentifier myId
Definition: reflectedRectangularPyramidDIS.h:122
Instances of DtReflectedRectangularPyramid are used to represent a simulated HLAobjectRoot.SensorFieldOfView.RectangularPyramid object reflected across a network.
Definition: reflectedRectangularPyramidDIS.h:33
static DtStateRepCreator theStateRepCreator
The function called to create state repositories.
Definition: reflectedRectangularPyramidDIS.h:120
DtRectangularPyramidStateRepository * myStateRep
Definition: reflectedRectangularPyramidDIS.h:123
DtRectangularPyramidDecoder * myDecoder
Definition: reflectedRectangularPyramidDIS.h:124
Instances of DtRectangularPyramidPdu are used for DIS network packets which encode the DtRectangularP...
Definition: rectangularPyramidPduDIS.h:30
DtStringHashKey myHashKey
Definition: reflectedRectangularPyramidDIS.h:121
Instances of DtRectangularPyramidStateRepository are used to store state data for HLAobjectRoot...
Definition: rectangularPyramidStateRepository.h:20
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)