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

Method GetCurrentLevelType

Modules/SegmentationUI/src/QmitkMultiLabelInspector.cpp:481–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479}
480
481QmitkMultiLabelInspector::IndexLevelType QmitkMultiLabelInspector::GetCurrentLevelType() const
482{
483 auto currentIndex = this->m_Controls->view->currentIndex();
484 auto labelInstanceVariant = currentIndex.data(QmitkMultiLabelTreeModel::ItemModelRole::LabelInstanceDataRole);
485 auto labelVariant = currentIndex.data(QmitkMultiLabelTreeModel::ItemModelRole::LabelDataRole);
486
487 if (labelInstanceVariant.isValid() )
488 {
489 return IndexLevelType::LabelInstance;
490 }
491 else if (labelVariant.isValid())
492 {
493 return IndexLevelType::LabelClass;
494 }
495
496 return IndexLevelType::Group;
497}
498
499QmitkMultiLabelInspector::LabelValueVectorType QmitkMultiLabelInspector::GetCurrentlyAffactedLabelInstances() const
500{

Callers 1

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected