Public Member Functions | Protected Member Functions | Protected Attributes
rviz::QtOgreRenderWindow Class Reference

#include <qt_ogre_render_window.h>

Inheritance diagram for rviz::QtOgreRenderWindow:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Ogre::Viewport * getViewport () const
 QtOgreRenderWindow (QWidget *parent=0)
void setAutoRender (bool auto_render)
void setBackgroundColor (Ogre::ColourValue color)
void setCamera (Ogre::Camera *camera)
void setOrthoScale (float scale)
 Set the scale of the orthographic window. Only valid for an orthographic camera.
void setOverlaysEnabled (bool overlays_enabled)
virtual void setPostRenderCallback (boost::function< void()> func)
virtual void setPreRenderCallback (boost::function< void()> func)
virtual QSize sizeHint () const

Protected Member Functions

virtual void paintEvent (QPaintEvent *e)
virtual void resizeEvent (QResizeEvent *event)
void setCameraAspectRatio ()

Protected Attributes

bool auto_render_
Ogre::ColourValue background_color_
Ogre::Camera * camera_
Ogre::Root * ogre_root_
float ortho_scale_
bool overlays_enabled_
boost::function< void()> post_render_callback_
 Functor which is called after each render.
boost::function< void()> pre_render_callback_
 Functor which is called before each render.
Ogre::Viewport * viewport_

Detailed Description

Qt Ogre render window widget. Similar in API to wxOgreRenderWindow from ogre_tools release 1.6, but with much of the guts replaced by new RenderSystem and RenderWidget classes inspired by the initialization sequence of Gazebo's renderer.

Definition at line 26 of file qt_ogre_render_window.h.


Constructor & Destructor Documentation

Constructor.

Parameters:
parentThe parent wxWindow component.

Definition at line 22 of file qt_ogre_render_window.cpp.


Member Function Documentation

Ogre::Viewport * rviz::QtOgreRenderWindow::getViewport ( ) const

Gets the associated Ogre viewport. If this is called before QWidget::show() on this widget, it will fail an assertion. Several functions of Ogre::Viewport are duplicated in this class which can be called before QWidget::show(), and their effects are propagated to the viewport when it is created.

Definition at line 43 of file qt_ogre_render_window.cpp.

void rviz::QtOgreRenderWindow::paintEvent ( QPaintEvent *  e) [protected, virtual]

Reimplemented from rviz::RenderWidget.

Definition at line 116 of file qt_ogre_render_window.cpp.

void rviz::QtOgreRenderWindow::resizeEvent ( QResizeEvent *  event) [protected, virtual]

Reimplemented from rviz::RenderWidget.

Definition at line 144 of file qt_ogre_render_window.cpp.

void rviz::QtOgreRenderWindow::setAutoRender ( bool  auto_render) [inline]

Definition at line 68 of file qt_ogre_render_window.h.

void rviz::QtOgreRenderWindow::setBackgroundColor ( Ogre::ColourValue  color)

Definition at line 71 of file qt_ogre_render_window.cpp.

void rviz::QtOgreRenderWindow::setCamera ( Ogre::Camera *  camera)

Set the camera associated with this render window's viewport.

Definition at line 49 of file qt_ogre_render_window.cpp.

Sets the aspect ratio on the camera

Definition at line 80 of file qt_ogre_render_window.cpp.

Set the scale of the orthographic window. Only valid for an orthographic camera.

Parameters:
scaleThe scale

Definition at line 98 of file qt_ogre_render_window.cpp.

Definition at line 62 of file qt_ogre_render_window.cpp.

void rviz::QtOgreRenderWindow::setPostRenderCallback ( boost::function< void()>  func) [virtual]

Set a callback which is called after each render

Parameters:
funcThe callback functor

Definition at line 110 of file qt_ogre_render_window.cpp.

void rviz::QtOgreRenderWindow::setPreRenderCallback ( boost::function< void()>  func) [virtual]

Set a callback which is called before each render

Parameters:
funcThe callback functor

Definition at line 105 of file qt_ogre_render_window.cpp.

virtual QSize rviz::QtOgreRenderWindow::sizeHint ( ) const [inline, virtual]

Overrides the default implementation. This override is here for convenience. Returns a symbolic 320x240px size.

Returns:
A size of 320x240 (just a symbolic 4:3 size).

Definition at line 48 of file qt_ogre_render_window.h.


Member Data Documentation

Definition at line 92 of file qt_ogre_render_window.h.

Ogre::ColourValue rviz::QtOgreRenderWindow::background_color_ [protected]

Definition at line 96 of file qt_ogre_render_window.h.

Ogre::Camera* rviz::QtOgreRenderWindow::camera_ [protected]

Reimplemented in rviz::RenderPanel, and ImageView.

Definition at line 94 of file qt_ogre_render_window.h.

Ogre::Root* rviz::QtOgreRenderWindow::ogre_root_ [protected]

Definition at line 86 of file qt_ogre_render_window.h.

Definition at line 91 of file qt_ogre_render_window.h.

Definition at line 95 of file qt_ogre_render_window.h.

boost::function<void ()> rviz::QtOgreRenderWindow::post_render_callback_ [protected]

Functor which is called after each render.

Definition at line 89 of file qt_ogre_render_window.h.

boost::function<void ()> rviz::QtOgreRenderWindow::pre_render_callback_ [protected]

Functor which is called before each render.

Definition at line 88 of file qt_ogre_render_window.h.

Ogre::Viewport* rviz::QtOgreRenderWindow::viewport_ [protected]

Definition at line 84 of file qt_ogre_render_window.h.


The documentation for this class was generated from the following files:


rviz
Author(s): Dave Hershberger, Josh Faust
autogenerated on Mon Jan 6 2014 11:54:33