VR-Link API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedPointObjectDIS.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 1992-2025 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
14 
17 #include <vl/reflectedObjectDIS.h>
18 #include <vl/objectIdHashKey.h>
19 
21 
24 typedef void (*DtPointObjectCallbackFunction)( DtReflectedPointObject*, void* );
25 
30 {
31 public:
32 
34  typedef DtPointObjectRepository* (*DtStateRepCreator)();
35 
36 public:
37 
40  const DtEntityIdentifier& id );
41 
43  virtual ~DtReflectedPointObject();
44 
46  virtual inline DtPointObjectRepository* pointObjectStateRep() const { return myStateRepository; }
47 
49  virtual inline DtPointObjectRepository* posr() const { return myStateRepository; }
50 
53  virtual inline DtStateRepository* stateRep() const { return myStateRepository; }
54 
57  virtual void processStateMessage( const DtStateMsg& msg );
58 
60  virtual DtReflectedPointObject* next() const;
61 
63  virtual DtReflectedPointObject* prev() const;
64 
67  virtual DtReflectedPointObject* wrapNext() const;
68 
71  virtual DtReflectedPointObject* wrapPrev() const;
72 
74  virtual void addPostUpdateCallback(
75  DtPointObjectCallbackFunction cb, void* usr );
76  virtual void removePostUpdateCallback(
77  DtPointObjectCallbackFunction cb, void* usr );
78 
80  virtual inline const DtBaseHashKey& hashKey() const { return myHashKey; }
81 
83  virtual inline DtString idString() const { return myIdString; }
84 
87  virtual const DtGlobalObjectDesignator& globalId() const;
88 
90  static void setStateRepCreator( DtStateRepCreator creator );
91  static DtStateRepCreator stateRepCreator();
92 
93 protected:
94 
97 
100 
101 protected:
102 
103  static DtStateRepCreator theStateRepCreator;
104 
105  DtEntityIdentifierHashKey myHashKey;
106  DtString myIdString;
107  DtPointObjectRepository* myStateRepository;
109 
110 };
111 
112 #endif // DtDIS
Instances of DtEntityIdentifierHashKey are hash keys made from DtEntityIdentifiers.
Definition: entityIdentifierHashKey.h:21
DtHlaStateDecoder * myDecoder
Definition: reflectedObjectHLA.h:181
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
Contains the DtPointObjectRepository class declaration.
void(* DtPointObjectCallbackFunction)(DtReflectedPointObject *obj, void *userData)
Definition: reflectedPointObjectHLA.h:23
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtBaseHashKey is an abstract base class for hash keys.
Definition: vlHashKeys.h:39
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – Not Implemented
virtual DtStateRepository * stateRep() const
Returns a pointer to the StateRepository - through which you can inspect current state information...
Definition: reflectedObjectHLA.h:198
virtual const DtGlobalObjectDesignator & globalId() const
Get the HLA object&#39;s global object designator - the object name in HLA.
class DtReflectedObject:
Definition: reflectedObjectHLA.h:36
Contains the DIS DtPointObjectDecoder class declaration.
Instances of DtPointObjectRepository are used to maintain state information needed by point environme...
Definition: pointObjectRepository.h:31
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
Instances of DtPointObjectDecoder are used to decode point object state messages for a state reposito...
Definition: pointObjectDecoderHLA.h:26
Instances of DtString are used to represent strings.
Definition: vlString.h:36
class DtStateMsg:
Definition: stateMsgHLA.h:32
class DtReflectedPointObject:
Definition: reflectedPointObjectHLA.h:31

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)