Public Slots | Signals | Public Member Functions | Private Attributes

cmtk::QtScrollRenderView Class Reference
[cmtkQt Library]

Widget that renders an RGB image in a scrolled viewport. More...

#include <cmtkQtScrollRenderView.h>

Collaboration diagram for cmtk::QtScrollRenderView:
Collaboration graph
[legend]

List of all members.

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.
QtRenderImageRGBGetRenderImage ()
 Get render image object.
const QtRenderImageRGBGetRenderImage () const
 Get constant render image object.
unsigned int GetSlice () const
 Get current slice index.

Private Attributes

QScrollArea * ScrollView
 The scrolled viewport.
QtRenderImageRGBRenderImage
 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.

Detailed Description

Widget that renders an RGB image in a scrolled viewport.

Definition at line 55 of file cmtkQtScrollRenderView.h.


Member Function Documentation

QtRenderImageRGB* cmtk::QtScrollRenderView::GetRenderImage (  ) [inline]
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.


Member Data Documentation

Image index slider.

Definition at line 151 of file cmtkQtScrollRenderView.h.

Left slider label.

Definition at line 154 of file cmtkQtScrollRenderView.h.

Right slider label.

Definition at line 157 of file cmtkQtScrollRenderView.h.

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines