Medical Imaging Interaction Toolkit  2016.11.0
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 36 of file berrySelectionChangedEvent.h.

Constructor & Destructor Documentation

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

Definition at line 24 of file berrySelectionChangedEvent.cpp.

References berry::SmartPointer< TObjectType >::IsNotNull(), and selection.

Member Function Documentation

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

Returns the selection.

Returns
the selection

Definition at line 39 of file berrySelectionChangedEvent.cpp.

References selection.

ISelectionProvider::Pointer berry::SelectionChangedEvent::GetSelectionProvider ( ) const

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

Returns
the originating selection provider

Definition at line 44 of file berrySelectionChangedEvent.cpp.

References GetSource().

ISelectionProvider::Pointer berry::SelectionChangedEvent::GetSource ( ) const

Definition at line 34 of file berrySelectionChangedEvent.cpp.

Referenced by GetSelectionProvider().

Member Data Documentation

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

The selection.

Definition at line 73 of file berrySelectionChangedEvent.h.

Referenced by GetSelection(), and SelectionChangedEvent().


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