#include <image_view.h>
Public Member Functions | |
ImageView (QWidget *parent=nullptr) | |
~ImageView () override | |
Public Member Functions inherited from rviz::QtOgreRenderWindow | |
bool | enableStereo (bool enable) |
Enable or disable stereo rendering If stereo is not supported this is ignored. More... | |
Ogre::Camera * | getCamera () const |
Ogre::Viewport * | getViewport () const |
QtOgreRenderWindow (QWidget *parent=nullptr) | |
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. More... | |
void | setOverlaysEnabled (bool overlays_enabled) |
virtual void | setPostRenderCallback (boost::function< void()> func) |
virtual void | setPreRenderCallback (boost::function< void()> func) |
void | setupStereo () |
Prepare to render in stereo if enabled and supported. More... | |
QSize | sizeHint () const override |
~QtOgreRenderWindow () override | |
Public Member Functions inherited from rviz::RenderWidget | |
Ogre::RenderWindow * | getRenderWindow () |
RenderWidget (RenderSystem *render_system, QWidget *parent=nullptr) | |
~RenderWidget () override | |
Protected Member Functions | |
void | showEvent (QShowEvent *event) override |
Protected Member Functions inherited from rviz::QtOgreRenderWindow | |
void | paintEvent (QPaintEvent *e) override |
void | postViewportUpdate (const Ogre::RenderTargetViewportEvent &evt) override |
void | prepareStereoViewport (Ogre::Viewport *) |
void | preViewportUpdate (const Ogre::RenderTargetViewportEvent &evt) override |
void | resizeEvent (QResizeEvent *event) override |
void | setCameraAspectRatio () |
Protected Member Functions inherited from rviz::RenderWidget | |
void | moveEvent (QMoveEvent *e) override |
QPaintEngine * | paintEngine () const override |
void | paintEvent (QPaintEvent *e) override |
qreal | pixelRatio () const |
void | resizeEvent (QResizeEvent *e) override |
Private Slots | |
void | onTimer () |
Private Member Functions | |
void | textureCallback (const sensor_msgs::Image::ConstPtr &msg) |
Private Attributes | |
Ogre::Camera * | camera_ |
ros::NodeHandle | nh_ |
Ogre::SceneManager * | scene_manager_ |
ROSImageTexture * | texture_ |
image_transport::ImageTransport | texture_it_ |
boost::shared_ptr< image_transport::SubscriberFilter > | texture_sub_ |
Additional Inherited Members | |
Protected Attributes inherited from rviz::QtOgreRenderWindow | |
bool | auto_render_ |
Ogre::ColourValue | background_color_ |
Ogre::Camera * | camera_ |
Ogre::Camera * | left_camera_ |
Ogre::Root * | ogre_root_ |
float | ortho_scale_ |
bool | overlays_enabled_ |
boost::function< void()> | post_render_callback_ |
Functor which is called after each render. More... | |
boost::function< void()> | pre_render_callback_ |
Functor which is called before each render. More... | |
bool | rendering_stereo_ |
Ogre::Camera * | right_camera_ |
Ogre::Viewport * | right_viewport_ |
bool | stereo_enabled_ |
Ogre::Viewport * | viewport_ |
Protected Attributes inherited from rviz::RenderWidget | |
RenderSystem * | render_system_ |
Ogre::RenderWindow * | render_window_ |
QFrame * | renderFrame |
Definition at line 56 of file image_view.h.
ImageView::ImageView | ( | QWidget * | parent = nullptr | ) |
Definition at line 57 of file image_view.cpp.
|
override |
Definition at line 63 of file image_view.cpp.
|
privateslot |
Definition at line 130 of file image_view.cpp.
|
overrideprotected |
Definition at line 68 of file image_view.cpp.
|
private |
Definition at line 160 of file image_view.cpp.
|
private |
Definition at line 73 of file image_view.h.
|
private |
Definition at line 76 of file image_view.h.
|
private |
Definition at line 72 of file image_view.h.
|
private |
Definition at line 74 of file image_view.h.
|
private |
Definition at line 78 of file image_view.h.
|
private |
Definition at line 79 of file image_view.h.