Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
rviz::TimePanel Class Reference

#include <time_panel.h>

Inheritance diagram for rviz::TimePanel:
Inheritance graph
[legend]

Public Member Functions

void onInitialize () override
 
 TimePanel (QWidget *parent=nullptr)
 
- Public Member Functions inherited from rviz::Panel
virtual QString getClassId () const
 Return the class identifier which was used to create this instance. This version just returns whatever was set with setClassId(). More...
 
virtual QString getDescription () const
 Return a description of this Panel. More...
 
virtual QString getName () const
 
void initialize (VisualizationManager *manager)
 
virtual void load (const Config &config)
 Override to load configuration data. This version loads the name of the panel. More...
 
 Panel (QWidget *parent=nullptr)
 
virtual void save (Config config) const
 Override to save configuration data. This version saves the name and class ID of the panel. More...
 
virtual void setClassId (const QString &class_id)
 Set the class identifier used to create this instance. Typically this will be set by the factory object which created it. More...
 
virtual void setDescription (const QString &description)
 Set a description of this Panel. Called by the factory which creates it. More...
 
virtual void setName (const QString &name)
 
 ~Panel () override
 

Protected Slots

void load (const Config &config) override
 
void onDisplayAdded (rviz::Display *display)
 
void onDisplayRemoved (rviz::Display *display)
 
void onTimeSignal (ros::Time time)
 
void pauseToggled (bool checked)
 
void save (Config config) const override
 
void syncModeSelected (int index)
 
void syncSourceSelected (int index)
 
void update ()
 

Protected Member Functions

void fillTimeLabel (QLineEdit *label, double time)
 
QLineEdit * makeTimeLabel ()
 

Protected Attributes

QString config_sync_source_
 
QPushButton * pause_button_
 
QLineEdit * ros_elapsed_label_
 
QLineEdit * ros_time_label_
 
QComboBox * sync_mode_selector_
 
QComboBox * sync_source_selector_
 
QLineEdit * wall_elapsed_label_
 
QLineEdit * wall_time_label_
 
- Protected Attributes inherited from rviz::Panel
VisualizationManagervis_manager_
 

Additional Inherited Members

- Signals inherited from rviz::Panel
void configChanged ()
 Subclasses must emit this whenever a configuration change happens. More...
 

Detailed Description

Definition at line 52 of file time_panel.h.

Constructor & Destructor Documentation

◆ TimePanel()

rviz::TimePanel::TimePanel ( QWidget *  parent = nullptr)

Definition at line 49 of file time_panel.cpp.

Member Function Documentation

◆ fillTimeLabel()

void rviz::TimePanel::fillTimeLabel ( QLineEdit *  label,
double  time 
)
protected

Fill a single time label with the given time value (in seconds).

Definition at line 209 of file time_panel.cpp.

◆ load

void rviz::TimePanel::load ( const Config config)
overrideprotectedslot

Definition at line 120 of file time_panel.cpp.

◆ makeTimeLabel()

QLineEdit * rviz::TimePanel::makeTimeLabel ( )
protected

Create, configure, and return a single label for showing a time value.

Definition at line 202 of file time_panel.cpp.

◆ onDisplayAdded

void rviz::TimePanel::onDisplayAdded ( rviz::Display display)
protectedslot

Definition at line 139 of file time_panel.cpp.

◆ onDisplayRemoved

void rviz::TimePanel::onDisplayRemoved ( rviz::Display display)
protectedslot

Definition at line 159 of file time_panel.cpp.

◆ onInitialize()

void rviz::TimePanel::onInitialize ( )
overridevirtual

Override to do initialization which depends on the VisualizationManager being available. This base implementation does nothing.

Reimplemented from rviz::Panel.

Definition at line 109 of file time_panel.cpp.

◆ onTimeSignal

void rviz::TimePanel::onTimeSignal ( ros::Time  time)
protectedslot

Definition at line 169 of file time_panel.cpp.

◆ pauseToggled

void rviz::TimePanel::pauseToggled ( bool  checked)
protectedslot

Definition at line 222 of file time_panel.cpp.

◆ save

void rviz::TimePanel::save ( Config  config) const
overrideprotectedslot

Definition at line 132 of file time_panel.cpp.

◆ syncModeSelected

void rviz::TimePanel::syncModeSelected ( int  index)
protectedslot

Definition at line 234 of file time_panel.cpp.

◆ syncSourceSelected

void rviz::TimePanel::syncSourceSelected ( int  index)
protectedslot

Definition at line 227 of file time_panel.cpp.

◆ update

void rviz::TimePanel::update ( )
protectedslot

Read time values from VisualizationManager and update displays.

Definition at line 214 of file time_panel.cpp.

Member Data Documentation

◆ config_sync_source_

QString rviz::TimePanel::config_sync_source_
protected

Definition at line 84 of file time_panel.h.

◆ pause_button_

QPushButton* rviz::TimePanel::pause_button_
protected

Definition at line 86 of file time_panel.h.

◆ ros_elapsed_label_

QLineEdit* rviz::TimePanel::ros_elapsed_label_
protected

Definition at line 91 of file time_panel.h.

◆ ros_time_label_

QLineEdit* rviz::TimePanel::ros_time_label_
protected

Definition at line 90 of file time_panel.h.

◆ sync_mode_selector_

QComboBox* rviz::TimePanel::sync_mode_selector_
protected

Definition at line 88 of file time_panel.h.

◆ sync_source_selector_

QComboBox* rviz::TimePanel::sync_source_selector_
protected

Definition at line 87 of file time_panel.h.

◆ wall_elapsed_label_

QLineEdit* rviz::TimePanel::wall_elapsed_label_
protected

Definition at line 93 of file time_panel.h.

◆ wall_time_label_

QLineEdit* rviz::TimePanel::wall_time_label_
protected

Definition at line 92 of file time_panel.h.


The documentation for this class was generated from the following files:


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Aug 2 2024 08:43:11