#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 54 of file qt_ogre_render_window.h.
◆ QtOgreRenderWindow()
rviz::QtOgreRenderWindow::QtOgreRenderWindow |
( |
QWidget * |
parent = nullptr | ) |
|
◆ ~QtOgreRenderWindow()
rviz::QtOgreRenderWindow::~QtOgreRenderWindow |
( |
| ) |
|
|
override |
◆ enableStereo()
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 91 of file qt_ogre_render_window.cpp.
◆ getCamera()
Ogre::Camera* rviz::QtOgreRenderWindow::getCamera |
( |
| ) |
const |
|
inline |
◆ getViewport()
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 214 of file qt_ogre_render_window.cpp.
◆ paintEvent()
void rviz::QtOgreRenderWindow::paintEvent |
( |
QPaintEvent * |
e | ) |
|
|
overrideprotected |
◆ postViewportUpdate()
void rviz::QtOgreRenderWindow::postViewportUpdate |
( |
const Ogre::RenderTargetViewportEvent & |
evt | ) |
|
|
overrideprotected |
◆ prepareStereoViewport()
void rviz::QtOgreRenderWindow::prepareStereoViewport |
( |
Ogre::Viewport * |
| ) |
|
|
protected |
prepare a viewport's camera for stereo rendering. This should only be called from StereoRenderTargetListener
◆ preViewportUpdate()
void rviz::QtOgreRenderWindow::preViewportUpdate |
( |
const Ogre::RenderTargetViewportEvent & |
evt | ) |
|
|
overrideprotected |
◆ resizeEvent()
void rviz::QtOgreRenderWindow::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
overrideprotected |
◆ setAutoRender()
void rviz::QtOgreRenderWindow::setAutoRender |
( |
bool |
auto_render | ) |
|
|
inline |
◆ setBackgroundColor()
void rviz::QtOgreRenderWindow::setBackgroundColor |
( |
Ogre::ColourValue |
color | ) |
|
◆ setCamera()
void rviz::QtOgreRenderWindow::setCamera |
( |
Ogre::Camera * |
camera | ) |
|
◆ setCameraAspectRatio()
void rviz::QtOgreRenderWindow::setCameraAspectRatio |
( |
| ) |
|
|
protected |
◆ setOrthoScale()
void rviz::QtOgreRenderWindow::setOrthoScale |
( |
float |
scale | ) |
|
Set the scale of the orthographic window. Only valid for an orthographic camera.
- Parameters
-
Definition at line 282 of file qt_ogre_render_window.cpp.
◆ setOverlaysEnabled()
void rviz::QtOgreRenderWindow::setOverlaysEnabled |
( |
bool |
overlays_enabled | ) |
|
◆ setPostRenderCallback()
void rviz::QtOgreRenderWindow::setPostRenderCallback |
( |
boost::function< void()> |
func | ) |
|
|
virtual |
◆ setPreRenderCallback()
void rviz::QtOgreRenderWindow::setPreRenderCallback |
( |
boost::function< void()> |
func | ) |
|
|
virtual |
◆ setupStereo()
void rviz::QtOgreRenderWindow::setupStereo |
( |
| ) |
|
◆ sizeHint()
QSize rviz::QtOgreRenderWindow::sizeHint |
( |
| ) |
const |
|
inlineoverride |
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.
◆ auto_render_
bool rviz::QtOgreRenderWindow::auto_render_ |
|
protected |
◆ background_color_
Ogre::ColourValue rviz::QtOgreRenderWindow::background_color_ |
|
protected |
◆ camera_
Ogre::Camera* rviz::QtOgreRenderWindow::camera_ |
|
protected |
◆ left_camera_
Ogre::Camera* rviz::QtOgreRenderWindow::left_camera_ |
|
protected |
◆ ogre_root_
Ogre::Root* rviz::QtOgreRenderWindow::ogre_root_ |
|
protected |
◆ ortho_scale_
float rviz::QtOgreRenderWindow::ortho_scale_ |
|
protected |
◆ overlays_enabled_
bool rviz::QtOgreRenderWindow::overlays_enabled_ |
|
protected |
◆ post_render_callback_
boost::function<void()> rviz::QtOgreRenderWindow::post_render_callback_ |
|
protected |
◆ pre_render_callback_
boost::function<void()> rviz::QtOgreRenderWindow::pre_render_callback_ |
|
protected |
◆ rendering_stereo_
bool rviz::QtOgreRenderWindow::rendering_stereo_ |
|
protected |
◆ right_camera_
Ogre::Camera* rviz::QtOgreRenderWindow::right_camera_ |
|
protected |
◆ right_viewport_
Ogre::Viewport* rviz::QtOgreRenderWindow::right_viewport_ |
|
protected |
◆ stereo_enabled_
bool rviz::QtOgreRenderWindow::stereo_enabled_ |
|
protected |
◆ viewport_
Ogre::Viewport* rviz::QtOgreRenderWindow::viewport_ |
|
protected |
The documentation for this class was generated from the following files:
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Dec 13 2024 03:31:04