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

Abstract advisor class to set up an initial workbench. More...

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

Public Member Functions

virtual void Initialize (berry::IWorkbenchConfigurer::Pointer configurer) override
 
virtual
berry::WorkbenchWindowAdvisor * 
CreateWorkbenchWindowAdvisor (berry::IWorkbenchWindowConfigurer::Pointer configurer) override
 Called by framework to create the WorkbenchWindowAdvisor, and derived classes should instead override CreateBaseWorkbenchWindowAdvisor. More...
 
virtual void PostStartup () override
 
virtual bool PreShutdown () override
 

Protected Member Functions

virtual QString GetWindowIconResourcePath () const =0
 Derived classes should provide a window Icon resource path corresponding to a valid icon file, described using a Qt resource location. More...
 
virtual
BaseWorkbenchWindowAdvisor
CreateBaseWorkbenchWindowAdvisor (berry::IWorkbenchWindowConfigurer::Pointer configurer)
 Actually creates the derived WorkbenchWindowAdvisor. More...
 
mitk::DataStorage * GetDataStorage ()
 

Detailed Description

Abstract advisor class to set up an initial workbench.

Member Function Documentation

BaseWorkbenchWindowAdvisor * niftk::BaseWorkbenchAdvisor::CreateBaseWorkbenchWindowAdvisor ( berry::IWorkbenchWindowConfigurer::Pointer  configurer)
protectedvirtual

Actually creates the derived WorkbenchWindowAdvisor.

Reimplemented in niftk::NiftyMIDASWorkbenchAdvisor, niftk::NiftyIGIAppWorkbenchAdvisor, and niftk::NiftyViewAppWorkbenchAdvisor.

berry::WorkbenchWindowAdvisor * niftk::BaseWorkbenchAdvisor::CreateWorkbenchWindowAdvisor ( berry::IWorkbenchWindowConfigurer::Pointer  configurer)
overridevirtual

Called by framework to create the WorkbenchWindowAdvisor, and derived classes should instead override CreateBaseWorkbenchWindowAdvisor.

mitk::DataStorage * niftk::BaseWorkbenchAdvisor::GetDataStorage ( )
protected
virtual QString niftk::BaseWorkbenchAdvisor::GetWindowIconResourcePath ( ) const
protectedpure virtual

Derived classes should provide a window Icon resource path corresponding to a valid icon file, described using a Qt resource location.

Implemented in niftk::NiftyMIDASWorkbenchAdvisor, niftk::NiftyIGIAppWorkbenchAdvisor, and niftk::NiftyViewAppWorkbenchAdvisor.

void niftk::BaseWorkbenchAdvisor::Initialize ( berry::IWorkbenchConfigurer::Pointer  configurer)
overridevirtual
void niftk::BaseWorkbenchAdvisor::PostStartup ( )
overridevirtual

Note: The fixedLayer property is set to true for all the images opened from the command line, so that the order of the images is not overwritten by the DataManager when it opens everything from the data storage. Now that the workbench is up and the data manager plugin loaded everything, we can clear the fixedLayer property, so that the user can rearrange the layers by drag and drop in the data manager.

Reimplemented in niftk::NiftyMIDASWorkbenchAdvisor.

bool niftk::BaseWorkbenchAdvisor::PreShutdown ( )
overridevirtual

Overriden from berry::WorkbenchAdvisor so that we can pop up a dialog box asking the user whether they really want to close the application.

Returns
true if closing is ok, false otherwise.

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