NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | Static Public Attributes | Protected Slots | Protected Member Functions | List of all members
niftk::SingleViewerEditor Class Reference

Simple image viewer that supports cursor and magnification binding. More...

Inheritance diagram for niftk::SingleViewerEditor:
Inheritance graph
[legend]
Collaboration diagram for niftk::SingleViewerEditor:
Collaboration graph
[legend]

Public Member Functions

 berryObjectMacro (SingleViewerEditor) SingleViewerEditor()
 
 ~SingleViewerEditor ()
 
SingleViewerWidgetGetSingleViewer ()
 Get hold of the internal SingleViewerWidget. More...
 
virtual QmitkRenderWindow * GetActiveQmitkRenderWindow () const
 
virtual QHash< QString,
QmitkRenderWindow * > 
GetQmitkRenderWindows () const
 
virtual QmitkRenderWindow * GetQmitkRenderWindow (const QString &id) const
 
virtual mitk::Point3D GetSelectedPosition (const QString &id=QString()) const
 
virtual void SetSelectedPosition (const mitk::Point3D &position, const QString &id=QString())
 
virtual void EnableDecorations (bool enable, const QStringList &decorations=QStringList())
 
virtual bool IsDecorationEnabled (const QString &decoration) const
 
virtual QStringList GetDecorations () const
 
virtual mitk::IRenderingManager * GetRenderingManager () const
 
mitk::SlicesRotator * GetSlicesRotator () const
 
mitk::SlicesSwiveller * GetSlicesSwiveller () const
 
void EnableSlicingPlanes (bool enable)
 
bool IsSlicingPlanesEnabled () const
 
void EnableLinkedNavigation (bool linkedNavigationEnabled)
 
bool IsLinkedNavigationEnabled () const
 
virtual bool eventFilter (QObject *object, QEvent *event)
 Shows the control panel if the mouse pointer is moved over the pin button. More...
 
void OnFocusChanged ()
 Called when one of the viewers receives the focus. More...
 

Static Public Attributes

static const QString EDITOR_ID = "org.mitk.editors.dnddisplay"
 

Protected Slots

void OnTimeGeometryChanged (const mitk::TimeGeometry *timeGeometry)
 
void OnPopupOpened (bool opened)
 Called when the popup widget opens/closes, and used to re-render the viewers. More...
 
void OnPinButtonToggled (bool checked)
 Called when the pin button is toggled. More...
 
void OnSelectedSliceControlChanged (int selectedSlice)
 Called when the selected slice has been changed through the control panel. More...
 
void OnTimeStepControlChanged (int timeStep)
 Called when the time step has been changed through the control panel. More...
 
void OnMagnificationControlChanged (double magnification)
 Called when the magnification has been changed through the control panel. More...
 
void OnCursorVisibilityControlChanged (bool visible)
 Called when the show cursor option has been changed through the control panel. More...
 
void OnShowDirectionAnnotationsControlChanged (bool visible)
 Called when the show direction annotations option has been changed through the control panel. More...
 
void OnShowIntensityAnnotationControlChanged (bool visible)
 Called when the show intensity annotation option has been changed through the control panel. More...
 
void OnShow3DWindowControlChanged (bool visible)
 Called when the show 3D window option has been changed through the control panel. More...
 
void OnWindowLayoutControlChanged (niftk::WindowLayout windowLayout)
 Called when the window layout has been changed through the control panel. More...
 
void OnWindowCursorBindingControlChanged (bool)
 Called when the binding of cursors in the render windows of a viewer has been changed through the control panel. More...
 
void OnWindowScaleFactorBindingControlChanged (bool)
 Called when the binding of magnifications in the render windows of a viewer has been changed through the control panel. More...
 
void OnSelectedPositionChanged (const mitk::Point3D &selectedPosition)
 Called when the selected position has changed in a render window of a viewer. Each of the contained viewers will signal when its slice navigation controllers have changed. More...
 
void OnTimeStepChanged (int timeStep)
 Called when the selected time step has changed in a viewer. Each of the contained viewers will signal when its slice navigation controllers have changed. More...
 
void OnScaleFactorChanged (niftk::WindowOrientation orientation, double scaleFactor)
 Called when the scale factor of a viewer has changed by zooming in one of its render windows. More...
 
void OnWindowLayoutChanged (niftk::WindowLayout windowLayout)
 Called when the window layout of a viewer has changed. More...
 
void OnCursorVisibilityChanged (bool visible)
 Called when the show cursor option has been changed in a viewer. More...
 
