Virtual Testbed
Ship dynamics simulator for extreme conditions
TimeSeriesPanel.hh
1 #ifndef VTESTBED_GUI_TIMESERIESPANEL_HH
2 #define VTESTBED_GUI_TIMESERIESPANEL_HH
3 
4 #include <vtestbed/base/minmaxmean.hh>
5 #include <vtestbed/core/grid.hh>
6 #include <vtestbed/core/statistics.hh>
7 #include <vtestbed/gui/Window.hh>
8 #include <vtestbed/gui/types.hh>
9 
10 namespace vtb {
11 
12  namespace gui {
13 
14  template <class T>
15  class TimeSeriesPanel: public Window {
16 
17  private:
21 
22  private:
23  std::vector<Float> _series;
25  static constexpr const T min_range = T{0};
26 
27  public:
28 
29  void
30  step(
31  const time_series& t,
32  const time_series& x,
33  const grid1& grid
34  );
35 
36  void
37  draw();
38 
39  inline void clear() { this->_stats.clear(); }
40 
41  };
42 
43  }
44 
45 }
46 
47 #endif // vim:filetype=cpp
A region defined by start and end index and lower and upper bound for each dimension.
Definition: core/grid.hh:25
Main namespace.
Definition: convert.hh:9
Fixed-size circular buffer. Used as time series storage.