VR-Forces 4.8 Class Documentation
 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 VT MAK
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 
72  DtRotorWashTrailPoints(int maxPoints);
73 
76 
78  void reset();
79 
85  void addPoint(const DtRotorWashTrailPoint& p);
86 
89  const int numPoints() const;
90 
92  DtTime timeRange();
93 
96  bool isTimeInRange(DtTime time);
97 
104  void getPosAtTimeOffset(DtTime timeOffset, DtVector& heliPos, DtVector& groundPos) const;
105 
109  void getPosAtDistOffset(float distOffset, DtVector& heliPos, DtVector& groundPos) const;
110 
112  void printPoints() const;
113 
116  const float& totalGroundDist() const;
117 
120  const int& maxPoints() const;
121 
122  protected:
123  std::deque<DtRotorWashTrailPoint> myTrailPts;
125  // total distance covered by the points
127  };
128 
129 }
float myTotalGroundDist
Definition: DtRotorWashTrailPoints.h:126
Definition: DtRotorWashTrailPoints.h:64
int myMaxPoints
Definition: DtRotorWashTrailPoints.h:124
DtVector myGroundPos
Definition: DtRotorWashTrailPoints.h:58
std::deque< DtRotorWashTrailPoint > myTrailPts
Definition: DtRotorWashTrailPoints.h:123
#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 Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)