Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
Medical Imaging Interaction Toolkit
mitk::MAPAlgorithmInfoSelection Class Reference

Used by plugins to communicate selections of deployed algorithms. More...

#include <mitkMAPAlgorithmInfoSelection.h>

Inheritance diagram for mitk::MAPAlgorithmInfoSelection:
Collaboration diagram for mitk::MAPAlgorithmInfoSelection:

Public Types

typedef ::map::deployment::DLLInfo AlgorithmInfoType
 
typedef std::vector< AlgorithmInfoType::ConstPointer > AlgorithmInfoVectorType
 
- Public Types inherited from berry::IStructuredSelection
typedef ObjectList< Object::PointerContainerType
 
typedef ContainerType::const_iterator iterator
 
- 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
 

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
 
- Public Member Functions inherited from berry::IStructuredSelection
 berryObjectMacro (berry::IStructuredSelection)
 
 ~IStructuredSelection () override
 
- Public Member Functions inherited from berry::ISelection
 berryObjectMacro (berry::ISelection)
 
 ~ISelection () override
 
- 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
 

Protected Attributes

ContainerType::Pointer m_Selection
 
- Protected Attributes inherited from berry::Object
QAtomicInt m_ReferenceCount
 
QMutex m_ReferenceCountLock
 

Additional Inherited Members

- 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
 

Detailed Description

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.

Member Typedef Documentation

◆ AlgorithmInfoType

typedef ::map::deployment::DLLInfo mitk::MAPAlgorithmInfoSelection::AlgorithmInfoType

Definition at line 37 of file mitkMAPAlgorithmInfoSelection.h.

◆ AlgorithmInfoVectorType

typedef std::vector<AlgorithmInfoType::ConstPointer> mitk::MAPAlgorithmInfoSelection::AlgorithmInfoVectorType

Definition at line 38 of file mitkMAPAlgorithmInfoSelection.h.

Constructor & Destructor Documentation

◆ MAPAlgorithmInfoSelection() [1/3]

mitk::MAPAlgorithmInfoSelection::MAPAlgorithmInfoSelection ( )

◆ MAPAlgorithmInfoSelection() [2/3]

mitk::MAPAlgorithmInfoSelection::MAPAlgorithmInfoSelection ( AlgorithmInfoType::ConstPointer  info)

◆ MAPAlgorithmInfoSelection() [3/3]

mitk::MAPAlgorithmInfoSelection::MAPAlgorithmInfoSelection ( const AlgorithmInfoVectorType infos)

Member Function Documentation

◆ Begin()

iterator mitk::MAPAlgorithmInfoSelection::Begin ( ) const
overridevirtual

Returns an iterator to the beginning of the elements of this selection.

Returns
an iterator over the selected elements

Implements berry::IStructuredSelection.

◆ berryObjectMacro()

mitk::MAPAlgorithmInfoSelection::berryObjectMacro ( MAPAlgorithmInfoSelection  )

◆ End()

iterator mitk::MAPAlgorithmInfoSelection::End ( ) const
overridevirtual

Returns an iterator to the end of the elements of this selection.

Returns
an iterator over the selected elements

Implements berry::IStructuredSelection.

◆ GetFirstElement()

Object::Pointer mitk::MAPAlgorithmInfoSelection::GetFirstElement ( ) const
overridevirtual

Returns the first element in this selection, or null if the selection is empty.

Returns
an element, or null if none

Implements berry::IStructuredSelection.

◆ GetSelectedAlgorithmInfo()

AlgorithmInfoVectorType mitk::MAPAlgorithmInfoSelection::GetSelectedAlgorithmInfo ( ) const

◆ IsEmpty()

bool mitk::MAPAlgorithmInfoSelection::IsEmpty ( ) const
overridevirtual

◆ operator==()

bool mitk::MAPAlgorithmInfoSelection::operator== ( const berry::Object ) const
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.

◆ Size()

int mitk::MAPAlgorithmInfoSelection::Size ( ) const
overridevirtual

Returns the number of elements selected in this selection.

Returns
the number of elements selected

Implements berry::IStructuredSelection.

◆ ToVector()

ContainerType::Pointer mitk::MAPAlgorithmInfoSelection::ToVector ( ) const
overridevirtual

Returns the elements in this selection as a vector.

Returns
the selected elements as a vector

Implements berry::IStructuredSelection.

Member Data Documentation

◆ m_Selection

ContainerType::Pointer mitk::MAPAlgorithmInfoSelection::m_Selection
protected

Definition at line 63 of file mitkMAPAlgorithmInfoSelection.h.


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