#include <render_panel.h>
Public Member Functions | |
Ogre::Camera * | getCamera () |
VisualizationManager * | getManager () |
ViewController * | getViewController () |
void | initialize (Ogre::SceneManager *scene_manager, VisualizationManager *manager) |
RenderPanel (QWidget *parent=0) | |
void | setViewController (ViewController *controller) |
void | showContextMenu (boost::shared_ptr< QMenu > menu) |
virtual | ~RenderPanel () |
Protected Member Functions | |
void | contextMenuEvent (QContextMenuEvent *event) |
virtual void | keyPressEvent (QKeyEvent *event) |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) |
virtual void | mouseMoveEvent (QMouseEvent *event) |
virtual void | mousePressEvent (QMouseEvent *event) |
virtual void | mouseReleaseEvent (QMouseEvent *event) |
void | onRenderWindowMouseEvents (QMouseEvent *event) |
Called when any mouse event happens inside the render window. | |
virtual void | wheelEvent (QWheelEvent *event) |
Called when there is a mouse-wheel event. | |
Protected Attributes | |
Ogre::Camera * | camera_ |
boost::shared_ptr< QMenu > | context_menu_ |
boost::mutex | context_menu_mutex_ |
Display * | display_ |
VisualizationManager * | manager_ |
int | mouse_x_ |
X position of the last mouse event. | |
int | mouse_y_ |
Y position of the last mouse event. | |
Ogre::SceneManager * | scene_manager_ |
ViewController * | view_controller_ |
Private Slots | |
void | sendMouseMoveEvent () |
Private Attributes | |
QTimer * | fake_mouse_move_event_timer_ |
A widget which shows an OGRE-rendered scene in RViz.
RenderPanel displays a scene and forwards mouse and key events to the VisualizationManager (which further forwards them to the active Tool, etc.)
Definition at line 72 of file render_panel.h.
rviz::RenderPanel::RenderPanel | ( | QWidget * | parent = 0 | ) |
Constructor. Ogre::Root::createRenderWindow() is called within.
Definition at line 47 of file render_panel.cpp.
rviz::RenderPanel::~RenderPanel | ( | ) | [virtual] |
Definition at line 60 of file render_panel.cpp.
void rviz::RenderPanel::contextMenuEvent | ( | QContextMenuEvent * | event | ) | [protected] |
Definition at line 179 of file render_panel.cpp.
Ogre::Camera* rviz::RenderPanel::getCamera | ( | ) | [inline] |
Definition at line 85 of file render_panel.h.
VisualizationManager* rviz::RenderPanel::getManager | ( | ) | [inline] |
Definition at line 83 of file render_panel.h.
ViewController* rviz::RenderPanel::getViewController | ( | ) | [inline] |
Definition at line 86 of file render_panel.h.
void rviz::RenderPanel::initialize | ( | Ogre::SceneManager * | scene_manager, |
VisualizationManager * | manager | ||
) |
This sets up the Ogre::Camera for this widget.
Definition at line 67 of file render_panel.cpp.
void rviz::RenderPanel::keyPressEvent | ( | QKeyEvent * | event | ) | [protected, virtual] |
Definition at line 150 of file render_panel.cpp.
virtual void rviz::RenderPanel::mouseDoubleClickEvent | ( | QMouseEvent * | event | ) | [inline, protected, virtual] |
Definition at line 105 of file render_panel.h.
virtual void rviz::RenderPanel::mouseMoveEvent | ( | QMouseEvent * | event | ) | [inline, protected, virtual] |
Definition at line 102 of file render_panel.h.
virtual void rviz::RenderPanel::mousePressEvent | ( | QMouseEvent * | event | ) | [inline, protected, virtual] |
Definition at line 103 of file render_panel.h.
virtual void rviz::RenderPanel::mouseReleaseEvent | ( | QMouseEvent * | event | ) | [inline, protected, virtual] |
Definition at line 104 of file render_panel.h.
void rviz::RenderPanel::onRenderWindowMouseEvents | ( | QMouseEvent * | event | ) | [protected] |
Called when any mouse event happens inside the render window.
Definition at line 114 of file render_panel.cpp.
void rviz::RenderPanel::sendMouseMoveEvent | ( | ) | [private, slot] |
Definition at line 83 of file render_panel.cpp.
void rviz::RenderPanel::setViewController | ( | ViewController * | controller | ) |
Definition at line 158 of file render_panel.cpp.
void rviz::RenderPanel::showContextMenu | ( | boost::shared_ptr< QMenu > | menu | ) |
Show the given menu as a context menu, positioned based on the current mouse position. This can be called from any thread.
Definition at line 171 of file render_panel.cpp.
void rviz::RenderPanel::wheelEvent | ( | QWheelEvent * | event | ) | [protected, virtual] |
Called when there is a mouse-wheel event.
Definition at line 132 of file render_panel.cpp.
Ogre::Camera* rviz::RenderPanel::camera_ [protected] |
Reimplemented from rviz::QtOgreRenderWindow.
Definition at line 118 of file render_panel.h.
boost::shared_ptr<QMenu> rviz::RenderPanel::context_menu_ [protected] |
Definition at line 122 of file render_panel.h.
boost::mutex rviz::RenderPanel::context_menu_mutex_ [protected] |
Definition at line 123 of file render_panel.h.
Display* rviz::RenderPanel::display_ [protected] |
Definition at line 127 of file render_panel.h.
QTimer* rviz::RenderPanel::fake_mouse_move_event_timer_ [private] |
Definition at line 133 of file render_panel.h.
VisualizationManager* rviz::RenderPanel::manager_ [protected] |
Definition at line 116 of file render_panel.h.
int rviz::RenderPanel::mouse_x_ [protected] |
X position of the last mouse event.
Definition at line 113 of file render_panel.h.
int rviz::RenderPanel::mouse_y_ [protected] |
Y position of the last mouse event.
Definition at line 114 of file render_panel.h.
Ogre::SceneManager* rviz::RenderPanel::scene_manager_ [protected] |
Definition at line 117 of file render_panel.h.
ViewController* rviz::RenderPanel::view_controller_ [protected] |
Definition at line 120 of file render_panel.h.