2016-07-13 06:44:41 -07:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
2019-07-25 13:57:41 +02:00
|
|
|
#ifndef RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PYTHON_H_
|
|
|
|
|
#define RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PYTHON_H_
|
2016-07-13 06:44:41 -07:00
|
|
|
|
2021-02-22 12:43:39 +01:00
|
|
|
#include "absl/base/attributes.h"
|
2019-07-25 13:57:41 +02:00
|
|
|
#include "rtc_tools/rtc_event_log_visualizer/plot_base.h"
|
2016-07-13 06:44:41 -07:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
|
|
|
|
class PythonPlot final : public Plot {
|
|
|
|
|
public:
|
|
|
|
|
PythonPlot();
|
|
|
|
|
~PythonPlot() override;
|
2016-08-01 12:03:27 -07:00
|
|
|
void Draw() override;
|
2016-07-13 06:44:41 -07:00
|
|
|
};
|
|
|
|
|
|
2021-02-22 12:43:39 +01:00
|
|
|
class ABSL_DEPRECATED("Use PlotCollection and PrintPythonCode() instead.")
|
|
|
|
|
PythonPlotCollection final : public PlotCollection {
|
2016-07-13 06:44:41 -07:00
|
|
|
public:
|
2021-02-22 12:43:39 +01:00
|
|
|
explicit PythonPlotCollection(bool shared_xaxis = false);
|
2016-07-13 06:44:41 -07:00
|
|
|
~PythonPlotCollection() override;
|
2016-08-01 12:03:27 -07:00
|
|
|
void Draw() override;
|
|
|
|
|
Plot* AppendNewPlot() override;
|
2019-04-11 18:34:01 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
bool shared_xaxis_;
|
2016-07-13 06:44:41 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2019-07-25 13:57:41 +02:00
|
|
|
#endif // RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PYTHON_H_
|