18 #include "internal/QmitkFunctionalityUtil.h"
48 std::vector<mitk::DataNode*> selectedNodes;
49 if(currentSelection.
IsNull())
56 it != currentSelection->End(); ++it)
63 selectedNodes.push_back(_DataNode);
73 if(!m_InDataStorageChanged)
75 m_InDataStorageChanged =
true;
78 m_InDataStorageChanged =
false;
91 if(!m_InDataStorageChanged)
93 m_InDataStorageChanged =
true;
96 m_InDataStorageChanged =
false;
113 if(!m_InDataStorageChanged)
115 m_InDataStorageChanged =
true;
118 m_InDataStorageChanged =
false;
124 std::vector<mitk::DataNode*> nodes;
125 nodes.push_back(node);
131 if( !m_SelectionProvider )
134 std::vector<mitk::DataNode::Pointer> nodesSmartPointers;
135 for (std::vector<mitk::DataNode*>::iterator it = nodes.begin()
136 ; it != nodes.end(); it++)
138 nodesSmartPointers.push_back( *it );
140 m_SelectionProvider->FireNodesSelected(nodesSmartPointers);
virtual void NodeRemoved(const mitk::DataNode *node)
std::vector< mitk::DataNode * > GetDataManagerSelection() const
void NodeRemovedProxy(const mitk::DataNode *node)
std::vector< mitk::DataNode * > GetCurrentSelection() const
DataNode::Pointer GetDataNode() const
virtual void NodeChanged(const mitk::DataNode *)
ContainerType::const_iterator iterator
void FireNodeSelected(mitk::DataNode *node)
virtual void NodeAdded(const mitk::DataNode *node)
void NodeAddedProxy(const mitk::DataNode *node)
virtual void DataStorageChanged()
void NodeChangedProxy(const mitk::DataNode *node)
SmartPointer< Other > Cast() const
std::vector< mitk::DataNode * > DataNodeSelectionToVector(mitk::DataNodeSelection::ConstPointer currentSelection) const
void FireNodesSelected(std::vector< mitk::DataNode * > nodes)
Class for nodes of the DataTree.
IWorkbenchPartSite::Pointer GetSite() const override
virtual void OnSelectionChanged(std::vector< mitk::DataNode * >)