NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
niftk::ThumbnailView Class Reference

Provides a thumbnail view of the currently focused QmitkRenderWindow. ....Note: This class should basically just be a wrapper that instantiates the widget QmitkThumnailRenderWindow, and does almost nothing else. Do not try and add loads more functionality here, just do the necessary plumbing. More...

Inheritance diagram for niftk::ThumbnailView:
Inheritance graph
[legend]
Collaboration diagram for niftk::ThumbnailView:
Collaboration graph
[legend]

Public Member Functions

 berryObjectMacro (ThumbnailView)
 
 ThumbnailView ()
 
virtual ~ThumbnailView ()
 
virtual std::string GetViewID () const
 Returns the view ID. More...
 
virtual void OnPreferencesChanged (const berry::IBerryPreferences *)
 Called when preferences are updated. More...
 
virtual bool IsExclusiveFunctionality () const
 This is not an exclusive functionality, as it just listens to input and updates itself, and can happily live alongside other functionalities. More...
 
mitk::BaseRenderer * GetTrackedRenderer () const
 Returns the renderer being tracked if there is one, otherwise NULL. More...
 
void SetTrackedRenderer (mitk::BaseRenderer *renderer)
 Instructs the contained thumbnail viewer widget to track the given renderer. Supposed to be called when the focus changes or a new editor becomes visible. More...
 

Static Public Attributes

static const std::string VIEW_ID = "uk.ac.ucl.cmic.thumbnail"
 Static view ID = uk.ac.ucl.cmic.thumbnailview. More...
 

Protected Member Functions

virtual void CreateQtPartControl (QWidget *parent)
 Called by framework, this method creates all the controls for this view. More...
 
virtual void SetFocus ()
 Called by framework, sets the focus on a specific widget. More...
 

Detailed Description

Provides a thumbnail view of the currently focused QmitkRenderWindow. ....

Note: This class should basically just be a wrapper that instantiates the widget QmitkThumnailRenderWindow, and does almost nothing else. Do not try and add loads more functionality here, just do the necessary plumbing.

See also
ThumbnailRenderWindow

Constructor & Destructor Documentation

niftk::ThumbnailView::ThumbnailView ( )
niftk::ThumbnailView::~ThumbnailView ( )
virtual

Member Function Documentation

niftk::ThumbnailView::berryObjectMacro ( ThumbnailView  )
void niftk::ThumbnailView::CreateQtPartControl ( QWidget *  parent)
protectedvirtual

Called by framework, this method creates all the controls for this view.

Note: We need to look for the focused window among every window of the editor. The MITK Display has not got the concept of 'selected' window and always returns the axial window as 'active'. Therefore we cannot use GetActiveQmitkRenderWindow.

mitk::BaseRenderer * niftk::ThumbnailView::GetTrackedRenderer ( ) const

Returns the renderer being tracked if there is one, otherwise NULL.

std::string niftk::ThumbnailView::GetViewID ( ) const
virtual

Returns the view ID.

virtual bool niftk::ThumbnailView::IsExclusiveFunctionality ( ) const
inlinevirtual

This is not an exclusive functionality, as it just listens to input and updates itself, and can happily live alongside other functionalities.

void niftk::ThumbnailView::OnPreferencesChanged ( const berry::IBerryPreferences *  )
virtual

Called when preferences are updated.

void niftk::ThumbnailView::SetFocus ( )
protectedvirtual

Called by framework, sets the focus on a specific widget.

void niftk::ThumbnailView::SetTrackedRenderer ( mitk::BaseRenderer *  renderer)

Instructs the contained thumbnail viewer widget to track the given renderer. Supposed to be called when the focus changes or a new editor becomes visible.

Member Data Documentation

const std::string niftk::ThumbnailView::VIEW_ID = "uk.ac.ucl.cmic.thumbnail"
static

Static view ID = uk.ac.ucl.cmic.thumbnailview.


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