Go to the documentation of this file.
30 #ifndef RVIZ_VISUALIZATION_FRAME_H
31 #define RVIZ_VISUALIZATION_FRAME_H
33 #include <boost/shared_ptr.hpp>
35 #include <QMainWindow>
44 #include <rviz/rviz_export.h>
61 class VisualizationManager;
63 class WidgetGeometryChangeDetector;
81 [[deprecated(
"setApp() not needed anymore")]]
void setApp(QApplication*
app);
84 void setShowChooseNewMaster(
bool show);
88 void setHelpPath(
const QString& help_path);
94 void setSplashPath(
const QString& splash_path);
105 void initialize(
const QString& display_config_file =
"");
113 QWidget* getParentWindow()
override;
116 Qt::DockWidgetArea area = Qt::LeftDockWidgetArea,
117 bool floating =
false)
override;
119 QDockWidget* addPanelByName(
const QString& name,
120 const QString& class_lookup_name,
121 Qt::DockWidgetArea area = Qt::LeftDockWidgetArea,
122 bool floating =
false);
128 void loadPersistentSettings();
134 void savePersistentSettings();
139 void loadDisplayConfig(
const QString& path);
145 bool loadDisplayConfigHelper(
const std::string& full_path,
const bool discard_changes =
false);
153 bool saveDisplayConfig(
const QString& path);
157 return error_message_;
166 virtual void load(
const Config& config);
175 virtual void save(
Config config);
178 void setHideButtonVisibility(
bool visible);
183 void setDisplayConfigModified();
186 void setStatus(
const QString& message)
override;
189 void setFullScreen(
bool full_screen);
192 void exitFullScreen();
196 void statusUpdate(
const QString& message);
199 void fullScreenChange(
bool hidden);
202 void displayConfigFileChanged(
const QString& fullpath);
209 void onRecentConfigSelected();
212 void openNewPanelDialog();
213 void openNewToolDialog();
214 void openPreferencesDialog();
215 void showHelpPanel();
216 void onDockPanelChange();
219 void onToolbarRemoveTool(QAction* remove_tool_menu_action);
222 void onButtonStyleTool(QAction* button_style_tool_menu_action);
226 void onToolbarActionTriggered(QAction* action);
233 void addTool(
Tool* tool);
236 void onToolNameChanged(
const QString& name);
239 void removeTool(
Tool* tool);
244 void refreshTool(
Tool* tool);
250 void indicateToolIsCurrent(
Tool* tool);
261 void onDeletePanel();
265 void markLoadingDone();
268 void setImageSaveDirectory(
const QString& directory);
272 void onPanelDeleted(QObject* dock);
273 void onHelpDestroyed();
275 void hideLeftDock(
bool hide);
276 void hideRightDock(
bool hide);
278 virtual void onDockPanelVisibilityChange(
bool visible);
296 bool prepareToExit();
298 void closeEvent(QCloseEvent* event)
override;
300 void leaveEvent(QEvent* event)
override;
302 void markRecentConfig(
const std::string& path);
303 void updateRecentConfigMenu();
306 void loadPanels(
const Config& config);
309 void configureToolbars(
const Config& config);
312 void saveToolbars(
Config config);
315 void savePanels(
Config config);
317 void loadPreferences(
const Config& config);
318 void savePreferences(
Config config);
320 void loadWindowGeometry(
const Config& config);
321 void saveWindowGeometry(
Config config);
327 void setDisplayConfigFile(
const std::string& path);
329 void hideDockImpl(Qt::DockWidgetArea area,
bool hide);
408 #endif // RVIZ_VISUALIZATION_FRAME_H
VisualizationManager * manager_
QActionGroup * toolbar_actions_
The VisualizationManager class is the central manager class of rviz, holding all the Displays,...
std::string package_path_
QList< PanelRecord > custom_panels_
WidgetGeometryChangeDetector * geom_change_detector_
QMenu * delete_view_menu_
bool show_choose_new_master_option_
ros::WallTime last_fps_calc_time_
QMenu * remove_tool_menu_
QToolButton * hide_left_dock_button_
std::map< Tool *, QAction * > tool_to_action_map_
bool loading_
True just when loading a display config file, false all other times.
std::string last_config_dir_
std::deque< std::string > D_string
VisualizationManager * getManager()
QString error_message_
Error message (if any) from most recent saveDisplayConfig() call.
QAction * show_help_action_
std::string default_display_config_file_
QToolButton * hide_right_dock_button_
std::string persistent_settings_file_
QStatusBar * original_status_bar_
QMenu * recent_configs_menu_
PanelFactory * panel_factory_
RenderPanel * render_panel_
std::map< QAction *, Tool * > action_to_tool_map_
QTimer * post_load_timer_
ROSCONSOLE_DECL void initialize()
boost::shared_ptr< Preferences > preferences_
QAction * toolbar_separator_
std::string display_config_file_
QString getErrorMessage() const
std::string last_image_dir_
Configuration data storage class.
bool toolbar_visible_
Indicates if the toolbar should be visible outside of fullscreen mode.
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Dec 13 2024 03:31:03