Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmitkStdMultiWidgetEditor.h>
Public Member Functions | |
berryObjectMacro (QmitkStdMultiWidgetEditor) static const QString EDITOR_ID | |
QmitkStdMultiWidgetEditor () | |
~QmitkStdMultiWidgetEditor () | |
QmitkStdMultiWidget * | GetStdMultiWidget () |
void | RequestActivateMenuWidget (bool on) |
If on=true will request the QmitkStdMultiWidget set the Menu widget to whatever was the last known enabled state, and if on=false will turn the Menu widget off. More... | |
QmitkRenderWindow * | GetActiveQmitkRenderWindow () const override |
QHash< QString, QmitkRenderWindow * > | GetQmitkRenderWindows () const override |
QmitkRenderWindow * | GetQmitkRenderWindow (const QString &id) const override |
mitk::Point3D | GetSelectedPosition (const QString &id=QString()) const override |
void | SetSelectedPosition (const mitk::Point3D &pos, const QString &id=QString()) override |
void | EnableDecorations (bool enable, const QStringList &decorations=QStringList()) override |
bool | IsDecorationEnabled (const QString &decoration) const override |
QStringList | GetDecorations () const override |
void | EnableSlicingPlanes (bool enable) override |
bool | IsSlicingPlanesEnabled () const override |
Public Member Functions inherited from QmitkAbstractRenderEditor | |
berryObjectMacro (QmitkAbstractRenderEditor, QtEditorPart, mitk::IRenderWindowPart) QmitkAbstractRenderEditor() | |
~QmitkAbstractRenderEditor () | |
Public Member Functions inherited from berry::QtEditorPart | |
berryObjectMacro (QtEditorPart, EditorPart) void CreatePartControl(QWidget *parent) override | |
Public Member Functions inherited from berry::EditorPart | |
IEditorInput::Pointer | GetEditorInput () const override |
IEditorSite::Pointer | GetEditorSite () const override |
QString | GetTitleToolTip () const override |
virtual bool | IsSaveOnCloseNeeded () const override |
Public Member Functions inherited from berry::WorkbenchPart | |
berryObjectMacro (WorkbenchPart, QObject, IWorkbenchPart, IExecutableExtension)~WorkbenchPart() | |
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 |
virtual void | CreatePartControl (QWidget *parent) override=0 |
IWorkbenchPartSite::Pointer | GetSite () const override |
QString | GetPartName () const override |
QString | GetContentDescription () const override |
QIcon | GetTitleImage () const override |
QString | GetTitleToolTip () const override |
Public Member Functions inherited from berry::IWorkbenchPart | |
berryObjectMacro (berry::IWorkbenchPart, Object) virtual ~IWorkbenchPart() | |
Public Member Functions inherited from berry::Object | |
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 |
Public Member Functions inherited from berry::IExecutableExtension | |
virtual | ~IExecutableExtension () |
virtual void | SetInitializationData (const SmartPointer< IConfigurationElement > &config, const QString &propertyName, const Object::Pointer &data)=0 |
Public Member Functions inherited from berry::IEditorPart | |
berryObjectMacro (berry::IEditorPart, IWorkbenchPart, ISaveablePart) virtual ~IEditorPart() | |
virtual void | Init (SmartPointer< IEditorSite > site, SmartPointer< IEditorInput > input)=0 |
Public Member Functions inherited from berry::ISaveablePart | |
berryObjectMacro (berry::ISaveablePart) static const int PROP_DIRTY | |
Public Member Functions inherited from mitk::IRenderWindowPart | |
virtual | ~IRenderWindowPart () |
Public Member Functions inherited from mitk::ILinkedRenderWindowPart | |
~ILinkedRenderWindowPart () | |
Protected Member Functions | |
void | FillMembersWithCurrentDecorations () |
FillMembersWithCurrentDecorations Helper method to fill internal members with current values of the std multi widget. More... | |
void | GetPreferenceDecorations (const berry::IBerryPreferences *preferences) |
GetPreferenceDecorations Getter to fill internal members with values of preferences. More... | |
void | SetFocus () override |
void | OnPreferencesChanged (const berry::IBerryPreferences *) override |
void | CreateQtPartControl (QWidget *parent) override |
mitk::Color | HexColorToMitkColor (const QString &widgetColorInHex) |
GetColorForWidget helper method to convert a saved color string to mitk::Color. More... | |
QString | MitkColorToHex (const mitk::Color &color) |
MitkColorToHex Convert an mitk::Color to hex string. More... | |
void | InitializePreferences (berry::IBerryPreferences *preferences) |
InitializePreferences Internal helper method to set default preferences. This method is used to show the current preferences in the first call of the preference page (the GUI). More... | |
Protected Member Functions inherited from QmitkAbstractRenderEditor | |
void | Init (berry::IEditorSite::Pointer site, berry::IEditorInput::Pointer input) override |
virtual mitk::IDataStorageReference::Pointer | GetDataStorageReference () const |
virtual mitk::DataStorage::Pointer | GetDataStorage () const |
virtual berry::IPreferences::Pointer | GetPreferences () const |
mitk::IRenderingManager * | GetRenderingManager () const override |
void | RequestUpdate (mitk::RenderingManager::RequestType requestType=mitk::RenderingManager::REQUEST_UPDATE_ALL) override |
void | ForceImmediateUpdate (mitk::RenderingManager::RequestType requestType=mitk::RenderingManager::REQUEST_UPDATE_ALL) override |
mitk::SliceNavigationController * | GetTimeNavigationController () const override |
void | DoSave () override |
void | DoSaveAs () override |
bool | IsDirty () const override |
bool | IsSaveAsAllowed () const override |
Protected Member Functions inherited from berry::EditorPart | |
EditorPart () | |
virtual void | SetInput (IEditorInput::Pointer input) |
virtual void | SetInputWithNotify (IEditorInput::Pointer input) |
virtual void | SetContentDescription (const QString &description) override |
virtual void | SetPartName (const QString &partName) override |
void | CheckSite (IWorkbenchPartSite::Pointer site) override |
Protected Member Functions inherited from berry::WorkbenchPart | |
WorkbenchPart () | |
IConfigurationElement::Pointer | GetConfigurationElement () const |
void | SetSite (IWorkbenchPartSite::Pointer site) |
virtual void | SetTitleImage (const QIcon &titleImage) |
virtual void | SetTitleToolTip (const QString &toolTip) |
void | FirePropertyChanged (const QString &key, const QString &oldValue, const QString &newValue) |
void | FirePropertyChange (int propertyId) |
Protected Member Functions inherited from berry::Object | |
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 | |
Public Types inherited from berry::Object | |
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 Public Member Functions inherited from berry::Object | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
Static Public Attributes inherited from mitk::IRenderWindowPart | |
static const QString | DECORATION_BORDER |
static const QString | DECORATION_LOGO |
static const QString | DECORATION_MENU |
static const QString | DECORATION_BACKGROUND |
static const QString | DECORATION_CORNER_ANNOTATION |
Protected Attributes inherited from berry::Object | |
QAtomicInt | m_ReferenceCount |
QMutex | m_ReferenceCountLock |
Definition at line 33 of file QmitkStdMultiWidgetEditor.h.
QmitkStdMultiWidgetEditor::QmitkStdMultiWidgetEditor | ( | ) |
Definition at line 145 of file QmitkStdMultiWidgetEditor.cpp.
QmitkStdMultiWidgetEditor::~QmitkStdMultiWidgetEditor | ( | ) |
Definition at line 150 of file QmitkStdMultiWidgetEditor.cpp.
References berry::WorkbenchPart::GetSite().
QmitkStdMultiWidgetEditor::berryObjectMacro | ( | QmitkStdMultiWidgetEditor | ) | const |
|
overrideprotectedvirtual |
Implements berry::QtEditorPart.
Definition at line 270 of file QmitkStdMultiWidgetEditor.cpp.
References QmitkAbstractRenderEditor::GetDataStorage(), mitk::RenderingManager::GetInstance(), berry::SmartPointer< TObjectType >::GetPointer(), QmitkAbstractRenderEditor::GetPreferences(), berry::WorkbenchPart::GetSite(), InitializePreferences(), mitk::RenderingManager::InitializeViews(), OnPreferencesChanged(), QmitkAbstractRenderEditor::RequestUpdate(), and mitk::BaseRenderer::Standard3D.
|
overridevirtual |
Implements mitk::IRenderWindowPart.
Definition at line 189 of file QmitkStdMultiWidgetEditor.cpp.
References mitk::IRenderWindowPart::DECORATION_BACKGROUND, mitk::IRenderWindowPart::DECORATION_BORDER, mitk::IRenderWindowPart::DECORATION_CORNER_ANNOTATION, mitk::IRenderWindowPart::DECORATION_LOGO, and mitk::IRenderWindowPart::DECORATION_MENU.
|
overridevirtual |
Enable or disable the slicing planes linking the QmitkRenderWindow instances.
enable | true if the slicing planes should be enabled; false otherwise. |
Implements mitk::ILinkedRenderWindowPart.
Definition at line 250 of file QmitkStdMultiWidgetEditor.cpp.
|
protected |
FillMembersWithCurrentDecorations Helper method to fill internal members with current values of the std multi widget.
Definition at line 472 of file QmitkStdMultiWidgetEditor.cpp.
References MitkColorToHex().
Referenced by InitializePreferences(), and OnPreferencesChanged().
|
overridevirtual |
Implements mitk::IRenderWindowPart.
Definition at line 160 of file QmitkStdMultiWidgetEditor.cpp.
|
overridevirtual |
Implements mitk::IRenderWindowPart.
Definition at line 243 of file QmitkStdMultiWidgetEditor.cpp.
References mitk::IRenderWindowPart::DECORATION_BACKGROUND, mitk::IRenderWindowPart::DECORATION_BORDER, mitk::IRenderWindowPart::DECORATION_CORNER_ANNOTATION, mitk::IRenderWindowPart::DECORATION_LOGO, and mitk::IRenderWindowPart::DECORATION_MENU.
|
protected |
GetPreferenceDecorations Getter to fill internal members with values of preferences.
preferences | The berry preferences. |
If a preference is set, the value will overwrite the current value. If it does not exist, the value will not change.
Definition at line 484 of file QmitkStdMultiWidgetEditor.cpp.
References berry::IPreferences::Get().
Referenced by InitializePreferences(), and OnPreferencesChanged().
|
overridevirtual |
Implements mitk::IRenderWindowPart.
Definition at line 171 of file QmitkStdMultiWidgetEditor.cpp.
|
overridevirtual |
Implements mitk::IRenderWindowPart.
Definition at line 166 of file QmitkStdMultiWidgetEditor.cpp.
|
overridevirtual |
Implements mitk::IRenderWindowPart.
Definition at line 179 of file QmitkStdMultiWidgetEditor.cpp.
QmitkStdMultiWidget * QmitkStdMultiWidgetEditor::GetStdMultiWidget | ( | ) |
Definition at line 155 of file QmitkStdMultiWidgetEditor.cpp.
|
protected |
GetColorForWidget helper method to convert a saved color string to mitk::Color.
widgetColorInHex | color in hex format (#12356) where each diget is in the form (0-F). |
Definition at line 441 of file QmitkStdMultiWidgetEditor.cpp.
References MITK_ERROR.
Referenced by OnPreferencesChanged().
|
protected |
InitializePreferences Internal helper method to set default preferences. This method is used to show the current preferences in the first call of the preference page (the GUI).
preferences | berry preferences. |
Definition at line 507 of file QmitkStdMultiWidgetEditor.cpp.
References FillMembersWithCurrentDecorations(), GetPreferenceDecorations(), and berry::IPreferences::Put().
Referenced by CreateQtPartControl().
|
overridevirtual |
Implements mitk::IRenderWindowPart.
Definition at line 217 of file QmitkStdMultiWidgetEditor.cpp.
References mitk::IRenderWindowPart::DECORATION_BACKGROUND, mitk::IRenderWindowPart::DECORATION_BORDER, mitk::IRenderWindowPart::DECORATION_CORNER_ANNOTATION, mitk::IRenderWindowPart::DECORATION_LOGO, and mitk::IRenderWindowPart::DECORATION_MENU.
|
overridevirtual |
Get the enabled status of the slicing planes.
true
if the slicing planes are enabled; false
otherwise. Implements mitk::ILinkedRenderWindowPart.
Definition at line 255 of file QmitkStdMultiWidgetEditor.cpp.
|
protected |
MitkColorToHex Convert an mitk::Color to hex string.
color | mitk format. |
Definition at line 462 of file QmitkStdMultiWidgetEditor.cpp.
Referenced by FillMembersWithCurrentDecorations().
|
overrideprotectedvirtual |
Reimplemented from QmitkAbstractRenderEditor.
Definition at line 333 of file QmitkStdMultiWidgetEditor.cpp.
References FillMembersWithCurrentDecorations(), berry::IPreferences::Get(), berry::IPreferences::GetBool(), QmitkAbstractRenderEditor::GetDataStorage(), mitk::RenderingManager::GetInstance(), berry::IPreferences::GetInt(), berry::SmartPointer< TObjectType >::GetPointer(), GetPreferenceDecorations(), HexColorToMitkColor(), mitk::RenderingManager::InitializeViewsByBoundingObjects(), berry::IPreferences::Keys(), mitk::MouseModeSwitcher::MITK, mitk::MouseModeSwitcher::PACS, berry::IPreferences::Parent(), mitk::RenderingManager::RequestUpdateAll(), and mitk::RenderingManager::SetConstrainedPanningZooming().
Referenced by CreateQtPartControl().
void QmitkStdMultiWidgetEditor::RequestActivateMenuWidget | ( | bool | on | ) |
If on=true will request the QmitkStdMultiWidget set the Menu widget to whatever was the last known enabled state, and if on=false will turn the Menu widget off.
Definition at line 539 of file QmitkStdMultiWidgetEditor.cpp.
|
overrideprotectedvirtual |
Asks this part to take focus within the workbench.
Clients should not call this method (the workbench calls this method at appropriate times). To have the workbench activate a part, use IWorkbenchPage.activate(IWorkbenchPart) instead
.
Implements berry::WorkbenchPart.
Definition at line 533 of file QmitkStdMultiWidgetEditor.cpp.
|
overridevirtual |
Implements mitk::IRenderWindowPart.
Definition at line 184 of file QmitkStdMultiWidgetEditor.cpp.