#include <qt_ogre_render_window.h>
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 55 of file qt_ogre_render_window.h.
rviz::QtOgreRenderWindow::QtOgreRenderWindow |
( |
QWidget * |
parent = 0 | ) |
|
rviz::QtOgreRenderWindow::~QtOgreRenderWindow |
( |
| ) |
|
|
virtual |
bool rviz::QtOgreRenderWindow::enableStereo |
( |
bool |
enable | ) |
|
Enable or disable stereo rendering If stereo is not supported this is ignored.
- Returns
- the old setting (whether stereo was enabled before)
Definition at line 87 of file qt_ogre_render_window.cpp.
Ogre::Camera* rviz::QtOgreRenderWindow::getCamera |
( |
| ) |
const |
|
inline |
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 216 of file qt_ogre_render_window.cpp.
void rviz::QtOgreRenderWindow::paintEvent |
( |
QPaintEvent * |
e | ) |
|
|
protectedvirtual |
void rviz::QtOgreRenderWindow::postViewportUpdate |
( |
const Ogre::RenderTargetViewportEvent & |
evt | ) |
|
|
protectedvirtual |
void rviz::QtOgreRenderWindow::prepareStereoViewport |
( |
Ogre::Viewport * |
| ) |
|
|
protected |
prepare a viewport's camera for stereo rendering. This should only be called from StereoRenderTargetListener
void rviz::QtOgreRenderWindow::preViewportUpdate |
( |
const Ogre::RenderTargetViewportEvent & |
evt | ) |
|
|
protectedvirtual |
void rviz::QtOgreRenderWindow::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
protectedvirtual |
void rviz::QtOgreRenderWindow::setAutoRender |
( |
bool |
auto_render | ) |
|
|
inline |
void rviz::QtOgreRenderWindow::setBackgroundColor |
( |
Ogre::ColourValue |
color | ) |
|
void rviz::QtOgreRenderWindow::setCamera |
( |
Ogre::Camera * |
camera | ) |
|
void rviz::QtOgreRenderWindow::setCameraAspectRatio |
( |
| ) |
|
|
protected |
void rviz::QtOgreRenderWindow::setOrthoScale |
( |
float |
scale | ) |
|
Set the scale of the orthographic window. Only valid for an orthographic camera.
- Parameters
-
Definition at line 284 of file qt_ogre_render_window.cpp.
void rviz::QtOgreRenderWindow::setOverlaysEnabled |
( |
bool |
overlays_enabled | ) |
|
void rviz::QtOgreRenderWindow::setPostRenderCallback |
( |
boost::function< void()> |
func | ) |
|
|
virtual |
void rviz::QtOgreRenderWindow::setPreRenderCallback |
( |
boost::function< void()> |
func | ) |
|
|
virtual |
void rviz::QtOgreRenderWindow::setupStereo |
( |
| ) |
|
virtual QSize rviz::QtOgreRenderWindow::sizeHint |
( |
| ) |
const |
|
inlinevirtual |
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 80 of file qt_ogre_render_window.h.
bool rviz::QtOgreRenderWindow::auto_render_ |
|
protected |
Ogre::ColourValue rviz::QtOgreRenderWindow::background_color_ |
|
protected |
Ogre::Camera* rviz::QtOgreRenderWindow::camera_ |
|
protected |
Ogre::Camera* rviz::QtOgreRenderWindow::left_camera_ |
|
protected |
Ogre::Root* rviz::QtOgreRenderWindow::ogre_root_ |
|
protected |
float rviz::QtOgreRenderWindow::ortho_scale_ |
|
protected |
bool rviz::QtOgreRenderWindow::overlays_enabled_ |
|
protected |
boost::function<void ()> rviz::QtOgreRenderWindow::post_render_callback_ |
|
protected |
boost::function<void ()> rviz::QtOgreRenderWindow::pre_render_callback_ |
|
protected |
bool rviz::QtOgreRenderWindow::rendering_stereo_ |
|
protected |
Ogre::Camera* rviz::QtOgreRenderWindow::right_camera_ |
|
protected |
Ogre::Viewport* rviz::QtOgreRenderWindow::right_viewport_ |
|
protected |
bool rviz::QtOgreRenderWindow::stereo_enabled_ |
|
protected |
Ogre::Viewport* rviz::QtOgreRenderWindow::viewport_ |
|
protected |
The documentation for this class was generated from the following files: