ImedgineViewer Class Reference
[Views]

The interface of all viewers (examiner viewers). More...

#include <imedgine_viewer.h>

Inherits SoQtExaminerViewer.

Inherited by ImedgineImageViewer, ImedgineSliceViewer, and ImedgineSpatialViewer.

Inheritance diagram for ImedgineViewer:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ImedgineViewer (QWidget *parent, const char *name=NULL)
virtual ~ImedgineViewer ()
virtual SbBool processSoEvent (const SoEvent *const ev)

Protected Member Functions

virtual void buildPopupMenu ()
virtual void menuSelection (int menu_item_id)
void openPopupMenu (const SbVec2s position)

Static Protected Member Functions

static void menuSelectionCallback (int menu_item_id, void *userdata)

Detailed Description

The interface of all viewers (examiner viewers).

Author:
Tobias Gross (tobias.gross@imedgine.org)

Christian Koerner (christian.koerner@imedgine.org)

Alexander Lex (alexander.lex@imedgine.org)

Marc Streit (marc.streit@imedgine.org)

Martin Reininger (martin.reininger@imedgine.org)

Definition at line 39 of file imedgine_viewer.h.


Constructor & Destructor Documentation

ImedgineViewer QWidget *  parent,
const char *  name = NULL
 

Constructor

Definition at line 18 of file imedgine_viewer.cpp.

~ImedgineViewer  )  [virtual]
 

Destructor

Definition at line 27 of file imedgine_viewer.cpp.


Member Function Documentation

virtual void buildPopupMenu  )  [inline, protected, virtual]
 

Overload the popup menu build method of the examiner viewer. The method must be implemented in the special viewer subclasses because the popup menu entries depend on the view type.

Reimplemented in ImedgineSliceViewer, and ImedgineSpatialViewer.

Definition at line 71 of file imedgine_viewer.h.

virtual void menuSelection int  menu_item_id  )  [inline, protected, virtual]
 

Overload the menu selection method of the examiner viewer. The method is called by the menu selection callback method.

Parameters:
menu_item_id The ID of the selected menu item.

Reimplemented in ImedgineSliceViewer, and ImedgineSpatialViewer.

Definition at line 79 of file imedgine_viewer.h.

Referenced by ImedgineViewer::menuSelectionCallback().

void menuSelectionCallback int  menu_item_id,
void *  userdata
[static, protected]
 

Static callback method. The menu selection method of the current view is called. The callback is registered in the examiner viewer.

Parameters:
menu_item_id The ID of the selected menu item.
userdata A pointer to the calling viewer.

Definition at line 55 of file imedgine_viewer.cpp.

References ImedgineViewer::menuSelection().

Here is the call graph for this function:

void openPopupMenu const SbVec2s  position  )  [protected]
 

Open the popup menu on the position that is given as a parameter.

Parameters:
position The position where the popup menu should be opened

Definition at line 40 of file imedgine_viewer.cpp.

SbBool processSoEvent const SoEvent *const   ev  )  [virtual]
 

Overload the event handling of the examiner viewer.

Parameters:
ev A const pointer to the caught event

Reimplemented in ImedgineImageViewer, ImedgineSliceViewer, and ImedgineSpatialViewer.

Definition at line 33 of file imedgine_viewer.cpp.

Referenced by ImedgineSliceViewer::processSoEvent(), and ImedgineImageViewer::processSoEvent().


The documentation for this class was generated from the following files:
Generated on Sun Aug 13 18:20:05 2006 for iMEDgine by  doxygen 1.4.6