NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Simple image viewer that supports cursor and magnification binding. More...
Public Member Functions | |
berryObjectMacro (SingleViewerEditor) SingleViewerEditor() | |
~SingleViewerEditor () | |
SingleViewerWidget * | GetSingleViewer () |
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... | |
SingleViewerControls * | CreateControlPanel (QWidget *parent) |
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).
niftk::SingleViewerEditor::~SingleViewerEditor | ( | ) |
niftk::SingleViewerEditor::berryObjectMacro | ( | SingleViewerEditor | ) |
|
protected |
|
protectedvirtual |
Creates the main Qt GUI element parts.
|
virtual |
void niftk::SingleViewerEditor::EnableLinkedNavigation | ( | bool | linkedNavigationEnabled | ) |
void niftk::SingleViewerEditor::EnableSlicingPlanes | ( | bool | enable | ) |
|
virtual |
Shows the control panel if the mouse pointer is moved over the pin button.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Get the RenderingManager used by this editor. This default implementation uses the global MITK RenderingManager provided by mitk::RenderingManager::GetInstance().
|
virtual |
SingleViewerWidget * niftk::SingleViewerEditor::GetSingleViewer | ( | ) |
Get hold of the internal SingleViewerWidget.
mitk::SlicesRotator * niftk::SingleViewerEditor::GetSlicesRotator | ( | ) | const |
mitk::SlicesSwiveller * niftk::SingleViewerEditor::GetSlicesSwiveller | ( | ) | const |
|
virtual |
bool niftk::SingleViewerEditor::IsLinkedNavigationEnabled | ( | ) | const |
bool niftk::SingleViewerEditor::IsSlicingPlanesEnabled | ( | ) | const |
|
protectedslot |
Called when the show cursor option has been changed in a viewer.
|
protectedslot |
Called when the show cursor option has been changed through the control panel.
|
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.
|
protectedslot |
Called when the show intensity annotation option has been changed in a viewer.
|
protectedslot |
Called when the magnification has been changed through the control panel.
|
protectedslot |
Called when the pin button is toggled.
|
protectedslot |
Called when the popup widget opens/closes, and used to re-render the viewers.
|
protectedvirtual |
Called when the preferences object of this editor changed.
|
protectedslot |
Called when the scale factor of a viewer has changed by zooming in one of its render windows.
|
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.
Called when the selected slice has been changed through the control panel.
|
protectedslot |
Called when the show 3D window option has been changed through the control panel.
|
protectedslot |
Called when the show direction annotations option has been changed through the control panel.
|
protectedslot |
Called when the show intensity annotation option has been changed through the control panel.
|
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.
Called when the time step has been changed through the control panel.
|
protectedslot |
Called when the binding of cursors in the render windows of a viewer has been changed through the control panel.
|
protectedslot |
Called when the window layout of a viewer has changed.
|
protectedslot |
Called when the window layout has been changed through the control panel.
|
protectedslot |
Called when the binding of magnifications in the render windows of a viewer has been changed through the control panel.
|
protectedvirtual |
Tells the contained SingleViewerWidget to SetFocus().
|
virtual |
|
static |