MAK Data Logger API Documentation for HLA
lgrHlaAggregatePublisher.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef lgrHlaAggregatePublisher_H_
11 #define lgrHlaAggregatePublisher_H_
12 
13 #if DtHLA
14 
15 #include "virtualConstructor.h"
16 
17 #include "lgrPublisherInterface.h"
18 #include <vl/rtiCompatibility.h>
19 #include <vl/aggregatePublisherHLA.h>
20 
21 class DtBaseEntityStateRepository;
22 class DtDeadReckoner;
23 
24 namespace MAKLogger
25 {
26 
27  class DtLgrHlaSimulationManager;
28 
33  {
34  public:
35 
40  (DtLgrHlaSimulationManager& simMgr, RTI::ObjectClassHandle classHandle,
41  const char* objName, const DtDDMRegionSet* regionSetToUse,
42  double hbtime, bool waitForRegionData, bool stat),
43  (DtLgrHlaSimulationManager& simMgr, RTI::ObjectClassHandle classHandle,
44  const char* objName, const DtDDMRegionSet* regionSetToUse,
45  double hbtime=0.0, bool waitForRegionData=false, bool stat=true))
46 
47 
48  virtual ~DtLgrHlaAggregatePublisher();
49 
50  virtual void update(const DtStateMsg& msg, double scaling, bool isStatic);
51 
52  virtual DtObjectPublisher* objPublisher();
53 
55  virtual void tick(double scale, bool isStatic);
56 
59  virtual void sendUpdateAtScaleChangePoint(double oldScale, double newScale, bool wasStatic, bool isStatic);
60 
62  bool sendAllNextTick();
63 
66  void setSendAllNextTick(bool yesNo = true);
67 
68  virtual void setRegion(const DtDDMRegionSet& region);
69 
71  virtual const DtDDMRegionSet& publishingRegions() const;
72 
73  virtual bool publishingToRegion( DtDDMRegionSP region );
74 
75  protected:
78  virtual void sendRequestedAttrs(double scale, bool isStatic);
79 
80  virtual void sendTheseAttrs(const RTI::AttributeHandleSet& attrs, double scale, bool isStatic);
81 
82  virtual void send(DtStateMsg& msg);
83 
86 
89 
90  protected:
91 
94 
97 
98  DtBaseEntityStateRepository* mySeenByAttrs;
99 
100  DtDeadReckoner* myDeadReckoner;
101 
103 
104  // Frozen state saved when scale goes to 0 (i.e. paused)
105  // and is restored when unpaused.
107 
110 
111  DtVector myOrigVelocity;
113  DtVector myOrigRotVel;
114  DtTaitBryan myOrigOrientation;
115  DtVector myOrigLocation;
116  DtTime myOrigTime;
117  };
118 
119 
120 }
121 
122 #endif
123 
124 #endif

Document ID: Generated on Mon Jan 19 08:20:14 EST 2015 from SVN revision 149581
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)