void OnDirectionAnnotationsVisibilityChanged (bool visible)
 Called when the show direction annotations option has been changed in a viewer. More...
 
void OnIntensityAnnotationVisibilityChanged (bool visible)
 Called when the show intensity annotation option has been changed in a viewer. More...
 

Protected Member Functions

virtual void SetFocus ()
 Tells the contained SingleViewerWidget to SetFocus(). More...
 
virtual void OnPreferencesChanged (const berry::IBerryPreferences *)
 Called when the preferences object of this editor changed. More...
 
virtual void CreateQtPartControl (QWidget *parent)
 Creates the main Qt GUI element parts. More...
 
SingleViewerControlsCreateControlPanel (QWidget *parent)
 

Detailed Description

Simple image viewer that supports cursor and magnification binding.

As of 18th April 2012, this editor inherits from the QmitkAbstractRenderEditor, and hence conforms to the mitk::IRenderWindowPart which is the new Render Window Abstraction provided by MITK on 24.02.2012, apart from the decorations. This editor purposefully implements the methods EnableDecorations, IsDecorationEnabled, GetDecorations to do nothing (see method documentation).

Constructor & Destructor Documentation

niftk::SingleViewerEditor::~SingleViewerEditor ( )

Member Function Documentation

niftk::SingleViewerEditor::berryObjectMacro ( SingleViewerEditor  )
SingleViewerControls * niftk::SingleViewerEditor::CreateControlPanel ( QWidget *  parent)
protected
void niftk::SingleViewerEditor::CreateQtPartControl ( QWidget *  parent)
protectedvirtual

Creates the main Qt GUI element parts.

void niftk::SingleViewerEditor::EnableDecorations ( bool  enable,
const QStringList &  decorations = QStringList() 
)
virtual
See also
mitk::IRenderWindowPart::EnableDecorations(), and in this class, deliberately implemented as a no-op.
void niftk::SingleViewerEditor::EnableLinkedNavigation ( bool  linkedNavigationEnabled)
See also
mitk::ILinkedRenderWindowPart::EnableLinkedNavigation().
void niftk::SingleViewerEditor::EnableSlicingPlanes ( bool  enable)
See also
mitk::ILinkedRenderWindowPart::EnableSlicingPlanes().
bool niftk::SingleViewerEditor::eventFilter ( QObject *  object,
QEvent *  event 
)
virtual

Shows the control panel if the mouse pointer is moved over the pin button.

QmitkRenderWindow * niftk::SingleViewerEditor::GetActiveQmitkRenderWindow ( ) const
virtual
See also
mitk::IRenderWindowPart::GetActiveRenderWindow()
QStringList niftk::SingleViewerEditor::GetDecorations ( ) const
virtual
See also
mitk::IRenderWindowPart::GetDecorations(), and in this class, always returns empty list.
QmitkRenderWindow * niftk::SingleViewerEditor::GetQmitkRenderWindow ( const QString &  id) const
virtual
See also
mitk::IRenderWindowPart::GetRenderWindow(QString)
QHash< QString, QmitkRenderWindow * > niftk::SingleViewerEditor::GetQmitkRenderWindows ( ) const
virtual
See also
mitk::IRenderWindowPart::GetRenderWindows()
mitk::IRenderingManager * niftk::SingleViewerEditor::GetRenderingManager ( ) const
virtual

Get the RenderingManager used by this editor. This default implementation uses the global MITK RenderingManager provided by mitk::RenderingManager::GetInstance().

See also
mitk::IRenderWindowPart::GetRenderingManager
mitk::Point3D niftk::SingleViewerEditor::GetSelectedPosition ( const QString &  id = QString()) const
virtual
See also
mitk::IRenderWindowPart::GetSelectionPosition()
SingleViewerWidget * niftk::SingleViewerEditor::GetSingleViewer ( )

Get hold of the internal SingleViewerWidget.

mitk::SlicesRotator * niftk::SingleViewerEditor::GetSlicesRotator ( ) const
See also
mitk::ILinkedRenderWindowPart::GetSlicesRotator().
mitk::SlicesSwiveller * niftk::SingleViewerEditor::GetSlicesSwiveller ( ) const
See also
mitk::ILinkedRenderWindowPart::GetSlicesSwiveller().
bool niftk::SingleViewerEditor::IsDecorationEnabled ( const QString &  decoration) const
virtual
See also
mitk::IRenderWindowPart::IsDecorationEnabled(), and in this class, only returns false.
bool niftk::SingleViewerEditor::IsLinkedNavigationEnabled ( ) const
See also
mitk::ILinkedRenderWindowPart::IsLinkedNavigationEnabled().
bool niftk::SingleViewerEditor::IsSlicingPlanesEnabled ( ) const
See also
mitk::ILinkedRenderWindowPart::IsSlicingPlanesEnabled().
void niftk::SingleViewerEditor::OnCursorVisibilityChanged ( bool  visible)
protectedslot

