##

TimeWidget.hh
Go to the documentation of this file.
/*
* Copyright (C) 2015 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_TIMEWIDGET_HH_
#define GAZEBO_GUI_TIMEWIDGET_HH_
#include "gazebo/gui/qt.h"
#include "gazebo/gui/TimePanel.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace gui
{
class TimeWidgetPrivate;
class TimePanel;
class GZ_GUI_VISIBLE TimeWidget : public QWidget
{
Q_OBJECT
public: explicit TimeWidget(QWidget *_parent = 0);
public: virtual ~TimeWidget();
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: void EmitSetSimTime(QString _string);
public: void EmitSetRealTime(QString _string);
public: void EmitSetIterations(QString _string);
public: void EmitSetFPS(QString _string);
public: void SetPercentRealTimeEdit(QString _text);
public slots: void OnStepValueChanged(int _value);
public slots: void OnTimeReset();
signals: void SetSimTime(QString _string);
signals: void SetRealTime(QString _string);
signals: void SetIterations(QString _string);
signals: void SetFPS(QString _string);
private: TimeWidgetPrivate *dataPtr;
};
}
}
#endif
gazebo::gui::TimeWidget::OnTimeReset
void OnTimeReset()
QT callback when the reset time button is pressed.
gazebo::gui::TimeWidget::SetIterations
void SetIterations(QString _string)
A signal used to set the iterations line edit.
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
gazebo::gui::TimeWidget::EmitSetIterations
void EmitSetIterations(QString _string)
Emit a signal used to set the iterations line edit.
gazebo::gui::TimeWidget::ShowFPS
void ShowFPS(bool _show)
Show fps.
system.hh
gazebo::gui::TimeWidget::EmitSetRealTime
void EmitSetRealTime(QString _string)
Emit a signal used to set the real time line edit.
gazebo::gui::TimeWidget::ShowIterations
void ShowIterations(bool _show)
Show the iterations.
gazebo::gui::TimeWidget::ShowRealTime
void ShowRealTime(bool _show)
Show real time.
gazebo::gui::TimeWidget::SetSimTime
void SetSimTime(QString _string)
A signal used to set the sim time line edit.
gazebo::gui::TimeWidget::IsPaused
bool IsPaused() const
Returns if the simulation is displayed as paused.
gazebo::gui::TimeWidget
Definition: TimeWidget.hh:31
gazebo::gui::TimeWidget::ShowRealTimeFactor
void ShowRealTimeFactor(bool _show)
Show real time factor.
gazebo::gui::TimeWidget::SetPercentRealTimeEdit
void SetPercentRealTimeEdit(QString _text)
A signal used to set the sim time line edit.
gazebo::gui::TimeWidget::OnStepValueChanged
void OnStepValueChanged(int _value)
Qt call back when the step value in the spinbox changed.
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::TimeWidget::ShowStepWidget
void ShowStepWidget(bool _show)
Show the step widget.
gazebo::gui::TimeWidget::SetPaused
void SetPaused(bool _paused)
Set whether to display the simulation as paused.
gazebo::gui::TimeWidget::~TimeWidget
virtual ~TimeWidget()
Destructor.
gazebo::gui::TimeWidget::EmitSetSimTime
void EmitSetSimTime(QString _string)
Emit a signal used to set the sim time line edit.
TimePanel.hh
gazebo::gui::TimeWidget::ShowSimTime
void ShowSimTime(bool _show)
Show sim time.
gazebo::gui::TimeWidget::TimeWidget
TimeWidget(QWidget *_parent=0)
Constructor.
gazebo::gui::TimeWidget::EmitSetFPS
void EmitSetFPS(QString _string)
Emit a signal used to set the FPS line edit.
gazebo::gui::TimeWidget::SetFPS
void SetFPS(QString _string)
A signal used to set the avg fps line edit.
gazebo::gui::TimeWidget::SetRealTime
void SetRealTime(QString _string)
A signal used to set the real time line edit.