22 #include "internal/QmitkDataNodeSelection.h"
25 :
berry::QtSelectionProvider()
36 QItemSelectionModel::SelectionFlags flags)
41 if (dataNodeSelection)
45 QItemSelection newSelection;
46 const std::list<mitk::DataNode::Pointer> selectedNodes = dataNodeSelection->GetSelectedDataNodes();
47 for (
auto i = selectedNodes.begin();
48 i != selectedNodes.end(); ++i)
51 QVariant::fromValue<mitk::DataNode*>(i->GetPointer()), 1, Qt::MatchRecursive);
54 newSelection.select(matched.front(), matched.front());
61 QtSelectionProvider::SetSelection(selection, flags);
79 const QItemSelection& ,
const QItemSelection& )
berry::SmartPointer< const Self > ConstPointer
QItemSelectionModel * qSelectionModel
berry::ISelection::ConstPointer GetSelection() const override
ISelectionChangedListener::Events selectionEvents
mitk::DataNodeSelection::ConstPointer GetDataNodeSelection() const
virtual void FireSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected) override
void SetSelection(berry::ISelection::ConstPointer selection, QItemSelectionModel::SelectionFlags flags)
SmartPointer< Other > Cast() const
QmitkDataNodeSelectionProvider()
Message1< const SelectionChangedEvent::Pointer & > selectionChanged