1 #ifndef VOLUMERENDERWINDOW_H
2 #define VOLUMERENDERWINDOW_H
57 void wheelEvent(QWheelEvent* ev)
override;
77 QPoint m_lastMousePos;
80 #endif // VOLUMERENDERWINDOW_H
void rendererWantsDraw()
Slot for the renderer to notify the VolumeRenderWindow of changes.
Definition: volumerenderwindow.cpp:94
VolumeRenderWindow(VolumeRenderer *renderer, QWindow *parent=nullptr)
Constructs a new VolumeRenderWindow.
Definition: volumerenderwindow.cpp:4
void mouseMoveEvent(QMouseEvent *ev) override
Changes the renderer rotation parameters.
Definition: volumerenderwindow.cpp:63
A state-based OpenGL renderer for simple volume rendering.
Definition: volumerenderer.h:17
void render() override
Calls VolumeRenderer::drawCurrent.
Definition: volumerenderwindow.cpp:40
This includes the public VolumeRenderer class.
bool initialize() override
Calls VolumeRenderer::initialize and checks for errors.
Definition: volumerenderwindow.cpp:23
A GLWindow that uses the VolumeRenderer for drawing, and provides some interaction with it...
Definition: volumerenderwindow.h:16
void resizeEvent(QResizeEvent *ev) override
Notifies the renderer that the size has changed.
Definition: volumerenderwindow.cpp:45
void rendererUpdated()
Slot for the renderer to notify the VolumeRenderWindow of changes.
Definition: volumerenderwindow.cpp:87
Contains the GLWindow class.
void mousePressEvent(QMouseEvent *ev) override
Needed for mouse tracking.
Definition: volumerenderwindow.cpp:82
VolumeRenderer * getRenderer() const
Returns the VolumeRenderer used.
Definition: volumerenderwindow.h:42
A QWindow derivative capable of OpenGL drawing.
Definition: glwindow.h:23