VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtRotorWashTrailPoints.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
11 
12 #pragma once
13 
14 #include <vrvCore/vrvCore.h>
15 
16 #include <matrix/vlVector.h>
17 #include <matrix/vlTaitBryan.h>
18 #include <vlutil/vlTime.h>
19 
20 #include <deque>
21 
22 namespace makVrv
23 {
24  // Represents a point for keeping track of
25  // the rotorwash trail (so the rotorwash can
26  // lag behind the helicopter based on height
27  // and velocity)
29  {
30  public:
33 
36  DtRotorWashTrailPoint(DtTime time, DtVector heliPos, DtVector groundPos);
37 
40 
43  const DtTime& time() const;
45  const DtVector& groundPos() const;
47  const DtVector& heliPos() const;
51  const float& prevDist() const;
54  void setPrevDist(float dist);
55 
56  protected:
61  };
62 
63 
65  {
66  public:
69 
71  DtRotorWashTrailPoints(int maxPoints);
72 
75 
77  void reset();
78 
84  void addPoint(const DtRotorWashTrailPoint& p);
85 
88  const int numPoints() const;
89 
91  DtTime timeRange();
92 
95  bool isTimeInRange(DtTime time);
96 
103  void getPosAtTimeOffset(DtTime timeOffset, DtVector& heliPos, DtVector& groundPos) const;
104 
108  void getPosAtDistOffset(float distOffset, DtVector& heliPos, DtVector& groundPos) const;
109 
111  void printPoints() const;
112 
115  const float& totalGroundDist() const;
116 
118  const int& maxPoints() const;
119 
120  protected:
121  std::deque<DtRotorWashTrailPoint> myTrailPts;
123  // total distance covered by the points
125  };
126 
127 }
float myTotalGroundDist
Definition: DtRotorWashTrailPoints.h:124
Definition: DtRotorWashTrailPoints.h:64
int myMaxPoints
Definition: DtRotorWashTrailPoints.h:122
DtVector myGroundPos
Definition: DtRotorWashTrailPoints.h:58
std::deque< DtRotorWashTrailPoint > myTrailPts
Definition: DtRotorWashTrailPoints.h:121
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Definition: DtRotorWashTrailPoints.h:28
DtTime myTime
Definition: DtRotorWashTrailPoints.h:57
float myDistToPrevPoint
Definition: DtRotorWashTrailPoints.h:60
DtVector myHeliPos
Definition: DtRotorWashTrailPoints.h:59
Contains DLL export macros.

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)