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

Method CompileEmitSelection

Modules/QtWidgets/src/QmitkAbstractNodeSelectionWidget.cpp:383–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383QmitkAbstractNodeSelectionWidget::NodeList QmitkAbstractNodeSelectionWidget::CompileEmitSelection() const
384{
385 NodeList result = m_CurrentInternalSelection;
386
387 if (!m_SelectOnlyVisibleNodes)
388 {
389 for (const auto &node : m_CurrentExternalSelection)
390 {
391 if (!result.contains(node) && m_NodePredicate.IsNotNull() && !m_NodePredicate->CheckNode(node))
392 {
393 result.append(node);
394 }
395 }
396 }
397
398 return result;
399}
400
401void QmitkAbstractNodeSelectionWidget::RemoveNodeFromInternalSelection(const mitk::DataNode* node)
402{

Callers 7

GetSelectedNodesMethod · 0.95
OnNodeModifiedMethod · 0.95
eventFilterMethod · 0.80
OnEditSelectionMethod · 0.80

Calls 3

containsMethod · 0.80
IsNotNullMethod · 0.80
CheckNodeMethod · 0.45

Tested by

no test coverage detected