Called when the show cursor option has been changed in a viewer.

void niftk::SingleViewerEditor::OnCursorVisibilityControlChanged ( bool  visible)
protectedslot

Called when the show cursor option has been changed through the control panel.

void niftk::SingleViewerEditor::OnDirectionAnnotationsVisibilityChanged ( bool  visible)
protectedslot

Called when the show direction annotations option has been changed in a viewer.

void niftk::SingleViewerEditor::OnFocusChanged ( )

Called when one of the viewers receives the focus.

void niftk::SingleViewerEditor::OnIntensityAnnotationVisibilityChanged ( bool  visible)
protectedslot

Called when the show intensity annotation option has been changed in a viewer.

void niftk::SingleViewerEditor::OnMagnificationControlChanged ( double  magnification)
protectedslot

Called when the magnification has been changed through the control panel.

void niftk::SingleViewerEditor::OnPinButtonToggled ( bool  checked)
protectedslot

Called when the pin button is toggled.

void niftk::SingleViewerEditor::OnPopupOpened ( bool  opened)
protectedslot

Called when the popup widget opens/closes, and used to re-render the viewers.

void niftk::SingleViewerEditor::OnPreferencesChanged ( const berry::IBerryPreferences *  prefs)
protectedvirtual

Called when the preferences object of this editor changed.

void niftk::SingleViewerEditor::OnScaleFactorChanged ( niftk::WindowOrientation  orientation,
double  scaleFactor 
)
protectedslot

Called when the scale factor of a viewer has changed by zooming in one of its render windows.

void niftk::SingleViewerEditor::OnSelectedPositionChanged ( const mitk::Point3D &  selectedPosition)
protectedslot

Called when the selected position has changed in a render window of a viewer. Each of the contained viewers will signal when its slice navigation controllers have changed.

void niftk::SingleViewerEditor::OnSelectedSliceControlChanged ( int  selectedSlice)
protectedslot

Called when the selected slice has been changed through the control panel.

void niftk::SingleViewerEditor::OnShow3DWindowControlChanged ( bool  visible)
protectedslot

Called when the show 3D window option has been changed through the control panel.

void niftk::SingleViewerEditor::OnShowDirectionAnnotationsControlChanged ( bool  visible)
protectedslot

Called when the show direction annotations option has been changed through the control panel.

void niftk::SingleViewerEditor::OnShowIntensityAnnotationControlChanged ( bool  visible)
protectedslot

Called when the show intensity annotation option has been changed through the control panel.

void niftk::SingleViewerEditor::OnTimeGeometryChanged ( const mitk::TimeGeometry *  timeGeometry)
protectedslot
void niftk::SingleViewerEditor::OnTimeStepChanged ( int  timeStep)
protectedslot

Called when the selected time step has changed in a viewer. Each of the contained viewers will signal when its slice navigation controllers have changed.

void niftk::SingleViewerEditor::OnTimeStepControlChanged ( int  timeStep)
protectedslot

Called when the time step has been changed through the control panel.

void niftk::SingleViewerEditor::OnWindowCursorBindingControlChanged ( bool  bound)
protectedslot

Called when the binding of cursors in the render windows of a viewer has been changed through the control panel.

void niftk::SingleViewerEditor::OnWindowLayoutChanged ( niftk::WindowLayout  windowLayout)
protectedslot

Called when the window layout of a viewer has changed.

void niftk::SingleViewerEditor::OnWindowLayoutControlChanged ( niftk::WindowLayout  windowLayout)
protectedslot

Called when the window layout has been changed through the control panel.

void niftk::SingleViewerEditor::OnWindowScaleFactorBindingControlChanged ( bool  bound)
protectedslot

Called when the binding of magnifications in the render windows of a viewer has been changed through the control panel.

void niftk::SingleViewerEditor::SetFocus ( )
protectedvirtual

Tells the contained SingleViewerWidget to SetFocus().

void niftk::SingleViewerEditor::SetSelectedPosition ( const mitk::Point3D &  position,
const QString &  id = QString() 
)
virtual
See also
mitk::IRenderWindowPart::SetSelectedPosition()

Member Data Documentation

const QString niftk::SingleViewerEditor::EDITOR_ID = "org.mitk.editors.dnddisplay"
static

The documentation for this class was generated from the following files: