|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
27 #ifndef MEDICAL_IMAGE_VIEWER_H
28 #define MEDICAL_IMAGE_VIEWER_H
37 #include <QGridLayout>
81 void refresh(Viewer* whoIsAsking =
nullptr)
override;
104 virtual void setToolbarAutoVisibility(
bool);
115 void synchronizeSelection();
122 QGridLayout* frameLayout;
125 QVBoxLayout* northWestLayout;
126 QVBoxLayout* southWestLayout;
127 QVBoxLayout* northEastLayout;
128 QVBoxLayout* southEastLayout;
140 QMap<LayoutVisibility, Viewer*> viewers;
143 QList<LayoutVisibility> viewerVisibility;
146 unsigned int displayedTopLevelComponents;
149 bool autoUpdateToolbarVisibility;
@ VIEWER_CORONAL
Only the coronal InteractiveViewer are visible.
Definition: MedicalImageViewer.h:91
void setDescription(QString)
set the viewer's description
Definition: Viewer.cpp:104
Interactive single slice viewer.
Definition: InteractiveSliceViewer.h:63
LayoutVisibility
Definition: MedicalImageViewer.h:87
QWidget * getWidget() override
get the viewer widget.
Definition: MedicalImageViewer.cpp:103
void setToolBarVisibility(bool)
set the visibility of the toolbar in the main window (true by default).
Definition: Viewer.cpp:130
@ VIEWER_3D
Only the 3D InteractiveViewer are visible.
Definition: MedicalImageViewer.h:89
All-in-one medical image viewer.
Definition: MedicalImageViewer.h:59
Interactive 3D viewer.
Definition: InteractiveGeometryViewer.h:56
@ VIEWER_AXIAL
Only the axial InteractiveViewer are visible.
Definition: MedicalImageViewer.h:90
QFrame * frame
the main widget
Definition: MedicalImageViewer.h:154
@ VIEWER_ALL
All InteractiveViewer are visible.
Definition: MedicalImageViewer.h:88
LayoutVisibility visibleLayout
which viewer(s) is/are currently visible
Definition: MedicalImageViewer.h:160
#define MEDICALIMAGEVIEWER_API
Definition: MedicalImageViewerAPI.h:54
unsigned int displayedTopLevelComponents
number of top-level component that are currently displayed
Definition: MedicalImageViewer.h:169
@ VIEWER_ARBITRARY
Only the arbitrary InteractiveViewer are visible.
Definition: MedicalImageViewer.h:93
QVBoxLayout * southWestLayout
Definition: MedicalImageViewer.h:149
bool autoUpdateToolbarVisibility
if true, the toolbar automatically updated
Definition: MedicalImageViewer.h:172
@ VIEWER_SAGITTAL
Only the sagittal InteractiveViewer are visible.
Definition: MedicalImageViewer.h:92
Q_ENUM(ViewerType) Viewer(QString name
default constructor
#define CAMITK_ERROR(MSG)
Log for error verbosity (the minimum verbosity) Will always appear.
Definition: Log.h:276
QVBoxLayout * northWestLayout
The four corners of the main layout.
Definition: MedicalImageViewer.h:148
virtual QMenu * getMenu()
get the viewer menu (returns nullptr by default, i.e. there are no default edit menu)
Definition: Viewer.h:245
void synchronizeSelection()
called when an internal InteractiveViewers has emitted a selectionChanged signal
Definition: MedicalImageViewer.cpp:288
QObject * getPropertyObject() override
get the propertyObject (only the 3D Scene one)
Definition: MedicalImageViewer.cpp:196
QToolBar * getToolBar() override
get the viewer toolbar
Definition: MedicalImageViewer.cpp:238
void selectionChanged()
this signal is emitted when the current selection was changed by the viewer
LayoutVisibility getVisibleViewer() const
get the current layout value
Definition: MedicalImageViewer.cpp:250
QMap< LayoutVisibility, Viewer * > viewers
contains all InteractiveViewer instance (access them by LayoutVisibility)
Definition: MedicalImageViewer.h:163
virtual void setToolbarAutoVisibility(bool)
force toolbar visibility.
Definition: MedicalImageViewer.cpp:302
void setVisibleViewer(LayoutVisibility)
called to change the layout, i.e. which viewer is visible
Definition: MedicalImageViewer.cpp:244
QVBoxLayout * southEastLayout
Definition: MedicalImageViewer.h:151
Viewer is an abstract class that is the base class for all viewers.
Definition: Viewer.h:180
virtual QWidget * getWidget()=0
get the viewer widget.
QMenu * getMenu() override
get the viewer menu
Definition: MedicalImageViewer.cpp:201
virtual ~MedicalImageViewer() override
destructor
Definition: MedicalImageViewer.cpp:62
virtual void refresh(Viewer *whoIsAsking=nullptr)=0
refresh the view (can be interesting to know which other viewer is calling this)
virtual QObject * getPropertyObject()
get the viewer property object (returns nullptr by default, i.e. there are no property to edit)
Definition: Viewer.h:240
QVBoxLayout * northEastLayout
Definition: MedicalImageViewer.h:150
QMenu * viewerMenu
the QMenu for the MedicalImageViewer
Definition: MedicalImageViewer.h:157
void refresh(Viewer *whoIsAsking=nullptr) override
Definition: MedicalImageViewer.cpp:73
QGridLayout * frameLayout
The main layout.
Definition: MedicalImageViewer.h:145
void updateLayout()
set the current visibility of the different viewer
Definition: MedicalImageViewer.cpp:255
Q_INVOKABLE MedicalImageViewer(QString)
Definition: MedicalImageViewer.cpp:44
virtual QToolBar * getToolBar()
get the viewer toolbar (returns nullptr by default, i.e. there are no default toolbar)
Definition: Viewer.h:250
QList< LayoutVisibility > viewerVisibility
viewer visibility enum
Definition: MedicalImageViewer.h:166
Definition: Action.cpp:35