MCPcopy Create free account
hub / github.com/MITK/MITK / GetSelectedNode

Method GetSelectedNode

Modules/QtWidgets/src/QmitkSingleNodeSelectionWidget.cpp:79–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79mitk::DataNode::Pointer QmitkSingleNodeSelectionWidget::GetSelectedNode() const
80{
81 mitk::DataNode::Pointer result;
82
83 auto selection = GetCurrentInternalSelection();
84 if (!selection.empty())
85 {
86 result = selection.front();
87 }
88 return result;
89}
90
91bool QmitkSingleNodeSelectionWidget::eventFilter(QObject *obj, QEvent *ev)
92{

Callers 2

UpdateInfoMethod · 0.95
AutoSelectNodesMethod · 0.95

Calls 2

frontMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected