Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Types | Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
camitk::MedicalImageViewer Class Reference

The views manager. More...

#include <MedicalImageViewer.h>

+ Inheritance diagram for camitk::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 Slots

void synchronizeSelection ()
 called when an internal InteractiveViewers has emitted a selectionChanged signal More...
 

Public Member Functions

void setVisibleViewer (LayoutVisibility)
 called to change the layout, i.e. which viewer is visible More...
 
virtual ~MedicalImageViewer ()
 destructor More...
 
Viewer inherited
virtual unsigned int numberOfViewedComponent ()
 
virtual void refresh (Viewer *whoIsAsking=NULL)
 refresh the view (can be interesting to know which other viewer is calling this) More...
 
virtual QWidget * getWidget (QWidget *parent=NULL)
 get the viewer widget. More...
 
virtual QObject * getPropertyObject ()
 get the propertyObject (only the 3D Scene one) More...
 
virtual QMenu * getMenu ()
 get the viewer menu More...
 
virtual QToolBar * getToolBar ()
 get the viewer toolbar More...
 
virtual void setToolbarAutoVisibility (bool)
 force toolbar visibility. More...
 
- Public Member Functions inherited from camitk::Viewer
virtual void refreshInterfaceNode (Component *comp)
 Update the whole tree of the representation of the Component. More...
 
 Viewer (QString name)
 default constructor More...
 
virtual ~Viewer ()
 default destructor More...
 

Static Public Member Functions

static MedicalImageViewergetInstance ()
 get singleton instance More...
 

Protected Member Functions

 MedicalImageViewer ()
 Protected construtor (singleton) More...
 
- Protected Member Functions inherited from camitk::Viewer
void clearSelection ()
 clear the selection More...
 
void selectionChanged (ComponentList &compSet)
 The selection has changed to the given ComponentList. More...
 
void selectionChanged (Component *comp)
 the selection has changed to be just one comp More...
 

Private Member Functions

void updateLayout ()
 set the current visibility of the different viewer More...
 

Private Attributes

bool autoUpdateToolbarVisibility
 if true, the toolbar automatically updated More...
 
unsigned int displayedTopLevelComponents
 number of top-level component that are currently displayed More...
 
QFrame * frame
 the main widget More...
 
QGridLayout * frameLayout
 The main layout. More...
 
QVBoxLayout * topLeftLayout
 the layout for the arbitrary/axial at the top left position of frameLayout More...
 
QMenu * viewerMenu
 the QMenu for the MedicalImageViewer More...
 
QMap< LayoutVisibility, Viewer * > viewers
 contains all InteractiveViewer instance (access them by LayoutVisibility) More...
 
QList< LayoutVisibilityviewerVisibility
 viewer visibility enum More...
 
LayoutVisibility visibleLayout
 which viewer(s) is/are currently visible More...
 

Static Private Attributes

static MedicalImageViewersingleton
 the default instance (singleton) More...
 

Additional Inherited Members

- Signals inherited from camitk::Viewer
void selectionChanged ()
 this signal is emitted when the current selection was changed by the viewer More...
 

Detailed Description

The views manager.

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 InteractiveViewers singletons.

This class follow the "singleton" design pattern, see getInstance(). Singleton is enforced/recommanded so that actions can directly use the show*Viewer() methods

medicalimageviewer.png
The medical image viewer

Constructor & Destructor Documentation

virtual camitk::MedicalImageViewer::~MedicalImageViewer ( )
virtual

destructor

camitk::MedicalImageViewer::MedicalImageViewer ( )
protected

Protected construtor (singleton)

Member Function Documentation

static MedicalImageViewer* camitk::MedicalImageViewer::getInstance ( )
static

get singleton instance

virtual QMenu* camitk::MedicalImageViewer::getMenu ( )
virtual

get the viewer menu

Reimplemented from camitk::Viewer.

virtual QObject* camitk::MedicalImageViewer::getPropertyObject ( )
virtual

get the propertyObject (only the 3D Scene one)

Reimplemented from camitk::Viewer.

virtual QToolBar* camitk::MedicalImageViewer::getToolBar ( )
virtual

get the viewer toolbar

Reimplemented from camitk::Viewer.

virtual QWidget* camitk::MedicalImageViewer::getWidget ( QWidget *  parent = NULL)
virtual

get the viewer widget.

Parameters
parentthe parent widget for the viewer widget

Implements camitk::Viewer.

virtual unsigned int camitk::MedicalImageViewer::numberOfViewedComponent ( )
virtual

returns the number of Component that are displayed by this viewer

Implements camitk::Viewer.

virtual void camitk::MedicalImageViewer::refresh ( Viewer whoIsAsking = NULL)
virtual

refresh the view (can be interesting to know which other viewer is calling this)

Implements camitk::Viewer.

virtual void camitk::MedicalImageViewer::setToolbarAutoVisibility ( bool  )
virtual

force toolbar visibility.

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 update

void camitk::MedicalImageViewer::setVisibleViewer ( LayoutVisibility  )

called to change the layout, i.e. which viewer is visible

void camitk::MedicalImageViewer::synchronizeSelection ( )
slot

called when an internal InteractiveViewers has emitted a selectionChanged signal

void camitk::MedicalImageViewer::updateLayout ( )
private

set the current visibility of the different viewer

Member Data Documentation

bool camitk::MedicalImageViewer::autoUpdateToolbarVisibility
private

if true, the toolbar automatically updated

unsigned int camitk::MedicalImageViewer::displayedTopLevelComponents
private

number of top-level component that are currently displayed

QFrame* camitk::MedicalImageViewer::frame
private

the main widget

QGridLayout* camitk::MedicalImageViewer::frameLayout
private

The main layout.

MedicalImageViewer* camitk::MedicalImageViewer::singleton
staticprivate

the default instance (singleton)

QVBoxLayout* camitk::MedicalImageViewer::topLeftLayout
private

the layout for the arbitrary/axial at the top left position of frameLayout

QMenu* camitk::MedicalImageViewer::viewerMenu
private

the QMenu for the MedicalImageViewer

QMap<LayoutVisibility,Viewer*> camitk::MedicalImageViewer::viewers
private

contains all InteractiveViewer instance (access them by LayoutVisibility)

QList<LayoutVisibility> camitk::MedicalImageViewer::viewerVisibility
private

viewer visibility enum

LayoutVisibility camitk::MedicalImageViewer::visibleLayout
private

which viewer(s) is/are currently visible


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