VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
entityPublisherHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
9 #ifndef entityPublisherHLA_H_
10 #define entityPublisherHLA_H_
11 
12 #if DtHLA
13 
14 #include "objectPublisherHLA.h"
15 #include <vlpi/thresholder.h>
16 #include <vlpi/disEnums.h>
17 
18 
20 class DtGeodeticRegion;
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 
82 
84  virtual ~DtEntityPublisher();
85 
88  virtual DtEntityStateRepository* entityStateRep();
89 
91  virtual DtEntityStateRepository* esr();
92 
96  virtual void enableDiGuyInformation();
97 
99  virtual void tick();
100 
104  virtual DtOwnershipHandler* setOwnershipHandler( DtOwnershipHandler* handler );
105 
107  virtual void divestObject();
108 
109 public:
110 
112  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
113 
114 public:
115 
117 
118  static void setDfltRotationThreshold(double r);
119  static double dfltRotationThreshold();
120  static void setDfltTranslationThreshold(double t);
121  static double dfltTranslationThreshold();
123 
124 
125 protected:
126 
132  const char* name = 0,
133  const DtDDMRegionSet* regionSetToUse = 0);
134 
136  void init();
137 
141  void createGeographicRegion(DtExerciseConn* conn);
142 
145 
148 
152  const char* objectClassNameFromType(const DtEntityType& type);
153 
154 protected:
155 
156  static DtStateRepCreator theStateRepCreator;
157 
159  DtBoost::shared_ptr<DtGeodeticRegion> myGeodeticPublishingRegion;
160 };
161 
163 {
165 }
166 
168 {
170 }
171 
172 #if DT_CANT_USE_STATIC_MEMBER_FCN_AS_DFLT_ARG
173 inline const DtEntityType& gGuiseSameAsType()
174 {
176 }
177 #else
178 #undef gGuiseSameAsType
179 #endif
180 
181 #endif
182 #endif
183 

Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (www.mak.com)