OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 #ifndef WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_BASE_H_ | 10 #ifndef WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_BASE_H_ |
11 #define WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_BASE_H_ | 11 #define WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_BASE_H_ |
12 | 12 |
13 #include <memory> | 13 #include <memory> |
14 #include <string> | 14 #include <string> |
15 #include <utility> | 15 #include <utility> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 namespace plotting { | 19 namespace plotting { |
20 | 20 |
21 enum PlotStyle { LINE_GRAPH, LINE_DOT_GRAPH, BAR_GRAPH }; | 21 enum PlotStyle { LINE_GRAPH, LINE_DOT_GRAPH, BAR_GRAPH, LINE_STEP_GRAPH }; |
22 | 22 |
23 struct TimeSeriesPoint { | 23 struct TimeSeriesPoint { |
24 TimeSeriesPoint(float x, float y) : x(x), y(y) {} | 24 TimeSeriesPoint(float x, float y) : x(x), y(y) {} |
25 float x; | 25 float x; |
26 float y; | 26 float y; |
27 }; | 27 }; |
28 | 28 |
29 struct TimeSeries { | 29 struct TimeSeries { |
30 TimeSeries() = default; | 30 TimeSeries() = default; |
31 TimeSeries(TimeSeries&& other) | 31 TimeSeries(TimeSeries&& other) |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 virtual Plot* AppendNewPlot() = 0; | 116 virtual Plot* AppendNewPlot() = 0; |
117 | 117 |
118 protected: | 118 protected: |
119 std::vector<std::unique_ptr<Plot> > plots_; | 119 std::vector<std::unique_ptr<Plot> > plots_; |
120 }; | 120 }; |
121 | 121 |
122 } // namespace plotting | 122 } // namespace plotting |
123 } // namespace webrtc | 123 } // namespace webrtc |
124 | 124 |
125 #endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_BASE_H_ | 125 #endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_BASE_H_ |
OLD | NEW |