VR-Forces 4.1 Class Documentation
tacticalSmokeObjSR.h
Go to the documentation of this file.
1 #ifndef tacticalSmokeObjSR_H_
2 #define tacticalSmokeObjSR_H_
3 
5 #include <vl/envProcessSR.h>
6 
9 {
10 public:
12  static DtEnvironmentProcessRepository* create();
13 
15  virtual void setTranslationThreshold(double d);
16  virtual double translationThreshold() const;
17 
19  virtual void setRotationThreshold(double d);
20  virtual double rotationThreshold() const;
21 
23  virtual void setDensityThreshold(double d);
24  virtual double densityThreshold() const;
25 
27  virtual void setSigmaThreshold(double d);
28  virtual double sigmaThreshold() const;
29 
30  // Utility to compare this repository against a remote estimate
31  // Returns True is an update should be sent; False otherwise
32  virtual bool sendNeeded(const DtEnvironmentProcessRepository& asSeenByRemote);
33 
34  void setClock(DtClock* clock);
35  DtClock* clock() const;
36 
37  double lastUpdateTime() const;
38  void setLastUpdateTime(DtTime t);
39 
40 protected:
41 
42  virtual bool sendRecordsNeeded(const DtEnvironmentProcessRepository& asSeenByRemote);
43  virtual bool sendGaussianNeeded(DtTime dt, DtNetEnvironmentalRecord* rec, DtNetEnvironmentalRecord* recRemote);
44  virtual bool sendSmokeStateNeeded(DtTime dt, DtNetEnvironmentalRecord* rec, DtNetEnvironmentalRecord* recRemote);
45  virtual bool sendNetRecNeeded(DtNetEnvironmentalRecord* rec1, DtNetEnvironmentalRecord* rec2);
46 
47 protected:
48  // Thresholds for send-side dead reckoning (used to limit #updates sent)
53 
54  // Helpers for send-side dead reckoning (used to limit #updates sent)
55  DtClock* myClock;
57 };
58 
59 #endif
60 
61 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)