All-in-one medical image viewer. More...
#include <MedicalImageViewer.h>
Inheritance diagram for MedicalImageViewer:
Collaboration diagram for MedicalImageViewer:Public Types | |
| enum | LayoutVisibility { VIEWER_ALL , VIEWER_3D , VIEWER_AXIAL , VIEWER_CORONAL , VIEWER_SAGITTAL , VIEWER_ARBITRARY } |
| describes the possible currently displayed InteractiveViewer More... | |
Public Types inherited from camitk::Viewer | |
| enum | ViewerType { EMBEDDED , DOCKED } |
| describes where this viewer should appear More... | |
Public Slots | |
| void | synchronizeSelection () |
| called when an internal InteractiveViewers has emitted a selectionChanged signal | |
Public Member Functions | |
| LayoutVisibility | getVisibleViewer () const |
| get the current layout value | |
| Q_INVOKABLE | MedicalImageViewer (QString) |
| Q_ENUM (LayoutVisibility) | |
| void | setVisibleViewer (LayoutVisibility) |
| called to change the layout, i.e. which viewer is visible | |
| virtual | ~MedicalImageViewer () override |
| destructor | |
Viewer inherited | |
| void | refresh (Viewer *whoIsAsking=nullptr) override |
| QWidget * | getWidget () override |
| get the viewer widget. | |
| camitk::PropertyObject * | getPropertyObject () override |
| get the propertyObject (only the 3D Scene one) | |
| QMenu * | getMenu () override |
| get the viewer menu | |
| QToolBar * | getToolBar () override |
| get the viewer toolbar | |
| void | setToolBarVisibility (bool) override |
| set the visibility of the toolbar in the main window (true by default). | |
Public Member Functions inherited from camitk::Viewer | |
| QStringList | getComponentClassNames () const |
| get the list of Component class manages by this viewer (default is set to "Component", i.e. | |
| QString | getDescription () const |
| get the name of the viewer | |
| virtual QDockWidget * | getDockWidget () const |
| Get the QDockWidget* where this viewer is currently docked (or nullptr if it is not docked anywhere or if the viewer is of type EMBEDDED) | |
| virtual QLayout * | getEmbedder () const |
| Get the QLayout* where this viewer is currently embedded (or nullptr if it is not embedded anywhere or if the viewer is of type DOCKED) | |
| virtual QPixmap | getIcon () const |
| get the viewer icon | |
| QString | getName () const |
| get the name of the viewer | |
| virtual bool | getToolBarVisibility () const |
| get the current value of the toolbar visibility | |
| ViewerType | getType () const |
| get the viewer layout | |
| QUuid | getUuid () const |
| get the Uuid of this viewer | |
| Q_ENUM (ViewerType) Viewer(QString name | |
| default constructor | |
| virtual void | refresh (Viewer *whoIsAsking=nullptr)=0 |
| refresh the view (can be interesting to know which other viewer is calling this) | |
| void | setDescription (QString) |
| set the viewer's description | |
| virtual bool | setDockWidget (QDockWidget *) |
| If the viewer type is DOCKED, dock the widget inside the given dock widget (do nothing if the type is EMBEDDED or if the viewer has already been docked before) Note that once set, the dock widget cannot be modified. | |
| virtual bool | setEmbedder (QLayout *) |
| If the viewer type is EMBEDDED, embed the viewer widget in the given layout (do nothing if the type is DOCKED) Note that you can call this method any time you want to move the viewer's widget to another layout (but there is only one embedder at a time) | |
| void | setType (ViewerType) |
| set the viewer layout (the type can be changed dynamically to fit the developer's purpose) | |
| bool | setUuid (QUuid id) |
| set the Uuid of this viewer | |
| virtual void | setVisible (bool) |
| set the visibility of the viewer (show or hide its widget) | |
| virtual | ~Viewer () override |
| default destructor | |
Additional Inherited Members | |
Signals inherited from camitk::Viewer | |
| void | selectionChanged () |
| this signal is emitted when the current selection was changed by the viewer | |
Public Attributes inherited from camitk::Viewer | |
| ViewerType | type = EMBEDDED) |
| this viewer's layout | |
Protected Member Functions inherited from camitk::Viewer | |
| void | clearSelection () |
| clear the selection | |
| void | selectionChanged (Component *comp) |
| the selection has changed to be just one comp | |
| void | selectionChanged (ComponentList &compSet) |
| The selection has changed to the given ComponentList. | |
| void | setComponentClassNames (QStringList) |
| set the list of component class names managed by this viewer | |
| void | setIcon (QPixmap icon) |
| set the default icon for the viewer extension | |
All-in-one medical image viewer.
MedicalImageViewer is a viewer that can display from 1 to 4 InteractiveViewer that represents the axial, coronal, sagittal and 3D view of the same medical image. The views used the default Interactive Viewers defined in the interactivesliceviewer and interactivegeometryviewer viewer extensions.
If this viewer extension is loaded, the default instance of this viewer can be accessed directly by Application::getViewer("Medical Image Viewer").
describes the possible currently displayed InteractiveViewer
| MedicalImageViewer::MedicalImageViewer | ( | QString | name | ) |
References camitk::Viewer::setDescription(), and VIEWER_3D.
Here is the call graph for this function:
|
overridevirtual |
destructor
|
overridevirtual |
get the viewer menu
Reimplemented from camitk::Viewer.
References camitk::Application::getAction(), camitk::Action::getQAction(), and VIEWER_ALL.
Here is the call graph for this function:
|
overridevirtual |
get the propertyObject (only the 3D Scene one)
Reimplemented from camitk::Viewer.
References camitk::Viewer::getPropertyObject(), and camitk::Application::getViewer().
Here is the call graph for this function:
|
overridevirtual |
get the viewer toolbar
Reimplemented from camitk::Viewer.
| MedicalImageViewer::LayoutVisibility MedicalImageViewer::getVisibleViewer | ( | ) | const |
get the current layout value
|
overridevirtual |
get the viewer widget.
the layout for the arbitrary/axial at the top left position of frameLayout
Implements camitk::Viewer.
References CAMITK_ERROR, camitk::Application::getViewer(), camitk::Viewer::selectionChanged(), camitk::Viewer::setEmbedder(), synchronizeSelection(), VIEWER_3D, VIEWER_ALL, VIEWER_ARBITRARY, VIEWER_AXIAL, VIEWER_CORONAL, and VIEWER_SAGITTAL.
Here is the call graph for this function:| MedicalImageViewer::Q_ENUM | ( | LayoutVisibility | ) |
|
override |
refresh the view (can be interesting to know which other viewer is calling this)
References camitk::Application::getTopLevelComponents(), VIEWER_3D, and VIEWER_ALL.
Here is the call graph for this function:
|
overridevirtual |
set the visibility of the toolbar in the main window (true by default).
If the visibility is set to false, the next call to setCentralViewer(..) or addDockViwer(...) will remove it
Specific behaviour for MedicalImageViewer: The toolbar is normally updated automatically on layout update (see updateLayout()) and is visible.
if all the 3D scene is visible (which is the default visualization state). Calling this method with false will avoid this automatic update.
By default the toolbar is automatically updated.
Reimplemented from camitk::Viewer.
References camitk::Viewer::setToolBarVisibility().
Here is the call graph for this function:| void MedicalImageViewer::setVisibleViewer | ( | LayoutVisibility | visibleViewer | ) |
called to change the layout, i.e. which viewer is visible
Referenced by Show3DViewer::apply(), ShowAllViewers::apply(), ShowArbitraryViewer::apply(), ShowAxialViewer::apply(), ShowCoronalViewer::apply(), and ShowSagittalViewer::apply().
Here is the caller graph for this function:
|
slot |
called when an internal InteractiveViewers has emitted a selectionChanged signal
References camitk::Viewer::selectionChanged().
Referenced by getWidget().
Here is the call graph for this function:
Here is the caller graph for this function: