Medical Imaging Interaction Toolkit
2024.12.99-d991a09f
Medical Imaging Interaction Toolkit
|
A convenient base class for MITK related BlueBerry Views. More...
#include <QmitkAbstractView.h>
Public Member Functions | |
berryObjectMacro (QmitkAbstractView) | |
QmitkAbstractView () | |
~QmitkAbstractView () override | |
![]() | |
berryObjectMacro (QtViewPart) | |
![]() | |
berryObjectMacro (ViewPart, WorkbenchPart, IViewPart) | |
void | Init (IViewSite::Pointer site, IMemento::Pointer memento=IMemento::Pointer(nullptr)) override |
void | SaveState (IMemento::Pointer memento) override |
IViewSite::Pointer | GetViewSite () override |
![]() | |
berryObjectMacro (WorkbenchPart, QObject, IWorkbenchPart, IExecutableExtension) | |
~WorkbenchPart () override | |
void | AddPropertyListener (IPropertyChangeListener *l) override |
void | RemovePropertyListener (IPropertyChangeListener *l) override |
void | SetPartProperty (const QString &key, const QString &value) override |
QString | GetPartProperty (const QString &key) const override |
const QHash< QString, QString > & | GetPartProperties () const override |
void | SetInitializationData (const IConfigurationElement::Pointer &cfig, const QString &propertyName, const Object::Pointer &data) override |
void | SetFocus () override=0 |
IWorkbenchPartSite::Pointer | GetSite () const override |
QString | GetPartName () const override |
QString | GetContentDescription () const override |
QIcon | GetTitleImage () const override |
QString | GetTitleToolTip () const override |
![]() | |
berryObjectMacro (berry::IWorkbenchPart, Object) | |
~IWorkbenchPart () override | |
![]() | |
virtual QString | GetClassName () const |
virtual Reflection::TypeInfo | GetTypeInfo () const |
virtual QList< Reflection::TypeInfo > | GetSuperclasses () const |
virtual void | Delete () |
QDebug | Print (QDebug os, Indent Indent=0) const |
virtual QString | ToString () const |
virtual uint | HashCode () const |
virtual bool | operator< (const Object *) const |
void | Register () const |
void | UnRegister (bool del=true) const |
int | GetReferenceCount () const |
void | SetReferenceCount (int) |
void | AddDestroyListener (const MessageAbstractDelegate<> &delegate) const |
void | RemoveDestroyListener (const MessageAbstractDelegate<> &delegate) const |
virtual bool | operator== (const Object *) const |
![]() | |
virtual | ~IExecutableExtension () |
virtual void | SetInitializationData (const SmartPointer< IConfigurationElement > &config, const QString &propertyName, const Object::Pointer &data)=0 |
![]() | |
berryObjectMacro (berry::IViewPart, IWorkbenchPart) | |
~IViewPart () override | |
Protected Member Functions | |
void | FireNodeSelected (mitk::DataNode::Pointer node) |
virtual void | FireNodesSelected (const QList< mitk::DataNode::Pointer > &nodes) |
QList< mitk::DataNode::Pointer > | GetCurrentSelection () const |
bool | IsCurrentSelectionValid () const |
QList< mitk::DataNode::Pointer > | GetDataManagerSelection () const |
bool | IsDataManagerSelectionValid () const |
void | SetDataManagerSelection (const berry::ISelection::ConstPointer &selection, QItemSelectionModel::SelectionFlags flags=QItemSelectionModel::ClearAndSelect) const |
void | SynchronizeDataManagerSelection () const |
virtual mitk::IPreferences * | GetPreferences () const |
mitk::IDataStorageReference::Pointer | GetDataStorageReference () const |
mitk::DataStorage::Pointer | GetDataStorage () const |
mitk::IRenderWindowPart * | GetRenderWindowPart (mitk::WorkbenchUtil::IRenderWindowPartStrategies strategies=mitk::WorkbenchUtil::NONE) const |
void | RequestRenderWindowUpdate (mitk::RenderingManager::RequestType requestType=mitk::RenderingManager::REQUEST_UPDATE_ALL) |
void | HandleException (std::exception &e, QWidget *parent=nullptr, bool showDialog=true) const |
void | HandleException (const char *str, QWidget *parent=nullptr, bool showDialog=true) const |
void | WaitCursorOn () |
void | WaitCursorOff () |
void | BusyCursorOn () |
void | BusyCursorOff () |
void | RestoreOverrideCursor () |
![]() | |
virtual void | CreateQtPartControl (QWidget *parent)=0 |
![]() | |
ViewPart () | |
void | CheckSite (IWorkbenchPartSite::Pointer site) override |
![]() | |
WorkbenchPart () | |
IConfigurationElement::Pointer | GetConfigurationElement () const |
void | SetSite (IWorkbenchPartSite::Pointer site) |
virtual void | SetTitleImage (const QIcon &titleImage) |
virtual void | SetTitleToolTip (const QString &toolTip) |
virtual void | SetPartName (const QString &partName) |
virtual void | SetContentDescription (const QString &description) |
void | FirePropertyChanged (const QString &key, const QString &oldValue, const QString &newValue) |
void | FirePropertyChange (int propertyId) |
![]() | |
Object () | |
virtual | ~Object () |
virtual QDebug | PrintSelf (QDebug os, Indent indent) const |
virtual QDebug | PrintHeader (QDebug os, Indent indent) const |
virtual QDebug | PrintTrailer (QDebug os, Indent indent) const |
Additional Inherited Members | |
![]() | |
typedef Object | Self |
typedef berry::SmartPointer< Self > | Pointer |
typedef berry::SmartPointer< const Self > | ConstPointer |
typedef berry::WeakPointer< Self > | WeakPtr |
typedef berry::WeakPointer< const Self > | ConstWeakPtr |
![]() | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
![]() | |
QAtomicInt | m_ReferenceCount |
QMutex | m_ReferenceCountLock |
A convenient base class for MITK related BlueBerry Views.
QmitkAbstractView provides several convenience methods that ease the introduction of a new view:
Usually all MITK Views inherit from QmitkAbstractView to achieve a consistent Workbench behavior.
When inheriting from QmitkAbstractView, you must implement the following methods:
You may reimplement the following private virtual methods to customize your View's behavior:
You may reimplement the following private virtual methods to be notified about certain changes:
Definition at line 89 of file QmitkAbstractView.h.
QmitkAbstractView::QmitkAbstractView | ( | ) |
Nothing to do in the standard ctor. Initialize your GUI in CreateQtPartControl(QWidget*)
|
override |
Disconnects all standard event listeners
QmitkAbstractView::berryObjectMacro | ( | QmitkAbstractView | ) |
Creates smartpointer typedefs
|
protected |
Convenient method to restore the standard cursor
|
protected |
Convenient method to set and reset a busy cursor
|
protected |
Informs other parts of the workbench that node is selected via the blueberry selection service.
|
protectedvirtual |
Informs other parts of the workbench that the nodes are selected via the blueberry selection service.
|
protected |
|
protected |
Returns the current selection made in the datamanager bundle or an empty list if there is no selection or if it is empty.
|
protected |
Returns the currently active DataStorage.
|
protected |
Returns a reference to the currently active DataStorage.
|
protectedvirtual |
Returns the Preferences object for this View. Important: When referring to this preferences, e.g. in a PreferencePage: The ID for this preferences object is "/<VIEW-ID>", e.g. "/org.mitk.views.datamanager"
|
protected |
Returns the currently active mitk::IRenderWindowPart.
strategies | Strategies for returning a mitk::IRenderWindowPart instance if there is currently no active one. |
|
protected |
Calls HandleException ( std::exception&, QWidget*, bool ) internally
|
protected |
Outputs an error message to the console and displays a message box containing the exception description.
e | the exception which should be handled |
parent | |
showDialog | controls, whether additionally a message box should be displayed to inform the user that something went wrong |
|
protected |
Queries the state of the current selection.
nullptr
, this method returns false
and true
otherwise.
|
protected |
Queries the state of the current selection of the data manager view.
nullptr
, this method returns false
and true
otherwise.
|
protected |
Request an update of all render windows of the currently active IRenderWindowPart.
requestType | Specifies the type of render windows for which an update will be requested. |
|
protected |
Convenient method to restore the standard cursor
|
protected |
Sets the selection of the data manager view if available.
selection | The new selection for the data manager. |
flags | The Qt selection flags for controlling the way how the selection is updated. |
|
protected |
Takes the current selection and sets it on the data manager. Only matching nodes in the data manager view will be selected.
|
protected |
Convenient method to restore the standard cursor
|
protected |
Convenient method to set and reset a wait cursor ("hourglass")