17 #ifndef GAZEBO_GUI_PLOT_PLOTCURVE_HH_
18 #define GAZEBO_GUI_PLOT_PLOTCURVE_HH_
24 #include <ignition/math/Vector2.hh>
36 class PlotCurvePrivate;
38 class IncrementalPlot;
45 public:
explicit PlotCurve(
const std::string &_label);
52 public:
void AddPoint(
const ignition::math::Vector2d &_pt);
56 public:
void AddPoints(
const std::vector<ignition::math::Vector2d> &_pt);
66 public:
void Detach();
70 public:
void SetLabel(
const std::string &_label);
74 public: std::string Label()
const;
78 public:
void SetId(
const unsigned int _id);
82 public:
unsigned int Id()
const;
87 public:
void SetActive(
const bool _active);
91 public:
bool Active()
const;
96 public:
void SetAge(
const unsigned int _age);
100 public:
unsigned int Age()
const;
104 public:
unsigned int Size()
const;
108 public: ignition::math::Vector2d Min();
112 public: ignition::math::Vector2d Max();
118 public: ignition::math::Vector2d Point(
const unsigned int _index)
const;
122 public: std::vector<ignition::math::Vector2d> Points()
const;
127 public: QwtPlotCurve *Curve();
131 private: std::unique_ptr<PlotCurvePrivate> dataPtr;
A plotting widget that handles incremental addition of data.
Definition: IncrementalPlot.hh:46
Plot Curve data.
Definition: PlotCurve.hh:41