Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
berry::ISelectionProvider Struct Referenceabstract

#include <berryISelectionProvider.h>

Inheritance diagram for berry::ISelectionProvider:
Collaboration diagram for berry::ISelectionProvider:

Public Member Functions

 berryObjectMacro (berry::ISelectionProvider)
 
 ~ISelectionProvider () override
 
virtual void AddSelectionChangedListener (ISelectionChangedListener *listener)=0
 
virtual ISelection::ConstPointer GetSelection () const =0
 
virtual void RemoveSelectionChangedListener (ISelectionChangedListener *listener)=0
 
virtual void SetSelection (const ISelection::ConstPointer &selection)=0
 
- 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
 

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

Interface common to all objects that provide a selection.

See also
ISelection
ISelectionChangedListener
SelectionChangedEvent

Definition at line 33 of file berryISelectionProvider.h.

Constructor & Destructor Documentation

◆ ~ISelectionProvider()

berry::ISelectionProvider::~ISelectionProvider ( )
override

Member Function Documentation

◆ AddSelectionChangedListener()

virtual void berry::ISelectionProvider::AddSelectionChangedListener ( ISelectionChangedListener listener)
pure virtual

Adds a listener for selection changes in this selection provider. Has no effect if an identical listener is already registered.

Parameters
listenera selection changed listener

Implemented in berry::QtSelectionProvider.

◆ berryObjectMacro()

berry::ISelectionProvider::berryObjectMacro ( berry::ISelectionProvider  )

◆ GetSelection()

virtual ISelection::ConstPointer berry::ISelectionProvider::GetSelection ( ) const
pure virtual

Returns the current selection for this provider.

Returns
the current selection

Implemented in QmitkDataNodeSelectionProvider, and berry::QtSelectionProvider.

◆ RemoveSelectionChangedListener()

virtual void berry::ISelectionProvider::RemoveSelectionChangedListener ( ISelectionChangedListener listener)
pure virtual

Removes the given selection change listener from this selection provider. Has no affect if an identical listener is not registered.

Parameters
listenera selection changed listener

Implemented in berry::QtSelectionProvider.

◆ SetSelection()

virtual void berry::ISelectionProvider::SetSelection ( const ISelection::ConstPointer selection)
pure virtual

Sets the current selection for this selection provider.

Parameters
selectionthe new selection

Implemented in berry::QtSelectionProvider.


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