31 #ifndef RVIZ_VISUALIZATION_MANAGER_H_ 32 #define RVIZ_VISUALIZATION_MANAGER_H_ 55 class CallbackQueueInterface;
60 class TransformListener;
74 class PropertyTreeModel;
76 class SelectionManager;
78 class TfFrameProperty;
79 class ViewportMouseEvent;
80 class WindowManagerInterface;
82 class OgreRenderQueueClearer;
84 class VisualizationManagerPrivate;
146 Display* createDisplay(
const QString& class_lookup_name,
const QString& name,
bool enabled );
152 void addDisplay(
Display* display,
bool enabled );
157 void removeAllDisplays();
176 void save(
Config config )
const;
180 QString getFixedFrame()
const;
185 void setFixedFrame(
const QString& frame );
205 double getWallClock();
215 double getWallClockElapsed();
220 double getROSTimeElapsed();
229 void handleChar( QKeyEvent* event,
RenderPanel* panel );
299 void notifyConfigChanged();
307 void emitStatusUpdate(
const QString& message );
315 virtual void setStatus(
const QString & message );
317 virtual void setHelpPath(
const QString& help_path ) { help_path_ = help_path; }
326 void configChanged();
329 void statusUpdate(
const QString& message );
343 void onToolChanged(
Tool* );
349 void createColorMaterials();
351 void threadedQueueThreadFunc();
398 void updateFixedFrame();
399 void updateBackgroundColor();
401 void updateDefaultLightVisible();
RenderPanel * render_panel_
ros::WallTime last_update_wall_time_
ros::WallDuration wall_clock_elapsed_
virtual QString getHelpPath() const
OgreRenderQueueClearer * ogre_render_queue_clearer_
virtual ViewManager * getViewManager() const
Return a pointer to the ViewManager.
IntProperty * fps_property_
DisplayGroup * root_display_group_
ROSCONSOLE_DECL void initialize()
VisualizationManagerPrivate * private_
Ogre::Light * directional_light_
TfFrameProperty * fixed_frame_property_
Frame to transform fixed data to.
StatusList * global_status_
A single element of a property tree, with a name, value, description, and possibly children...
Ogre::SceneManager * getSceneManager() const
Returns the Ogre::SceneManager used for the main RenderPanel.
BoolProperty * default_light_enabled_property_
volatile bool shutting_down_
ViewManager * view_manager_
BitAllocator visibility_bit_allocator_
ToolManager * tool_manager_
RenderPanel * getRenderPanel() const
Return the main RenderPanel.
Property specialized to provide max/min enforcement for integers.
virtual BitAllocator * visibilityBits()
FrameManager * getFrameManager() const
Return the FrameManager instance.
Configuration data storage class.
WindowManagerInterface * getWindowManager() const
Return the window manager, if any.
QTimer * update_timer_
Update timer. Display::update is called on each display whenever this timer fires.
WindowManagerInterface * window_manager_
Pure-virtual base class for objects which give Display subclasses context in which to work...
Helper class for transforming data into Ogre's world frame (the fixed frame).
A Display object which stores other Displays as children.
ros::Time ros_time_begin_
The VisualizationManager class is the central manager class of rviz, holding all the Displays...
ros::Time last_update_ros_time_
Update stopwatch. Stores how long it's been since the last update.
Property * global_options_
uint64_t getFrameCount() const
Return the current value of the frame count.
virtual uint32_t getDefaultVisibilityBit() const
Allocation manager for bit positions within a 32-bit word.
SelectionManager * getSelectionManager() const
Return a pointer to the SelectionManager.
virtual DisplayFactory * getDisplayFactory() const
Return a factory for creating Display subclasses based on a class id string.
uint32_t render_requested_
PropertyTreeModel * getDisplayTreeModel() const
ros::WallTime wall_clock_begin_
Ogre::Root * ogre_root_
Ogre Root.
FrameManager * frame_manager_
Property specialized to provide getter for booleans.
DisplayFactory * display_factory_
ColorProperty * background_color_property_
PropertyTreeModel * display_property_tree_model_
virtual ToolManager * getToolManager() const
Return a pointer to the ToolManager.
float frame_update_timer_
Ogre::SceneManager * scene_manager_
Ogre scene manager associated with this panel.
ros::Duration ros_time_elapsed_
SelectionManager * selection_manager_
virtual DisplayGroup * getRootDisplayGroup() const
virtual void setHelpPath(const QString &help_path)
uint32_t default_visibility_bit_