Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes
rviz::DisplaysPanel Class Reference

#include <displays_panel.h>

List of all members.

Public Member Functions

 DisplaysPanel (QWidget *parent=0)
VisualizationManagergetManager ()
PropertyTreeWidgetgetPropertyTreeWidget ()
void initialize (VisualizationManager *manager)
virtual ~DisplaysPanel ()

Protected Types

typedef std::map
< DisplayWrapper *, uint32_t > 
M_DisplayToIndex
typedef std::set< Display * > S_Display

Protected Slots

void onDeleteDisplay ()
 Called when the "Remove" button is pressed.
void onDisplayAdded (DisplayWrapper *display)
void onDisplayAdding (DisplayWrapper *display)
void onDisplayCreated (DisplayWrapper *display)
void onDisplayDestroyed (DisplayWrapper *display)
void onDisplayRemoved (DisplayWrapper *display)
void onDisplayStateChanged (Display *display)
 Called when a display is enabled or disabled.
void onNewDisplay ()
 Called when the "Add" button is pressed.
void onRenameDisplay ()
 Called when the "Rename" button is pressed.
void onSelectionChanged ()
void onStateChangedTimer ()
 Call 5 times per second.
void readFromConfig (const boost::shared_ptr< Config > &config)
void renumberDisplays ()
void writeToConfig (const boost::shared_ptr< Config > &config)

Protected Member Functions

DisplayWrapperdisplayWrapperFromItem (QTreeWidgetItem *selected_item)
std::set< DisplayWrapper * > getSelectedDisplays ()
void setDisplayCategoryColor (const DisplayWrapper *display)
void setDisplayCategoryLabel (const DisplayWrapper *display, int index)
void sortDisplays ()

Protected Attributes

M_DisplayToIndex display_map_
VisualizationManagermanager_
PropertyTreeWidgetproperty_grid_
QPushButton * remove_button_
QPushButton * rename_button_
S_Display state_changed_displays_
boost::mutex state_changed_displays_mutex_
PropertyTreeWithHelptree_with_help_

Detailed Description

Definition at line 59 of file displays_panel.h.


Member Typedef Documentation

typedef std::map<DisplayWrapper*, uint32_t> rviz::DisplaysPanel::M_DisplayToIndex [protected]

Definition at line 119 of file displays_panel.h.

Definition at line 122 of file displays_panel.h.


Constructor & Destructor Documentation

rviz::DisplaysPanel::DisplaysPanel ( QWidget *  parent = 0)

Definition at line 59 of file displays_panel.cpp.

Definition at line 103 of file displays_panel.cpp.


Member Function Documentation

DisplayWrapper * rviz::DisplaysPanel::displayWrapperFromItem ( QTreeWidgetItem *  selected_item) [protected]

Given a QTreeWidgetItem, return the corresponding DisplayWrapper, or NULL if the item does not correspond to a DisplayWrapper.

Definition at line 128 of file displays_panel.cpp.

Definition at line 69 of file displays_panel.h.

Definition at line 68 of file displays_panel.h.

Return the set of DisplayWrappers which are currently selected.

Definition at line 193 of file displays_panel.cpp.

Definition at line 107 of file displays_panel.cpp.

void rviz::DisplaysPanel::onDeleteDisplay ( ) [protected, slot]

Called when the "Remove" button is pressed.

Definition at line 182 of file displays_panel.cpp.

void rviz::DisplaysPanel::onDisplayAdded ( DisplayWrapper display) [protected, slot]

Definition at line 392 of file displays_panel.cpp.

void rviz::DisplaysPanel::onDisplayAdding ( DisplayWrapper display) [protected, slot]

Definition at line 386 of file displays_panel.cpp.

void rviz::DisplaysPanel::onDisplayCreated ( DisplayWrapper display) [protected, slot]

Definition at line 360 of file displays_panel.cpp.

void rviz::DisplaysPanel::onDisplayDestroyed ( DisplayWrapper display) [protected, slot]

Definition at line 369 of file displays_panel.cpp.

void rviz::DisplaysPanel::onDisplayRemoved ( DisplayWrapper display) [protected, slot]

Definition at line 401 of file displays_panel.cpp.

void rviz::DisplaysPanel::onDisplayStateChanged ( Display display) [protected, slot]

Called when a display is enabled or disabled.

Definition at line 353 of file displays_panel.cpp.

void rviz::DisplaysPanel::onNewDisplay ( ) [protected, slot]

Called when the "Add" button is pressed.

Definition at line 160 of file displays_panel.cpp.

void rviz::DisplaysPanel::onRenameDisplay ( ) [protected, slot]

Called when the "Rename" button is pressed.

Definition at line 220 of file displays_panel.cpp.

void rviz::DisplaysPanel::onSelectionChanged ( ) [protected, slot]

Definition at line 210 of file displays_panel.cpp.

void rviz::DisplaysPanel::onStateChangedTimer ( ) [protected, slot]

Call 5 times per second.

Definition at line 322 of file displays_panel.cpp.

void rviz::DisplaysPanel::readFromConfig ( const boost::shared_ptr< Config > &  config) [protected, slot]

Read saved state from the given config object.

Definition at line 424 of file displays_panel.cpp.

void rviz::DisplaysPanel::renumberDisplays ( ) [protected, slot]

Renumber displays based on order in tree widget.

Definition at line 458 of file displays_panel.cpp.

void rviz::DisplaysPanel::setDisplayCategoryColor ( const DisplayWrapper display) [protected]

Definition at line 285 of file displays_panel.cpp.

void rviz::DisplaysPanel::setDisplayCategoryLabel ( const DisplayWrapper display,
int  index 
) [protected]

Definition at line 278 of file displays_panel.cpp.

void rviz::DisplaysPanel::sortDisplays ( ) [protected]

Definition at line 123 of file displays_panel.cpp.

void rviz::DisplaysPanel::writeToConfig ( const boost::shared_ptr< Config > &  config) [protected, slot]

Write state to the given config object.

Definition at line 449 of file displays_panel.cpp.


Member Data Documentation

Definition at line 120 of file displays_panel.h.

Definition at line 117 of file displays_panel.h.

Definition at line 116 of file displays_panel.h.

QPushButton* rviz::DisplaysPanel::remove_button_ [protected]

Definition at line 126 of file displays_panel.h.

QPushButton* rviz::DisplaysPanel::rename_button_ [protected]

Definition at line 127 of file displays_panel.h.

Definition at line 124 of file displays_panel.h.

Definition at line 123 of file displays_panel.h.

Definition at line 128 of file displays_panel.h.


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


rviz
Author(s): Dave Hershberger, Josh Faust
autogenerated on Mon Jan 6 2014 11:54:33