30 #ifndef RVIZ_VISUALIZATION_FRAME_H 31 #define RVIZ_VISUALIZATION_FRAME_H 33 #include <QMainWindow> 58 class VisualizationManager;
60 class WidgetGeometryChangeDetector;
102 void initialize(
const QString& display_config_file =
"" );
110 Qt::DockWidgetArea area = Qt::LeftDockWidgetArea,
111 bool floating =
true );
114 const QString& class_lookup_name,
115 Qt::DockWidgetArea area = Qt::LeftDockWidgetArea,
116 bool floating =
true );
170 virtual void setStatus(
const QString & message );
273 virtual void closeEvent( QCloseEvent* event );
301 void hideDockImpl( Qt::DockWidgetArea area,
bool hide );
380 #endif // RVIZ_VISUALIZATION_FRAME_H
void indicateToolIsCurrent(Tool *tool)
Mark the given tool as the current one.
void addTool(Tool *tool)
Add the given tool to this frame's toolbar.
QString getErrorMessage() const
void saveToolbars(Config config)
Saves the user configuration of the toolbar to the config node.
void exitFullScreen()
Exit full screen mode.
void hideLeftDock(bool hide)
void setHideButtonVisibility(bool visible)
Hide or show the hide-dock buttons.
void removeTool(Tool *tool)
Remove the given tool from the frame's toolbar.
void fullScreenChange(bool hidden)
Emitted when the interface enters or leaves full screen mode.
VisualizationManager * getManager()
QDockWidget * addPanelByName(const QString &name, const QString &class_lookup_name, Qt::DockWidgetArea area=Qt::LeftDockWidgetArea, bool floating=true)
void hideRightDock(bool hide)
std::string persistent_settings_file_
bool saveDisplayConfig(const QString &path)
Save display and other settings to the given file.
virtual void load(const Config &config)
Load the properties of all subsystems from the given Config.
QString error_message_
Error message (if any) from most recent saveDisplayConfig() call.
std::string display_config_file_
void onDeletePanel()
Delete a panel widget.
QMenu * recent_configs_menu_
void statusUpdate(const QString &message)
Emitted during file-loading and initialization to indicate progress.
void setSplashPath(const QString &splash_path)
Set the path to the "splash" image file. This image is shown during initialization and loading of the...
PanelFactory * panel_factory_
void onRecentConfigSelected()
virtual QWidget * getParentWindow()
bool show_choose_new_master_option_
void onToolbarRemoveTool(QAction *remove_tool_menu_action)
Remove a the tool whose name is given by remove_tool_menu_action->text().
std::string last_image_dir_
void openNewPanelDialog()
void initialize(const QString &display_config_file="")
Initialize the visualizer. Creates the VisualizationManager.
void savePanels(Config config)
Saves custom panels to the given config node.
bool toolbar_visible_
Indicates if the toolbar should be visible outside of fullscreen mode.
std::map< Tool *, QAction * > tool_to_action_map_
virtual void setStatus(const QString &message)
virtual void onDockPanelVisibilityChange(bool visible)
virtual void closeEvent(QCloseEvent *event)
QMenu * remove_tool_menu_
void savePersistentSettings()
Save the "general" config file, which has just the few things which should not be saved with a displa...
QToolButton * hide_left_dock_button_
Configuration data storage class.
void loadWindowGeometry(const Config &config)
void onToolbarActionTriggered(QAction *action)
Looks up the Tool for this action and calls VisualizationManager::setCurrentTool().
QList< PanelRecord > custom_panels_
void setDisplayConfigFile(const std::string &path)
Set the display config file path.
QStatusBar * original_status_bar_
void setImageSaveDirectory(const QString &directory)
Set the default directory in which to save screenshot images.
RenderPanel * render_panel_
VisualizationManager * manager_
std::string package_path_
void setFullScreen(bool full_screen)
Set full screen mode.
void loadPersistentSettings()
Load the "general" config file, which has just the few things which should not be saved with a displa...
The VisualizationManager class is the central manager class of rviz, holding all the Displays...
void setHelpPath(const QString &help_path)
Set the path to the help file. Should contain HTML. Default is a file in the RViz package...
QAction * add_tool_action_
QActionGroup * toolbar_actions_
std::map< QAction *, Tool * > action_to_tool_map_
std::deque< std::string > D_string
virtual PanelDockWidget * addPane(const QString &name, QWidget *panel, Qt::DockWidgetArea area=Qt::LeftDockWidgetArea, bool floating=true)
void initConfigs()
Initialize the default config directory (~/.rviz) and set up the persistent_settings_file_ and displa...
void markLoadingDone()
Set loading_ to false.
void onButtonStyleTool(QAction *button_style_tool_menu_action)
Change the button style of the toolbar.
void loadDisplayConfig(const QString &path)
Load display and other settings from the given file.
bool loading_
True just when loading a display config file, false all other times.
void updateRecentConfigMenu()
void setDisplayConfigModified()
Call this to let the frame know that something that would get saved in the display config has changed...
void hideDockImpl(Qt::DockWidgetArea area, bool hide)
void saveWindowGeometry(Config config)
void changeMaster()
Save the current state and quit with exit code 255 to signal the wrapper that we would like to restar...
ros::WallTime last_fps_calc_time_
VisualizationFrame(QWidget *parent=0)
QTimer * post_load_timer_
Single-shot timer for calling postLoad() a short time after loadDisplayConfig() finishes.
bool prepareToExit()
Check for unsaved changes, prompt to save config, etc.
QMenu * delete_view_menu_
WidgetGeometryChangeDetector * geom_change_detector_
void initToolbars()
Sets up the top toolbar with QToolbuttions for adding/deleting tools and modifiying the tool view...
std::string default_display_config_file_
void setApp(QApplication *app)
void loadPanels(const Config &config)
Loads custom panels from the given config node.
void markRecentConfig(const std::string &path)
void setShowChooseNewMaster(bool show)
Call this before initialize() to have it take effect.
std::string last_config_dir_
virtual void save(Config config)
Save the properties of each subsystem and most editable rviz data.
void refreshTool(Tool *tool)
Refresh the given tool in this frame's' toolbar.
QToolButton * hide_right_dock_button_
void configureToolbars(const Config &config)
Applies the user defined toolbar configuration from the given config node.
virtual void leaveEvent(QEvent *event)
QAction * show_help_action_