Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::DataNodeSelection Class Reference

#include <mitkDataNodeSelection.h>

Inheritance diagram for mitk::DataNodeSelection:
Collaboration diagram for mitk::DataNodeSelection:

Public Member Functions

 berryObjectMacro (DataNodeSelection)
 
 DataNodeSelection ()
 
 DataNodeSelection (DataNode::Pointer node)
 
 DataNodeSelection (const std::vector< DataNode::Pointer > &nodes)
 
virtual Object::Pointer GetFirstElement () const override
 
virtual iterator Begin () const override
 
virtual iterator End () const override
 
virtual int Size () const override
 
virtual ContainerType::Pointer ToVector () const override
 
std::list< mitk::DataNode::PointerGetSelectedDataNodes () const
 
bool IsEmpty () const override
 
bool operator== (const berry::Object *obj) const override
 
- Public Member Functions inherited from berry::IStructuredSelection
virtual ~IStructuredSelection ()
 
- Public Member Functions inherited from berry::ISelection
 berryObjectMacro (berry::ISelection)~ISelection()
 
- 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

- 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
 

Detailed Description

Definition at line 31 of file mitkDataNodeSelection.h.

Constructor & Destructor Documentation

mitk::DataNodeSelection::DataNodeSelection ( )

Definition at line 24 of file mitkDataNodeSelection.cpp.

mitk::DataNodeSelection::DataNodeSelection ( DataNode::Pointer  node)

Definition at line 30 of file mitkDataNodeSelection.cpp.

References m_Selection.

mitk::DataNodeSelection::DataNodeSelection ( const std::vector< DataNode::Pointer > &  nodes)

Definition at line 37 of file mitkDataNodeSelection.cpp.

References m_Selection.

Member Function Documentation

berry::IStructuredSelection::iterator mitk::DataNodeSelection::Begin ( ) const
overridevirtual

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

Returns
an element, or null if none Returns an iterator to the beginning of the elements of this selection.
an iterator over the selected elements

Implements berry::IStructuredSelection.

Definition at line 55 of file mitkDataNodeSelection.cpp.

References m_Selection.

Referenced by GetSelectedDataNodes().

mitk::DataNodeSelection::berryObjectMacro ( DataNodeSelection  )
berry::IStructuredSelection::iterator mitk::DataNodeSelection::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.

Definition at line 60 of file mitkDataNodeSelection.cpp.

References m_Selection.

Referenced by GetSelectedDataNodes().

berry::Object::Pointer mitk::DataNodeSelection::GetFirstElement ( ) const
overridevirtual

Definition at line 47 of file mitkDataNodeSelection.cpp.

References m_Selection.

std::list< DataNode::Pointer > mitk::DataNodeSelection::GetSelectedDataNodes ( ) const
bool mitk::DataNodeSelection::IsEmpty ( ) const
overridevirtual
See also
berry::ISelection::IsEmpty()

Implements berry::ISelection.

Definition at line 97 of file mitkDataNodeSelection.cpp.

References m_Selection.

Referenced by GetSelectedDataNodes().

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

Definition at line 102 of file mitkDataNodeSelection.cpp.

References m_Selection.

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

Returns the number of elements selected in this selection.

Returns
the number of elements selected

Implements berry::IStructuredSelection.

Definition at line 65 of file mitkDataNodeSelection.cpp.

References m_Selection.

berry::IStructuredSelection::ContainerType::Pointer mitk::DataNodeSelection::ToVector ( ) const
overridevirtual

Returns the elements in this selection as a vector.

Returns
the selected elements as a vector

Implements berry::IStructuredSelection.

Definition at line 70 of file mitkDataNodeSelection.cpp.

References m_Selection.

Member Data Documentation

ContainerType::Pointer mitk::DataNodeSelection::m_Selection
protected

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