NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Provides a display with with multiple image viewers on up to 5 x 5 panes of equal size in a grid layout. More...
Public Member Functions | |
berryObjectMacro (MultiViewerEditor) MultiViewerEditor() | |
~MultiViewerEditor () | |
MultiViewerWidget * | GetMultiViewer () |
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 |
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).
niftk::MultiViewerEditor::~MultiViewerEditor | ( | ) |
niftk::MultiViewerEditor::berryObjectMacro | ( | MultiViewerEditor | ) |
|
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.
|
virtual |
void niftk::MultiViewerEditor::EnableLinkedNavigation | ( | bool | enable | ) |
void niftk::MultiViewerEditor::EnableSlicingPlanes | ( | bool | enable | ) |
|
virtual |
|
virtual |
MultiViewerWidget * niftk::MultiViewerEditor::GetMultiViewer | ( | ) |
Get hold of the internal niftkMultiViewerWidget.
|
virtual |
|
virtual |
|
virtual |
Get the RenderingManager used by this editor. This default implementation uses the global MITK RenderingManager provided by mitk::RenderingManager::GetInstance().
|
virtual |
mitk::SlicesRotator * niftk::MultiViewerEditor::GetSlicesRotator | ( | ) | const |
mitk::SlicesSwiveller * niftk::MultiViewerEditor::GetSlicesSwiveller | ( | ) | const |
|
virtual |
bool niftk::MultiViewerEditor::IsLinkedNavigationEnabled | ( | ) | const |
bool niftk::MultiViewerEditor::IsSlicingPlanesEnabled | ( | ) | const |
|
protectedvirtual |
Called when the preferences object of this editor changed.
|
protectedvirtual |
Tells the contained niftkMultiViewerWidget to SetFocus().
|
virtual |
|
friend |
|
static |