Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
ImageView Class Reference

#include <image_view.h>

Inheritance diagram for ImageView:
Inheritance graph
[legend]

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
 
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_
 
ROSImageTexturetexture_
 
image_transport::ImageTransport texture_it_
 
boost::shared_ptr< image_transport::SubscriberFiltertexture_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
qreal pixel_ratio_
 
RenderSystemrender_system_
 
Ogre::RenderWindow * render_window_
 
QFrame * renderFrame
 

Detailed Description

Definition at line 56 of file image_view.h.

Constructor & Destructor Documentation

◆ ImageView()

ImageView::ImageView ( QWidget *  parent = nullptr)

Definition at line 58 of file image_view.cpp.

◆ ~ImageView()

ImageView::~ImageView ( )
override

Definition at line 69 of file image_view.cpp.

Member Function Documentation

◆ onTimer

void ImageView::onTimer ( )
privateslot

Definition at line 137 of file image_view.cpp.

◆ showEvent()

void ImageView::showEvent ( QShowEvent *  event)
overrideprotected

Definition at line 74 of file image_view.cpp.

◆ textureCallback()

void ImageView::textureCallback ( const sensor_msgs::Image::ConstPtr &  msg)
private

Definition at line 167 of file image_view.cpp.

Member Data Documentation

◆ camera_

Ogre::Camera* ImageView::camera_
private

Definition at line 73 of file image_view.h.

◆ nh_

ros::NodeHandle ImageView::nh_
private

Definition at line 76 of file image_view.h.

◆ scene_manager_

Ogre::SceneManager* ImageView::scene_manager_
private

Definition at line 72 of file image_view.h.

◆ texture_

ROSImageTexture* ImageView::texture_
private

Definition at line 74 of file image_view.h.

◆ texture_it_

image_transport::ImageTransport ImageView::texture_it_
private

Definition at line 78 of file image_view.h.

◆ texture_sub_

boost::shared_ptr<image_transport::SubscriberFilter> ImageView::texture_sub_
private

Definition at line 79 of file image_view.h.


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 Aug 2 2024 08:43:10