Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Used by plugins to communicate selections of deployed algorithms. More...
#include <mitkMAPAlgorithmInfoSelection.h>
Public Types | |
typedef ::map::deployment::DLLInfo | AlgorithmInfoType |
typedef std::vector< AlgorithmInfoType::ConstPointer > | AlgorithmInfoVectorType |
![]() | |
typedef ObjectList< Object::Pointer > | ContainerType |
typedef ContainerType::const_iterator | iterator |
![]() | |
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 |
Public Member Functions | |
berryObjectMacro (MAPAlgorithmInfoSelection) | |
MAPAlgorithmInfoSelection () | |
MAPAlgorithmInfoSelection (AlgorithmInfoType::ConstPointer info) | |
MAPAlgorithmInfoSelection (const AlgorithmInfoVectorType &infos) | |
Object::Pointer | GetFirstElement () const override |
iterator | Begin () const override |
iterator | End () const override |
int | Size () const override |
ContainerType::Pointer | ToVector () const override |
AlgorithmInfoVectorType | GetSelectedAlgorithmInfo () const |
bool | IsEmpty () const override |
bool | operator== (const berry::Object *obj) const override |
![]() | |
berryObjectMacro (berry::IStructuredSelection) | |
~IStructuredSelection () override | |
![]() | |
berryObjectMacro (berry::ISelection) | |
~ISelection () 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 |
Protected Attributes | |
ContainerType::Pointer | m_Selection |
![]() | |
QAtomicInt | m_ReferenceCount |
QMutex | m_ReferenceCountLock |
Additional Inherited Members | |
![]() | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
![]() | |
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 |
Used by plugins to communicate selections of deployed algorithms.
For example used by the algorithm browser to inform about the currently selected algorithm.
Definition at line 30 of file mitkMAPAlgorithmInfoSelection.h.
typedef ::map::deployment::DLLInfo mitk::MAPAlgorithmInfoSelection::AlgorithmInfoType |
Definition at line 37 of file mitkMAPAlgorithmInfoSelection.h.
typedef std::vector<AlgorithmInfoType::ConstPointer> mitk::MAPAlgorithmInfoSelection::AlgorithmInfoVectorType |
Definition at line 38 of file mitkMAPAlgorithmInfoSelection.h.
mitk::MAPAlgorithmInfoSelection::MAPAlgorithmInfoSelection | ( | ) |
Definition at line 20 of file mitkMAPAlgorithmInfoSelection.cpp.
mitk::MAPAlgorithmInfoSelection::MAPAlgorithmInfoSelection | ( | AlgorithmInfoType::ConstPointer | info | ) |
Definition at line 26 of file mitkMAPAlgorithmInfoSelection.cpp.
References m_Selection.
mitk::MAPAlgorithmInfoSelection::MAPAlgorithmInfoSelection | ( | const AlgorithmInfoVectorType & | infos | ) |
Definition at line 33 of file mitkMAPAlgorithmInfoSelection.cpp.
References m_Selection.
|
overridevirtual |
Returns an iterator to the beginning of the elements of this selection.
Implements berry::IStructuredSelection.
Definition at line 51 of file mitkMAPAlgorithmInfoSelection.cpp.
References m_Selection.
Referenced by GetSelectedAlgorithmInfo().
mitk::MAPAlgorithmInfoSelection::berryObjectMacro | ( | MAPAlgorithmInfoSelection | ) |
|
overridevirtual |
Returns an iterator to the end of the elements of this selection.
Implements berry::IStructuredSelection.
Definition at line 56 of file mitkMAPAlgorithmInfoSelection.cpp.
References m_Selection.
Referenced by GetSelectedAlgorithmInfo().
|
overridevirtual |
Returns the first element in this selection, or null
if the selection is empty.
null
if none Implements berry::IStructuredSelection.
Definition at line 43 of file mitkMAPAlgorithmInfoSelection.cpp.
References m_Selection.
MAPAlgorithmInfoSelection::AlgorithmInfoVectorType mitk::MAPAlgorithmInfoSelection::GetSelectedAlgorithmInfo | ( | ) | const |
Definition at line 71 of file mitkMAPAlgorithmInfoSelection.cpp.
References Begin(), berry::SmartPointer< TObjectType >::Cast(), End(), info(), IsEmpty(), and berry::SmartPointer< TObjectType >::IsNotNull().
|
overridevirtual |
Implements berry::ISelection.
Definition at line 93 of file mitkMAPAlgorithmInfoSelection.cpp.
References m_Selection.
Referenced by GetSelectedAlgorithmInfo().
|
overridevirtual |
A generic comparison method. Override this method in subclasses and cast to your derived class to provide a more detailed comparison.
Reimplemented from berry::Object.
Definition at line 98 of file mitkMAPAlgorithmInfoSelection.cpp.
References m_Selection.
|
overridevirtual |
Returns the number of elements selected in this selection.
Implements berry::IStructuredSelection.
Definition at line 61 of file mitkMAPAlgorithmInfoSelection.cpp.
References m_Selection.
|
overridevirtual |
Returns the elements in this selection as a vector.
Implements berry::IStructuredSelection.
Definition at line 66 of file mitkMAPAlgorithmInfoSelection.cpp.
References m_Selection.
|
protected |
Definition at line 63 of file mitkMAPAlgorithmInfoSelection.h.
Referenced by Begin(), End(), GetFirstElement(), IsEmpty(), MAPAlgorithmInfoSelection(), operator==(), Size(), and ToVector().