|
| 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 |
|
|
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 |
|
A convenient base class for MITK related BlueBerry Views.
QmitkAbstractView provides several convenience methods that ease the introduction of a new view:
-
Access to the DataStorage (~ the shared data repository)
-
Access to the active IRenderWindowPart
-
Access to and update notification for the view's preferences
-
Access to and update notification for the current DataNode selection / to DataNode selection events send through the SelectionService
-
Access to and update notification for DataNode events (added/removed/modified)
-
Methods to send DataNode selections through the SelectionService
-
Some minor important convenience methods (like changing the mouse cursor/exception handling)
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:
-
void SetSelectionProvider()
-
QItemSelectionModel* GetDataNodeSelectionModel() const
You may reimplement the following private virtual methods to be notified about certain changes:
-
void OnSelectionChanged(berry::IWorkbenchPart::Pointer part, const QList<mitk::DataNode::Pointer> &nodes)
-
void OnNullSelection(berry::IWorkbenchPart::Pointer part)
-
void OnPreferencesChanged(const mitk::IPreferences*)
-
void NodeAdded(const mitk::DataNode* node)
-
void NodeChanged(const mitk::DataNode* node)
-
void NodeRemoved(const mitk::DataNode* node)
-
void DataStorageModified()
-
void DataStorageChanged(mitk::IDataStorageReference::Pointer dsRef)
- See also
- mitk::ILifecycleAwarePart
-
mitk::IZombieViewPart
-
mitk::IRenderWindowPartListener
Definition at line 89 of file QmitkAbstractView.h.