Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::DataStorageEditorInput Class Reference

An editor input based on a mitk::DataStorage. More...

#include <mitkDataStorageEditorInput.h>

Inheritance diagram for mitk::DataStorageEditorInput:
Collaboration diagram for mitk::DataStorageEditorInput:

Public Member Functions

 berryObjectMacro (DataStorageEditorInput) DataStorageEditorInput()
 
 DataStorageEditorInput (IDataStorageReference::Pointer ref)
 
bool Exists () const override
 
QString GetName () const override
 
QString GetToolTipText () const override
 
QIcon GetIcon () const override
 
const berry::IPersistableElementGetPersistable () const override
 
ObjectGetAdapter (const QString &adapterType) const override
 
IDataStorageReference::Pointer GetDataStorageReference ()
 
bool operator== (const berry::Object *) const override
 
- Public Member Functions inherited from berry::IEditorInput
 berryObjectMacro (berry::IEditorInput)~IEditorInput()
 
- 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
 
- Public Member Functions inherited from berry::IAdaptable
template<class A >
A * GetAdapter ()
 
virtual ~IAdaptable ()
 

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 ()
 
- 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
 
- Protected Attributes inherited from berry::Object
QAtomicInt m_ReferenceCount
 
QMutex m_ReferenceCountLock
 

Detailed Description

An editor input based on a mitk::DataStorage.

This editor input is usually used in render window editors inheriting from QmitkAbstractRenderEditor.

Definition at line 38 of file mitkDataStorageEditorInput.h.

Constructor & Destructor Documentation

mitk::DataStorageEditorInput::DataStorageEditorInput ( IDataStorageReference::Pointer  ref)

Definition at line 33 of file mitkDataStorageEditorInput.cpp.

Member Function Documentation

mitk::DataStorageEditorInput::berryObjectMacro ( DataStorageEditorInput  )
bool mitk::DataStorageEditorInput::Exists ( ) const
overridevirtual

Returns whether the editor input exists.

This method is primarily used to determine if an editor input should appear in the "File Most Recently Used" menu. An editor input will appear in the list until the return value of exists becomes false or it drops off the bottom of the list.

Returns
true if the editor input exists; false otherwise

Implements berry::IEditorInput.

Definition at line 42 of file mitkDataStorageEditorInput.cpp.

berry::Object * mitk::DataStorageEditorInput::GetAdapter ( const QString &  adapterType) const
overridevirtual

Returns an object which is an instance of the given class associated with this object. Returns null if no such object can be found.

Parameters
adapterTypethe adapter class to look up
Returns
a object castable to the given class, or null if this object does not have an adapter for the given class

Implements berry::IAdaptable.

Definition at line 68 of file mitkDataStorageEditorInput.cpp.

References berry::IAdapterManager::GetAdapter(), and berry::Platform::GetAdapterManager().

IDataStorageReference::Pointer mitk::DataStorageEditorInput::GetDataStorageReference ( )
QIcon mitk::DataStorageEditorInput::GetIcon ( ) const
overridevirtual

Returns the icon for this input.

Returns
the icon for this input; may be null icon if there is no image.

Implements berry::IEditorInput.

Definition at line 57 of file mitkDataStorageEditorInput.cpp.

QString mitk::DataStorageEditorInput::GetName ( ) const
overridevirtual

Returns the name of this editor input for display purposes.

For instance, when the input is from a file, the return value would ordinarily be just the file name.

Returns
the name string; never null;

Implements berry::IEditorInput.

Definition at line 47 of file mitkDataStorageEditorInput.cpp.

const berry::IPersistableElement * mitk::DataStorageEditorInput::GetPersistable ( ) const
overridevirtual

Returns an object that can be used to save the state of this editor input.

Returns
the persistable element, or null if this editor input cannot be persisted

Implements berry::IEditorInput.

Definition at line 62 of file mitkDataStorageEditorInput.cpp.

QString mitk::DataStorageEditorInput::GetToolTipText ( ) const
overridevirtual

Returns the tool tip text for this editor input. This text is used to differentiate between two input with the same name. For instance, MyClass.java in folder X and MyClass.java in folder Y. The format of the text varies between input types.

Returns
the tool tip text; never null.

Implements berry::IEditorInput.

Definition at line 52 of file mitkDataStorageEditorInput.cpp.

bool mitk::DataStorageEditorInput::operator== ( const berry::Object o) const
overridevirtual

Returns true if two editor inputs are the same

Implements berry::IEditorInput.

Definition at line 88 of file mitkDataStorageEditorInput.cpp.


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