##

PlotWindow.hh
Go to the documentation of this file.
/*
* Copyright (C) 2016 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef GAZEBO_GUI_PLOT_PLOTWINDOW_HH_
#define GAZEBO_GUI_PLOT_PLOTWINDOW_HH_
#include <list>
#include <memory>
#include "gazebo/gui/qt.h"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace gui
{
// Forward declare private data class
class PlotWindowPrivate;
class PlotCanvas;
class GZ_GUI_VISIBLE PlotWindow : public QWidget
{
Q_OBJECT
public: explicit PlotWindow(QWidget *_parent = nullptr);
public: virtual ~PlotWindow();
public: PlotCanvas *AddCanvas();
public: std::list<PlotCanvas *> Plots();
public: void RemoveCanvas(PlotCanvas *_canvas);
public: unsigned int CanvasCount() const;
public: void Clear();
public: void Restart();
private: void UpdateCanvas();
private slots: void Update();
private slots: void OnExport();
private slots: void OnAddCanvas();
private slots: void OnRemoveCanvas();
private slots: void TogglePause();
private: std::unique_ptr<PlotWindowPrivate> dataPtr;
};
}
}
#endif
gazebo::gui::PlotWindow::Clear
void Clear()
Clear and remove all canvases.
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
system.hh
gazebo::gui::PlotWindow::Plots
std::list< PlotCanvas * > Plots()
Get a list of all the plots.
gazebo::gui::PlotCanvas
Plot canvas.
Definition: PlotCanvas.hh:40
gazebo::gui::PlotWindow::RemoveCanvas
void RemoveCanvas(PlotCanvas *_canvas)
Remove a plot canvas.
gazebo::gui::PlotWindow::Restart
void Restart()
Restart plotting.
gazebo::gui::PlotWindow::CanvasCount
unsigned int CanvasCount() const
Get the number of canvases in this plot window.
gazebo::gui::PlotWindow
Plot window.
Definition: PlotWindow.hh:36
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::PlotWindow::PlotWindow
PlotWindow(QWidget *_parent=nullptr)
Constructor.
gazebo::gui::PlotWindow::~PlotWindow
virtual ~PlotWindow()
Destructor.
gazebo::gui::PlotWindow::AddCanvas
PlotCanvas * AddCanvas()
Add a new canvas.