VR-Link API Documentation for DIS
hEntityPub.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
9 #ifndef hEntityPub_H_
10 #define hEntityPub_H_
11 
12 #if DtHLA
13 
14 #include "hObjPub.h"
15 #include <vlpi/thresholder.h>
16 #include <vlpi/disEnums.h>
17 
18 
20 class DtGeodeticRegion;
21 class DtDIGuyObjectPublisher;
22 
29 {
30 public:
31 
36  static const DtEntityType& guiseSameAsType();
37 
38 public:
39 
41  typedef DtEntityStateRepository* (*DtStateRepCreator)();
42 
43 public:
44 
47  DtEntityStateRepository* stateRepToUse,
48  DtExerciseConn* conn,
49  const char* name = 0,
50  const DtDDMRegionSet* regionSetToUse = 0);
51 
54  RTI::ObjectClassHandle h,
55  DtExerciseConn* conn,
56  const char* name = 0,
57  const DtDDMRegionSet* regionSetToUse = 0);
58 
61  const DtEntityType& type,
62  DtExerciseConn* conn,
63  const char* name = 0,
64  const DtDDMRegionSet* regionSetToUse = 0);
65 
68  const DtEntityType& type,
69  DtExerciseConn* conn,
70  DtDeadReckonTypes algorithm,
71  DtForceType forceId,
72  const DtEntityType& guise = guiseSameAsType(),
73  const char* name = 0,
74  const DtDDMRegionSet* regionSetToUse = 0);
75 
81  DtEntityPublisher(DtHlaObjectWithStateRep* obj, DtExerciseConn* conn);
82 
84  virtual ~DtEntityPublisher();
85 
88  virtual DtEntityStateRepository* entityStateRep();
89 
91  virtual DtEntityStateRepository* esr();
92 
94  virtual void tick();
95 
96 public:
97 
99  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
100 
101 public:
102 
104 
105  static void setDfltRotationThreshold(double r);
106  static double dfltRotationThreshold();
107  static void setDfltTranslationThreshold(double t);
108  static double dfltTranslationThreshold();
110 
111 
112 protected:
113 
115  void init();
116 
120  void createGeographicRegion(DtExerciseConn* conn);
121 
124 
127 
131  const char* objectClassNameFromType(const DtEntityType& type);
132 
133 protected:
134 
135  static DtStateRepCreator theStateRepCreator;
136 
137  DtDIGuyObjectPublisher* myDiGuyObjectPub;
138  DtBoost::shared_ptr<DtGeodeticRegion> myGeodeticPublishingRegion;
139 };
140 
142 {
144 }
145 
147 {
149 }
150 
151 #if DT_CANT_USE_STATIC_MEMBER_FCN_AS_DFLT_ARG
152 inline const DtEntityType& gGuiseSameAsType()
153 {
155 }
156 #else
157 #undef gGuiseSameAsType
158 #endif
159 
160 #endif
161 #endif
162 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)