NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Abstract advisor class to set up an initial workbench. More...
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 () |
Abstract advisor class to set up an initial workbench.
|
protectedvirtual |
Actually creates the derived WorkbenchWindowAdvisor.
Reimplemented in niftk::NiftyMIDASWorkbenchAdvisor, niftk::NiftyIGIAppWorkbenchAdvisor, and niftk::NiftyViewAppWorkbenchAdvisor.
|
overridevirtual |
Called by framework to create the WorkbenchWindowAdvisor, and derived classes should instead override CreateBaseWorkbenchWindowAdvisor.
|
protected |
|
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.
|
overridevirtual |
|
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.
|
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.