Public Member Functions | Private Slots | Private Attributes | List of all members
rviz::ViewsPanel Class Reference

Panel for choosing the view controller and saving and restoring viewpoints. More...

#include <views_panel.h>

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

Public Member Functions

ViewManagergetViewManager () const
 Returns the current ViewManager. More...
 
void load (const Config &config) override
 Load configuration data, specifically the PropertyTreeWidget view settings. More...
 
void onInitialize () override
 Overridden from Panel. Just calls setViewManager() with vis_manager_->getViewManager(). More...
 
void save (Config config) const override
 Save configuration data, specifically the PropertyTreeWidget view settings. More...
 
void setViewManager (ViewManager *view_man)
 Set the ViewManager which this panel should display and edit. More...
 
 ViewsPanel (QWidget *parent=nullptr)
 
 ~ViewsPanel () override
 
- 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)
 
 Panel (QWidget *parent=nullptr)
 
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
 

Private Slots

void onCurrentChanged ()
 
void onDeleteClicked ()
 
void onTypeSelectorChanged (int selected_index)
 
void onZeroClicked ()
 
void renameSelected ()
 
void setCurrentViewFromIndex (const QModelIndex &index)
 

Private Attributes

QComboBox * camera_type_selector_
 
PropertyTreeWidgetproperties_view_
 
QPushButton * save_button_
 
ViewManagerview_man_
 

Additional Inherited Members

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

Detailed Description

Panel for choosing the view controller and saving and restoring viewpoints.

Definition at line 48 of file views_panel.h.

Constructor & Destructor Documentation

◆ ViewsPanel()

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

Definition at line 47 of file views_panel.cpp.

◆ ~ViewsPanel()

rviz::ViewsPanel::~ViewsPanel ( )
inlineoverride

Definition at line 53 of file views_panel.h.

Member Function Documentation

◆ getViewManager()

ViewManager* rviz::ViewsPanel::getViewManager ( ) const
inline

Returns the current ViewManager.

Definition at line 70 of file views_panel.h.

◆ load()

void rviz::ViewsPanel::load ( const Config config)
overridevirtual

Load configuration data, specifically the PropertyTreeWidget view settings.

Reimplemented from rviz::Panel.

Definition at line 212 of file views_panel.cpp.

◆ onCurrentChanged

void rviz::ViewsPanel::onCurrentChanged ( )
privateslot

Definition at line 192 of file views_panel.cpp.

◆ onDeleteClicked

void rviz::ViewsPanel::onDeleteClicked ( )
privateslot

Definition at line 148 of file views_panel.cpp.

◆ onInitialize()

void rviz::ViewsPanel::onInitialize ( )
overridevirtual

Overridden from Panel. Just calls setViewManager() with vis_manager_->getViewManager().

Reimplemented from rviz::Panel.

Definition at line 87 of file views_panel.cpp.

◆ onTypeSelectorChanged

void rviz::ViewsPanel::onTypeSelectorChanged ( int  selected_index)
privateslot

Definition at line 125 of file views_panel.cpp.

◆ onZeroClicked

void rviz::ViewsPanel::onZeroClicked ( )
privateslot

Definition at line 131 of file views_panel.cpp.

◆ renameSelected

void rviz::ViewsPanel::renameSelected ( )
privateslot

Definition at line 164 of file views_panel.cpp.

◆ save()

void rviz::ViewsPanel::save ( Config  config) const
overridevirtual

Save configuration data, specifically the PropertyTreeWidget view settings.

Reimplemented from rviz::Panel.

Definition at line 206 of file views_panel.cpp.

◆ setCurrentViewFromIndex

void rviz::ViewsPanel::setCurrentViewFromIndex ( const QModelIndex &  index)
privateslot

Definition at line 139 of file views_panel.cpp.

◆ setViewManager()

void rviz::ViewsPanel::setViewManager ( ViewManager view_man)

Set the ViewManager which this panel should display and edit.

If this ViewsPanel is to be used with a ViewManager other than the one in the VisualizationManager sent in through Panel::initialize(), either Panel::initialize() must not be called or setViewManager() must be called after Panel::initialize().

Definition at line 92 of file views_panel.cpp.

Member Data Documentation

◆ camera_type_selector_

QComboBox* rviz::ViewsPanel::camera_type_selector_
private

Definition at line 94 of file views_panel.h.

◆ properties_view_

PropertyTreeWidget* rviz::ViewsPanel::properties_view_
private

Definition at line 92 of file views_panel.h.

◆ save_button_

QPushButton* rviz::ViewsPanel::save_button_
private

Definition at line 93 of file views_panel.h.

◆ view_man_

ViewManager* rviz::ViewsPanel::view_man_
private

Definition at line 91 of file views_panel.h.


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


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Sat May 27 2023 02:06:26