Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
berry::SelectionChangedEvent Class Reference

#include <berrySelectionChangedEvent.h>

Inheritance diagram for berry::SelectionChangedEvent:
Collaboration diagram for berry::SelectionChangedEvent:

Public Member Functions

 berryObjectMacro (SelectionChangedEvent)
 
 SelectionChangedEvent (SmartPointer< ISelectionProvider > source, ISelection::ConstPointer selection)
 
SmartPointer< ISelectionProviderGetSource () const
 
ISelection::ConstPointer GetSelection () const
 
SmartPointer< ISelectionProviderGetSelectionProvider () const
 
- 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
 

Protected Attributes

ISelection::ConstPointer selection
 
- Protected Attributes inherited from berry::Object
QAtomicInt m_ReferenceCount
 
QMutex m_ReferenceCountLock
 

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
 

Detailed Description

Event object describing a selection change. The source of these events is a selection provider.

See also
ISelection
ISelectionProvider
ISelectionChangedListener

Definition at line 32 of file berrySelectionChangedEvent.h.

Constructor & Destructor Documentation

◆ SelectionChangedEvent()

berry::SelectionChangedEvent::SelectionChangedEvent ( SmartPointer< ISelectionProvider source,
ISelection::ConstPointer  selection 
)

Creates a new event for the given source and selection.

Parameters
sourcethe selection provider
selectionthe selection

Member Function Documentation

◆ berryObjectMacro()

berry::SelectionChangedEvent::berryObjectMacro ( SelectionChangedEvent  )

◆ GetSelection()

ISelection::ConstPointer berry::SelectionChangedEvent::GetSelection ( ) const

Returns the selection.

Returns
the selection

◆ GetSelectionProvider()

SmartPointer<ISelectionProvider> berry::SelectionChangedEvent::GetSelectionProvider ( ) const

Returns the selection provider that is the source of this event.

Returns
the originating selection provider

◆ GetSource()

SmartPointer<ISelectionProvider> berry::SelectionChangedEvent::GetSource ( ) const

Member Data Documentation

◆ selection

ISelection::ConstPointer berry::SelectionChangedEvent::selection
protected

The selection.

Definition at line 69 of file berrySelectionChangedEvent.h.


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