time_panel.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012, Willow Garage, Inc.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * * Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * * Neither the name of the Willow Garage, Inc. nor the names of its
14  * contributors may be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27  * POSSIBILITY OF SUCH DAMAGE.
28  */
29 
30 #ifndef RVIZ_TIME_PANEL_H
31 #define RVIZ_TIME_PANEL_H
32 
33 #include "rviz/panel.h"
34 #include "ros/time.h"
35 
36 class QLineEdit;
37 class QComboBox;
38 class QCheckBox;
39 class QPushButton;
40 class QHBoxLayout;
41 class QWidget;
42 
43 namespace rviz
44 {
45 
46 class VisualizationManager;
47 class Display;
48 
53 class TimePanel: public Panel
54 {
55 Q_OBJECT
56 public:
57  TimePanel( QWidget* parent = 0 );
58 
59  virtual void onInitialize();
60 
61 protected Q_SLOTS:
62 
63  void pauseToggled( bool checked );
64  void syncModeSelected( int index );
65  void syncSourceSelected( int index );
66  void experimentalToggled( bool checked );
67 
69  void update();
70 
71  void onDisplayAdded( rviz::Display* display );
72  void onDisplayRemoved( rviz::Display* display );
73 
74  void onTimeSignal( rviz::Display* display, ros::Time time );
75 
76  virtual void load( const Config& config );
77  virtual void save( Config config ) const;
78 
79 protected:
80 
82  QLineEdit* makeTimeLabel();
83 
85  void fillTimeLabel( QLineEdit* label, double time );
86 
87  QWidget* old_widget_;
89 
91 
92  QCheckBox* experimental_cb_;
93 
94  QPushButton* pause_button_;
96  QComboBox* sync_mode_selector_;
97 
98  QLineEdit* ros_time_label_;
99  QLineEdit* ros_elapsed_label_;
100  QLineEdit* wall_time_label_;
102 };
103 
104 } // namespace rviz
105 
106 #endif
107 
108 
QLineEdit * wall_elapsed_label_
Definition: time_panel.h:101
TimePanel(QWidget *parent=0)
Definition: time_panel.cpp:50
virtual void save(Config config) const
Definition: time_panel.cpp:144
QPushButton * pause_button_
Definition: time_panel.h:94
QWidget * experimental_widget_
Definition: time_panel.h:88
QString config_sync_source_
Definition: time_panel.h:90
QComboBox * sync_source_selector_
Definition: time_panel.h:95
virtual void onInitialize()
Definition: time_panel.cpp:117
void fillTimeLabel(QLineEdit *label, double time)
Definition: time_panel.cpp:218
config
virtual void load(const Config &config)
Definition: time_panel.cpp:128
void pauseToggled(bool checked)
Definition: time_panel.cpp:231
QCheckBox * experimental_cb_
Definition: time_panel.h:92
QComboBox * sync_mode_selector_
Definition: time_panel.h:96
Configuration data storage class.
Definition: config.h:125
QWidget * old_widget_
Definition: time_panel.h:87
QLineEdit * ros_elapsed_label_
Definition: time_panel.h:99
QLineEdit * ros_time_label_
Definition: time_panel.h:98
void experimentalToggled(bool checked)
Definition: time_panel.cpp:236
void syncSourceSelected(int index)
Definition: time_panel.cpp:255
void onDisplayAdded(rviz::Display *display)
Definition: time_panel.cpp:152
void syncModeSelected(int index)
Definition: time_panel.cpp:262
QLineEdit * makeTimeLabel()
Definition: time_panel.cpp:211
QLineEdit * wall_time_label_
Definition: time_panel.h:100
void onTimeSignal(rviz::Display *display, ros::Time time)
Definition: time_panel.cpp:182
void onDisplayRemoved(rviz::Display *display)
Definition: time_panel.cpp:172


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Wed Aug 28 2019 04:01:51