##

TimePanel.hh
Go to the documentation of this file.
/*
* Copyright (C) 2012 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_TIMEPANEL_HH_
#define GAZEBO_GUI_TIMEPANEL_HH_
#include <vector>
#include <list>
#include <string>
#include "gazebo/gui/qt.h"
#include "gazebo/gui/TimeWidget.hh"
#include "gazebo/gui/LogPlayWidget.hh"
#include "gazebo/transport/TransportTypes.hh"
#include "gazebo/msgs/MessageTypes.hh"
#include "gazebo/common/Event.hh"
#include "gazebo/common/Time.hh"
#include "gazebo/util/system.hh"
class QLineEdit;
class QLabel;
namespace gazebo
{
namespace gui
{
class TimePanelPrivate;
class TimeWidget;
class LogPlayWidget;
class GZ_GUI_VISIBLE TimePanel : public QWidget
{
Q_OBJECT
public: explicit TimePanel(QWidget *_parent = 0);
public: virtual ~TimePanel();
public: void ShowRealTimeFactor(bool _show);
public: void ShowRealTime(bool _show);
public: void ShowSimTime(bool _show);
public: void ShowIterations(bool _show);
public: void ShowStepWidget(bool _show);
public: void ShowFPS(bool _show);
public: bool IsPaused() const;
public: void SetPaused(bool _paused);
public slots: void TogglePause();
public slots: void OnStepValueChanged(int _value);
public slots: void OnTimeReset();
signals: void SetTimeWidgetVisible(bool _visible);
signals: void SetLogPlayWidgetVisible(bool _visible);
private slots: void Update();
private slots: void OnPlayActionChanged();
private: void OnFullScreen(bool _value);
private: void OnStats(ConstWorldStatisticsPtr &_msg);
private: TimePanelPrivate *dataPtr;
};
}
}
#endif
gazebo::gui::TimePanel::ShowFPS
void ShowFPS(bool _show)
Show fps.
Time.hh
TimeWidget.hh
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
gazebo::gui::TimePanel::ShowIterations
void ShowIterations(bool _show)
Show the iterations.
TransportTypes.hh
Forward declarations for transport.
system.hh
gazebo::gui::TimePanel::IsPaused
bool IsPaused() const
Returns if the simulation is displayed as paused.
gazebo::gui::TimePanel::ShowStepWidget
void ShowStepWidget(bool _show)
Show the step widget.
gazebo::gui::TimePanel::TogglePause
void TogglePause()
Toggle simulation paused state.
gazebo::gui::TimePanel::ShowRealTimeFactor
void ShowRealTimeFactor(bool _show)
Show real time factor.
gazebo::gui::TimePanel::SetLogPlayWidgetVisible
void SetLogPlayWidgetVisible(bool _visible)
QT signal to set visibility of log play widget.
LogPlayWidget.hh
gazebo::gui::TimePanel::OnStepValueChanged
void OnStepValueChanged(int _value)
Qt call back when the step value in the spinbox changed.
gazebo::gui::TimePanel::SetTimeWidgetVisible
void SetTimeWidgetVisible(bool _visible)
QT signal to set visibility of time widget.
gazebo::gui::TimePanel::ShowSimTime
void ShowSimTime(bool _show)
Show sim time.
gazebo::gui::TimePanel::OnTimeReset
void OnTimeReset()
QT callback when the reset time button is pressed.
gazebo::gui::TimePanel::SetPaused
void SetPaused(bool _paused)
Set whether to display the simulation as paused.
gui
gui
Definition: KeyEventHandler.hh:29
Event.hh
gazebo::gui::TimePanel::ShowRealTime
void ShowRealTime(bool _show)
Show real time.
gazebo::gui::TimePanel::~TimePanel
virtual ~TimePanel()
Destructor.
gazebo::gui::TimePanel
Definition: TimePanel.hh:44
gazebo::gui::TimePanel::TimePanel
TimePanel(QWidget *_parent=0)
Constructor.