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

Provides a display with with multiple image viewers on up to 5 x 5 panes of equal size in a grid layout. More...

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

Public Member Functions

 berryObjectMacro (MultiViewerEditor) MultiViewerEditor()
 
 ~MultiViewerEditor ()
 
MultiViewerWidgetGetMultiViewer ()
 Get hold of the internal niftkMultiViewerWidget. 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 enable)
 
bool IsLinkedNavigationEnabled () const
 

Static Public Attributes

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

Protected Member Functions

virtual void SetFocus ()
 Tells the contained niftkMultiViewerWidget 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...
 

Friends

class MultiViewerEditorPrivate
 

Detailed Description

Provides a display with with multiple image viewers on up to 5 x 5 panes of equal size in a grid layout.

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::MultiViewerEditor::~MultiViewerEditor ( )

Member Function Documentation

niftk::MultiViewerEditor::berryObjectMacro ( MultiViewerEditor  )
void niftk::MultiViewerEditor::CreateQtPartControl ( QWidget *  parent)
protectedvirtual

Creates the main Qt GUI element parts.

The command line arguments should be processed after the widget has been created and it becomes visible. This is crucial for the 'FitWindow' function to work correctly, since it needs to know the actual size of the window. Also, the multi window widget checks at many places if the render windows are visible and it skips calculations and updates for not visible windows. Here we are in the function that creates the widget, that means, the widget will have been created right after this function returns. So that we do not need to deal with event filters and such, we delay the call to process the command line arguments by one millisecond. This leaves time for this function to return, and the arguments will be processed as soon as possible.

void niftk::MultiViewerEditor::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::MultiViewerEditor::EnableLinkedNavigation ( bool  enable)
See also
mitk::ILinkedRenderWindowPart::EnableLinkedNavigation().
void niftk::MultiViewerEditor::EnableSlicingPlanes ( bool  enable)
See also
mitk::ILinkedRenderWindowPart::EnableSlicingPlanes().
QmitkRenderWindow * niftk::MultiViewerEditor::GetActiveQmitkRenderWindow ( ) const
virtual
See also
mitk::IRenderWindowPart::GetActiveRenderWindow()
QStringList niftk::MultiViewerEditor::GetDecorations ( ) const
virtual
See also
mitk::IRenderWindowPart::GetDecorations(), and in this class, always returns empty list.
MultiViewerWidget * niftk::MultiViewerEditor::GetMultiViewer ( )

Get hold of the internal niftkMultiViewerWidget.

QmitkRenderWindow * niftk::MultiViewerEditor::GetQmitkRenderWindow ( const QString &  id) const
virtual
See also
mitk::IRenderWindowPart::GetRenderWindow(QString)
QHash< QString, QmitkRenderWindow * > niftk::MultiViewerEditor::GetQmitkRenderWindows ( ) const
virtual
See also
mitk::IRenderWindowPart::GetRenderWindows()
mitk::IRenderingManager * niftk::MultiViewerEditor::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::MultiViewerEditor::GetSelectedPosition ( const QString &  id = QString()) const
virtual
See also
mitk::IRenderWindowPart::GetSelectionPosition()
mitk::SlicesRotator * niftk::MultiViewerEditor::GetSlicesRotator ( ) const
See also
mitk::ILinkedRenderWindowPart::GetSlicesRotator().
mitk::SlicesSwiveller * niftk::MultiViewerEditor::GetSlicesSwiveller ( ) const
See also
mitk::ILinkedRenderWindowPart::GetSlicesSwiveller().
bool niftk::MultiViewerEditor::IsDecorationEnabled ( const QString &  decoration) const
virtual
See also
mitk::IRenderWindowPart::IsDecorationEnabled(), and in this class, only returns false.
bool niftk::MultiViewerEditor::IsLinkedNavigationEnabled ( ) const
See also
mitk::ILinkedRenderWindowPart::IsLinkedNavigationEnabled().
bool niftk::MultiViewerEditor::IsSlicingPlanesEnabled ( ) const
See also
mitk::ILinkedRenderWindowPart::IsSlicingPlanesEnabled().
void niftk::MultiViewerEditor::OnPreferencesChanged ( const berry::IBerryPreferences *  prefs)
protectedvirtual

Called when the preferences object of this editor changed.

void niftk::MultiViewerEditor::SetFocus ( )
protectedvirtual

Tells the contained niftkMultiViewerWidget to SetFocus().

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

Friends And Related Function Documentation

friend class MultiViewerEditorPrivate
friend

Member Data Documentation

const QString niftk::MultiViewerEditor::EDITOR_ID = "org.mitk.editors.dndmultidisplay"
static

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