#include <QmitkDataNodeSelection.h>


Public Member Functions | |
| berryObjectMacro (QmitkDataNodeSelection) | |
| QmitkDataNodeSelection () | |
| QmitkDataNodeSelection (const QItemSelection &sel) | |
| virtual berry::Object::Pointer | GetFirstElement () const |
| virtual iterator | Begin () const |
| virtual iterator | End () const |
| virtual int | Size () const |
| virtual ContainerType::Pointer | ToVector () const |
| bool | IsEmpty () const |
| bool | operator== (const berry::Object *obj) const |
Definition at line 25 of file QmitkDataNodeSelection.h.
| QmitkDataNodeSelection::QmitkDataNodeSelection | ( | ) |
Definition at line 25 of file QmitkDataNodeSelection.cpp.
{
}
| QmitkDataNodeSelection::QmitkDataNodeSelection | ( | const QItemSelection & | sel ) |
Definition at line 30 of file QmitkDataNodeSelection.cpp.
References mitk::DataNodeSelection::m_Selection, and QmitkDataNodeRole.
: mitk::DataNodeSelection(), berry::QtItemSelection(sel) { QModelIndexList indexes = sel.indexes(); for (QModelIndexList::const_iterator index = indexes.constBegin(); index != indexes.constEnd(); ++index) { QVariant data = index->data(QmitkDataNodeRole); mitk::DataNode::Pointer node = data.value<mitk::DataNode::Pointer> (); if (node.IsNotNull()) { berry::Object::Pointer obj(new mitk::DataNodeObject(node)); mitk::DataNodeSelection::m_Selection->push_back(obj); } } }
| QmitkDataNodeSelection::iterator QmitkDataNodeSelection::Begin | ( | ) | const [virtual] |
Reimplemented from berry::QtItemSelection.
Definition at line 54 of file QmitkDataNodeSelection.cpp.
{
return mitk::DataNodeSelection::Begin();
}
| QmitkDataNodeSelection::berryObjectMacro | ( | QmitkDataNodeSelection | ) |
| QmitkDataNodeSelection::iterator QmitkDataNodeSelection::End | ( | ) | const [virtual] |
Reimplemented from berry::QtItemSelection.
Definition at line 59 of file QmitkDataNodeSelection.cpp.
{
return mitk::DataNodeSelection::End();
}
| berry::Object::Pointer QmitkDataNodeSelection::GetFirstElement | ( | ) | const [virtual] |
Reimplemented from berry::QtItemSelection.
Definition at line 49 of file QmitkDataNodeSelection.cpp.
{
return mitk::DataNodeSelection::GetFirstElement();
}
| bool QmitkDataNodeSelection::IsEmpty | ( | ) | const [virtual] |
Reimplemented from berry::QtItemSelection.
Definition at line 74 of file QmitkDataNodeSelection.cpp.
{
return mitk::DataNodeSelection::IsEmpty();
}
| bool QmitkDataNodeSelection::operator== | ( | const berry::Object * | obj ) | const [virtual] |
Reimplemented from berry::QtItemSelection.
Definition at line 79 of file QmitkDataNodeSelection.cpp.
{
return mitk::DataNodeSelection::operator==(obj);
}
| int QmitkDataNodeSelection::Size | ( | ) | const [virtual] |
Reimplemented from berry::QtItemSelection.
Definition at line 64 of file QmitkDataNodeSelection.cpp.
{
return mitk::DataNodeSelection::Size();
}
| QmitkDataNodeSelection::ContainerType::Pointer QmitkDataNodeSelection::ToVector | ( | ) | const [virtual] |
Reimplemented from berry::QtItemSelection.
Definition at line 69 of file QmitkDataNodeSelection.cpp.
{
return mitk::DataNodeSelection::ToVector();
}
1.7.2