Widget that renders an RGB image in a scrolled viewport. More...
#include <cmtkQtScrollRenderView.h>
Public Slots | |
void | slotConnectImage (ImageRGB *const image) |
Connect render view to an RGB image object. | |
void | slotRender () |
Update rendering. | |
void | slotSetNumberOfSlices (unsigned int nSlices) |
Set number of slices for the image slider. | |
void | slotSetSlice (unsigned int slice) |
Set to given slice. | |
Signals | |
void | indexChanged (int) |
This signals a change in the index slider's value. | |
void | signalMousePressed (Qt::MouseButton button, int x, int y) |
This signal is emitted when a mouse button is pressed on the viewer. | |
void | signalMouse3D (Qt::MouseButton button, const Vector3D &v) |
This signal is emitted when a mouse button is pressed on the viewer. | |
Public Member Functions | |
QtScrollRenderView (QWidget *parentWidget, const QString &title=QString::null) | |
Constructor. | |
virtual | ~QtScrollRenderView () |
Destructor. | |
void | ShowSlider () |
Show the optional image index slider at the bottom of the widget. | |
void | HideSlider () |
Hide the optional image index slider at the bottom of the widget. | |
void | SetSliderLabelL (const QString &left) |
Set left slider label. | |
void | SetSliderLabelR (const QString &right) |
Set right slider label. | |
QtRenderImageRGB * | GetRenderImage () |
Get render image object. | |
const QtRenderImageRGB * | GetRenderImage () const |
Get constant render image object. | |
unsigned int | GetSlice () const |
Get current slice index. | |
Private Attributes | |
QScrollArea * | ScrollView |
The scrolled viewport. | |
QtRenderImageRGB * | RenderImage |
The actual renderer, if we're rendering to an image object. | |
QSlider * | ImageIndexSlider |
Image index slider. | |
QLabel * | m_LabelL |
Left slider label. | |
QLabel * | m_LabelR |
Right slider label. | |
QGroupBox * | m_SliderGroupBox |
Slider layout. |
Widget that renders an RGB image in a scrolled viewport.
Definition at line 55 of file cmtkQtScrollRenderView.h.
QtRenderImageRGB* cmtk::QtScrollRenderView::GetRenderImage | ( | ) | [inline] |
Get render image object.
Definition at line 111 of file cmtkQtScrollRenderView.h.
Referenced by cmtk::QtTriplanarWindow::QtTriplanarWindow(), cmtk::QtTriplanarWindow::slotExportImage(), and cmtk::QtTriplanarWindow::slotSetZoom().
const QtRenderImageRGB* cmtk::QtScrollRenderView::GetRenderImage | ( | ) | const [inline] |
Get constant render image object.
Definition at line 114 of file cmtkQtScrollRenderView.h.
unsigned int cmtk::QtScrollRenderView::GetSlice | ( | ) | const [inline] |
Get current slice index.
Definition at line 141 of file cmtkQtScrollRenderView.h.
Referenced by cmtk::QtTriplanarWindow::slotSwitchToStudyInternal().
void cmtk::QtScrollRenderView::HideSlider | ( | ) | [inline] |
Hide the optional image index slider at the bottom of the widget.
Definition at line 74 of file cmtkQtScrollRenderView.h.
void cmtk::QtScrollRenderView::indexChanged | ( | int | ) | [signal] |
This signals a change in the index slider's value.
void cmtk::QtScrollRenderView::SetSliderLabelL | ( | const QString & | left ) | [inline] |
Set left slider label.
Definition at line 77 of file cmtkQtScrollRenderView.h.
Referenced by cmtk::QtTriplanarWindow::QtTriplanarWindow().
void cmtk::QtScrollRenderView::SetSliderLabelR | ( | const QString & | right ) | [inline] |
Set right slider label.
Definition at line 94 of file cmtkQtScrollRenderView.h.
Referenced by cmtk::QtTriplanarWindow::QtTriplanarWindow().
void cmtk::QtScrollRenderView::ShowSlider | ( | ) | [inline] |
Show the optional image index slider at the bottom of the widget.
Definition at line 71 of file cmtkQtScrollRenderView.h.
Referenced by cmtk::QtTriplanarWindow::QtTriplanarWindow().
void cmtk::QtScrollRenderView::signalMouse3D | ( | Qt::MouseButton | button, |
const Vector3D & | v | ||
) | [signal] |
This signal is emitted when a mouse button is pressed on the viewer.
void cmtk::QtScrollRenderView::signalMousePressed | ( | Qt::MouseButton | button, |
int | x, | ||
int | y | ||
) | [signal] |
This signal is emitted when a mouse button is pressed on the viewer.
QSlider* cmtk::QtScrollRenderView::ImageIndexSlider [private] |
Image index slider.
Definition at line 151 of file cmtkQtScrollRenderView.h.
QLabel* cmtk::QtScrollRenderView::m_LabelL [private] |
Left slider label.
Definition at line 154 of file cmtkQtScrollRenderView.h.
QLabel* cmtk::QtScrollRenderView::m_LabelR [private] |
Right slider label.
Definition at line 157 of file cmtkQtScrollRenderView.h.
QGroupBox* cmtk::QtScrollRenderView::m_SliderGroupBox [private] |
Slider layout.
Definition at line 160 of file cmtkQtScrollRenderView.h.
The actual renderer, if we're rendering to an image object.
Definition at line 148 of file cmtkQtScrollRenderView.h.
QScrollArea* cmtk::QtScrollRenderView::ScrollView [private] |
The scrolled viewport.
Definition at line 145 of file cmtkQtScrollRenderView.h.