Class RenderWindow
Defined in File render_window.hpp
Inheritance Relationships
Base Type
public QWindow
Class Documentation
-
class RenderWindow : public QWindow
QWindow on which a rviz rendering system draws.
Public Types
-
using onRenderWindowMouseEventsCallback = std::function<void(QMouseEvent *event)>
-
using onRenderWindowWheelEventsCallback = std::function<void(QWheelEvent *event)>
-
using setupSceneCallback = std::function<void(Ogre::SceneNode*)>
Public Functions
-
explicit RenderWindow(QWindow *parent = Q_NULLPTR)
-
virtual ~RenderWindow()
-
void captureScreenShot(std::string imageName)
-
virtual void initialize()
Call after adding this class to a layout.
-
virtual void render(QPainter *painter)
-
virtual void render()
-
void setOnRenderWindowMouseEventsCallback(onRenderWindowMouseEventsCallback callback)
-
void setOnRenderWindowWheelEventsCallback(onRenderWindowWheelEventsCallback callback)
-
void setupSceneAfterInit(setupSceneCallback setup_scene_callback)
-
void windowMovedOrResized()
Public Members
- friend RenderWindowOgreAdapter
Protected Functions
-
void exposeEvent(QExposeEvent *expose_event) override
-
bool event(QEvent *event) override
Protected Attributes
-
RenderWindowImpl *impl_
-
onRenderWindowMouseEventsCallback on_mouse_events_callback_
-
onRenderWindowWheelEventsCallback on_wheel_events_callback_
-
using onRenderWindowMouseEventsCallback = std::function<void(QMouseEvent *event)>