Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #include "rviz/displays_panel.h"
00031 #include "rviz/help_panel.h"
00032 #include "rviz/selection_panel.h"
00033 #include "rviz/time_panel.h"
00034 #include "rviz/tool_properties_panel.h"
00035 #include "rviz/views_panel.h"
00036
00037 #include "rviz/panel_factory.h"
00038
00039 namespace rviz
00040 {
00041
00042 static Panel* newDisplaysPanel() { return new DisplaysPanel(); }
00043 static Panel* newHelpPanel() { return new HelpPanel(); }
00044 static Panel* newSelectionPanel() { return new SelectionPanel(); }
00045 static Panel* newTimePanel() { return new TimePanel(); }
00046 static Panel* newToolPropertiesPanel() { return new ToolPropertiesPanel(); }
00047 static Panel* newViewsPanel() { return new ViewsPanel(); }
00048
00049 PanelFactory::PanelFactory()
00050 : PluginlibFactory<Panel>( "rviz", "rviz::Panel" )
00051 {
00052 addBuiltInClass( "rviz", "Displays", "Show and edit the list of Displays", &newDisplaysPanel );
00053 addBuiltInClass( "rviz", "Help", "Show the key and mouse bindings", &newHelpPanel );
00054 addBuiltInClass( "rviz", "Selection", "Show properties of selected objects", &newSelectionPanel );
00055 addBuiltInClass( "rviz", "Time", "Show the current time", &newTimePanel );
00056 addBuiltInClass( "rviz", "Tool Properties", "Show and edit properties of tools", &newToolPropertiesPanel );
00057 addBuiltInClass( "rviz", "Views", "Show and edit viewpoints", &newViewsPanel );
00058 }
00059
00060 }