VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tacticalSmokeObjectRepository.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2017 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vl/environmentProcessRepository.h>
14 
18 {
19 public:
20 
21  static DtEnvironmentProcessRepository* create();
22 
24 
26  virtual void setTranslationThreshold(double d);
27  virtual double translationThreshold() const;
28 
30  virtual void setRotationThreshold(double d);
31  virtual double rotationThreshold() const;
32 
34  virtual void setDensityThreshold(double d);
35  virtual double densityThreshold() const;
36 
38  virtual void setSigmaThreshold(double d);
39  virtual double sigmaThreshold() const;
40 
41  // Utility to compare this repository against a remote estimate
42  // Returns True is an update should be sent; False otherwise
43  virtual bool sendNeeded(const DtEnvironmentProcessRepository& asSeenByRemote);
44 
45  void setClock(DtClock* clock);
46  DtClock* clock() const;
47 
48  double lastUpdateTime() const;
49  void setLastUpdateTime(DtTime t);
50 
51 protected:
52 
53  virtual bool sendRecordsNeeded(const DtEnvironmentProcessRepository& asSeenByRemote);
54  virtual bool sendGaussianNeeded(DtTime dt, DtNetEnvironmentalRecord* rec, DtNetEnvironmentalRecord* recRemote);
55  virtual bool sendSmokeStateNeeded(DtTime dt, DtNetEnvironmentalRecord* rec, DtNetEnvironmentalRecord* recRemote);
56  virtual bool sendNetRecNeeded(DtNetEnvironmentalRecord* rec1, DtNetEnvironmentalRecord* rec2);
57 
58 protected:
59 
60  // Thresholds for send-side dead reckoning (used to limit #updates sent)
65 
66  // Helpers for send-side dead reckoning (used to limit #updates sent)
69 
70 };

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)