VR-Link API Documentation for HLA 1.3
 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) 2013 VT MAK
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

Document ID: Generated on Tue Mar 1 02:56:17 EST 2016 from SVN revision 162687
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)