VR-Forces 4.10 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 };
This class creates a network state repository to aid sending tactical smoke objects.
Definition: tacticalSmokeObjectRepository.h:16
double myDensityThreshold
Definition: tacticalSmokeObjectRepository.h:63
DtTime myLastUpdateTime
Definition: tacticalSmokeObjectRepository.h:68
double myRotationThreshold
Definition: tacticalSmokeObjectRepository.h:62
double myTranslationThreshold
Definition: tacticalSmokeObjectRepository.h:61
DtClock * myClock
Definition: tacticalSmokeObjectRepository.h:67
double mySigmaThreshold
Definition: tacticalSmokeObjectRepository.h:64
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)