Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkStdMultiWidgetEditor Class Reference

#include <QmitkStdMultiWidgetEditor.h>

Inheritance diagram for QmitkStdMultiWidgetEditor:
Collaboration diagram for QmitkStdMultiWidgetEditor:

Public Member Functions

 berryObjectMacro (QmitkStdMultiWidgetEditor) static const QString EDITOR_ID
 
 QmitkStdMultiWidgetEditor ()
 
 ~QmitkStdMultiWidgetEditor ()
 
QmitkStdMultiWidgetGetStdMultiWidget ()
 
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...
 
QmitkRenderWindowGetActiveQmitkRenderWindow () const override
 
QHash< QString, QmitkRenderWindow * > GetQmitkRenderWindows () const override
 
QmitkRenderWindowGetQmitkRenderWindow (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::TypeInfoGetSuperclasses () 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::IRenderingManagerGetRenderingManager () 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::SliceNavigationControllerGetTimeNavigationController () 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< SelfPointer
 
typedef berry::SmartPointer< const SelfConstPointer
 
typedef berry::WeakPointer< SelfWeakPtr
 
typedef berry::WeakPointer< const SelfConstWeakPtr
 
- Static Public Member Functions inherited from berry::Object
static const char * GetStaticClassName ()
 
static Reflection::TypeInfo GetStaticTypeInfo ()
 
static QList< Reflection::TypeInfoGetStaticSuperclasses ()
 
- 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
 

Detailed Description

Definition at line 33 of file QmitkStdMultiWidgetEditor.h.

Constructor & Destructor Documentation

QmitkStdMultiWidgetEditor::QmitkStdMultiWidgetEditor ( )

Definition at line 145 of file QmitkStdMultiWidgetEditor.cpp.

QmitkStdMultiWidgetEditor::~QmitkStdMultiWidgetEditor ( )

Definition at line 150 of file QmitkStdMultiWidgetEditor.cpp.

References berry::WorkbenchPart::GetSite().

Member Function Documentation

QmitkStdMultiWidgetEditor::berryObjectMacro ( QmitkStdMultiWidgetEditor  ) const
void QmitkStdMultiWidgetEditor::EnableDecorations ( bool  enable,
const QStringList &  decorations = QStringList() 
)
overridevirtual
void QmitkStdMultiWidgetEditor::EnableSlicingPlanes ( bool  enable)
overridevirtual

Enable or disable the slicing planes linking the QmitkRenderWindow instances.

Parameters
enabletrue if the slicing planes should be enabled; false otherwise.

Implements mitk::ILinkedRenderWindowPart.

Definition at line 250 of file QmitkStdMultiWidgetEditor.cpp.

void QmitkStdMultiWidgetEditor::FillMembersWithCurrentDecorations ( )
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().

QmitkRenderWindow * QmitkStdMultiWidgetEditor::GetActiveQmitkRenderWindow ( ) const
overridevirtual
void QmitkStdMultiWidgetEditor::GetPreferenceDecorations ( const berry::IBerryPreferences preferences)
protected

GetPreferenceDecorations Getter to fill internal members with values of preferences.

Parameters
preferencesThe 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().

QmitkRenderWindow * QmitkStdMultiWidgetEditor::GetQmitkRenderWindow ( const QString &  id) const
overridevirtual
See also
mitk::IRenderWindowPart::GetQmitkRenderWindow(QString)

Implements mitk::IRenderWindowPart.

Definition at line 171 of file QmitkStdMultiWidgetEditor.cpp.

QHash< QString, QmitkRenderWindow * > QmitkStdMultiWidgetEditor::GetQmitkRenderWindows ( ) const
overridevirtual
mitk::Point3D QmitkStdMultiWidgetEditor::GetSelectedPosition ( const QString &  id = QString()) const
overridevirtual
See also
mitk::IRenderWindowPart::GetSelectionPosition()

Implements mitk::IRenderWindowPart.

Definition at line 179 of file QmitkStdMultiWidgetEditor.cpp.

QmitkStdMultiWidget * QmitkStdMultiWidgetEditor::GetStdMultiWidget ( )

Definition at line 155 of file QmitkStdMultiWidgetEditor.cpp.

mitk::Color QmitkStdMultiWidgetEditor::HexColorToMitkColor ( const QString &  widgetColorInHex)
protected

GetColorForWidget helper method to convert a saved color string to mitk::Color.

Parameters
widgetColorInHexcolor in hex format (#12356) where each diget is in the form (0-F).
Returns
the color in mitk format.

Definition at line 441 of file QmitkStdMultiWidgetEditor.cpp.

References MITK_ERROR.

Referenced by OnPreferencesChanged().

void QmitkStdMultiWidgetEditor::InitializePreferences ( berry::IBerryPreferences preferences)
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).

Parameters
preferencesberry preferences.

Definition at line 507 of file QmitkStdMultiWidgetEditor.cpp.

References FillMembersWithCurrentDecorations(), GetPreferenceDecorations(), and berry::IPreferences::Put().

Referenced by CreateQtPartControl().

bool QmitkStdMultiWidgetEditor::IsSlicingPlanesEnabled ( ) const
overridevirtual

Get the enabled status of the slicing planes.

Returns
true if the slicing planes are enabled; false otherwise.

Implements mitk::ILinkedRenderWindowPart.

Definition at line 255 of file QmitkStdMultiWidgetEditor.cpp.

QString QmitkStdMultiWidgetEditor::MitkColorToHex ( const mitk::Color color)
protected

MitkColorToHex Convert an mitk::Color to hex string.

Parameters
colormitk format.
Returns
String in hex (#RRGGBB).

Definition at line 462 of file QmitkStdMultiWidgetEditor.cpp.

Referenced by FillMembersWithCurrentDecorations().

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.

void QmitkStdMultiWidgetEditor::SetFocus ( )
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.

void QmitkStdMultiWidgetEditor::SetSelectedPosition ( const mitk::Point3D pos,
const QString &  id = QString() 
)
overridevirtual

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