Computer Assited Medical Intervention Tool Kit  version 3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Signals | Public Member Functions | Protected Member Functions | List of all members
camitk::Viewer Class Referenceabstract

Viewer is an abstract viewer. More...

#include <Viewer.h>

+ Inheritance diagram for camitk::Viewer:

Signals

void selectionChanged ()
 this signal is emitted when the current selection was changed by the viewer More...
 

Public Member Functions

virtual QMenu * getMenu ()
 get the viewer menu (returns NULL by default, i.e. there are no default edit menu) More...
 
virtual QObject * getPropertyObject ()
 get the viewer property object (returns NULL by default, i.e. there are no property to edit) More...
 
virtual QToolBar * getToolBar ()
 get the viewer toolbar (returns NULL by default, i.e. there are no default toolbar) More...
 
virtual QWidget * getWidget (QWidget *parent=NULL)=0
 get the viewer widget. More...
 
virtual unsigned int numberOfViewedComponent ()=0
 returns the number of Component that are displayed by this viewer More...
 
virtual void refresh (Viewer *whoIsAsking=NULL)=0
 refresh the view (can be interesting to know which other viewer is calling this) More...
 
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...
 

Protected Member Functions

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

Detailed Description

Viewer is an abstract viewer.

A viewer can contains other viewers, example of viewer are: Explorer, PropertyExplorer, MedicalImageViewer. A viewer can be added to MainWindow, MainWindow will include its menu in the "View" menu and its toolbar in the application toolbar.

Use QObject method getObjectName to get the viewer's name.

Constructor & Destructor Documentation

camitk::Viewer::Viewer ( QString  name)

default constructor

virtual camitk::Viewer::~Viewer ( )
virtual

default destructor

Member Function Documentation

void camitk::Viewer::clearSelection ( )
protected

clear the selection

virtual QMenu* camitk::Viewer::getMenu ( )
inlinevirtual

get the viewer menu (returns NULL by default, i.e. there are no default edit menu)

Reimplemented in camitk::InteractiveViewer, camitk::MedicalImageViewer, and camitk::Explorer.

virtual QObject* camitk::Viewer::getPropertyObject ( )
inlinevirtual

get the viewer property object (returns NULL by default, i.e. there are no property to edit)

Reimplemented in camitk::InteractiveViewer, camitk::PropertyExplorer, and camitk::MedicalImageViewer.

virtual QToolBar* camitk::Viewer::getToolBar ( )
inlinevirtual

get the viewer toolbar (returns NULL by default, i.e. there are no default toolbar)

Reimplemented in camitk::InteractiveViewer, and camitk::MedicalImageViewer.

virtual QWidget* camitk::Viewer::getWidget ( QWidget *  parent = NULL)
pure virtual

get the viewer widget.

Parameters
parentthe parent widget for the viewer widget

Implemented in camitk::InteractiveViewer, camitk::PropertyExplorer, camitk::MedicalImageViewer, camitk::ActionViewer, and camitk::Explorer.

virtual unsigned int camitk::Viewer::numberOfViewedComponent ( )
pure virtual

returns the number of Component that are displayed by this viewer

Implemented in camitk::InteractiveViewer, camitk::PropertyExplorer, camitk::MedicalImageViewer, camitk::Explorer, and camitk::ActionViewer.

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

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

Implemented in camitk::InteractiveViewer, camitk::PropertyExplorer, camitk::MedicalImageViewer, camitk::ActionViewer, and camitk::Explorer.

virtual void camitk::Viewer::refreshInterfaceNode ( Component comp)
inlinevirtual

Update the whole tree of the representation of the Component.

Is actually usefull (and defined) in Explorer.

Reimplemented in camitk::Explorer.

void camitk::Viewer::selectionChanged ( )
signal

this signal is emitted when the current selection was changed by the viewer

void camitk::Viewer::selectionChanged ( ComponentList compSet)
protected

The selection has changed to the given ComponentList.

This method updates the Component::selection and emit the modified signal. This method should be called by the inheriting class which can select Components (e.g.: Explorer).

void camitk::Viewer::selectionChanged ( Component comp)
protected

the selection has changed to be just one comp


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