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

#include <berryQtItemSelection.h>

Inheritance diagram for berry::QtItemSelection:
Collaboration diagram for berry::QtItemSelection:

Public Member Functions

 berryObjectMacro (QtItemSelection)
 
 QtItemSelection ()
 
 QtItemSelection (const QItemSelection &sel)
 
QItemSelection GetQItemSelection () const
 
bool IsEmpty () const override
 
Object::Pointer GetFirstElement () const override
 
iterator Begin () const override
 
iterator End () const override
 
int Size () const override
 
ContainerType::Pointer ToVector () const override
 
bool operator== (const 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
 

Additional Inherited Members

- 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
 
- 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

Definition at line 25 of file berryQtItemSelection.h.

Constructor & Destructor Documentation

◆ QtItemSelection() [1/2]

berry::QtItemSelection::QtItemSelection ( )

◆ QtItemSelection() [2/2]

berry::QtItemSelection::QtItemSelection ( const QItemSelection &  sel)

Member Function Documentation

◆ Begin()

iterator berry::QtItemSelection::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()

berry::QtItemSelection::berryObjectMacro ( QtItemSelection  )

◆ End()

iterator berry::QtItemSelection::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 berry::QtItemSelection::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.

◆ GetQItemSelection()

QItemSelection berry::QtItemSelection::GetQItemSelection ( ) const

◆ IsEmpty()

bool berry::QtItemSelection::IsEmpty ( ) const
overridevirtual

Returns whether this selection is empty.

Returns
true if this selection is empty, and false otherwise

Implements berry::ISelection.

◆ operator==()

bool berry::QtItemSelection::operator== ( const 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 berry::QtItemSelection::Size ( ) const
overridevirtual

Returns the number of elements selected in this selection.

Returns
the number of elements selected

Implements berry::IStructuredSelection.

◆ ToVector()

ContainerType::Pointer berry::QtItemSelection::ToVector ( ) const
overridevirtual

Returns the elements in this selection as a vector.

Returns
the selected elements as a vector

Implements berry::IStructuredSelection.


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