| 479 | } |
| 480 | |
| 481 | QmitkMultiLabelInspector::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 | |
| 499 | QmitkMultiLabelInspector::LabelValueVectorType QmitkMultiLabelInspector::GetCurrentlyAffactedLabelInstances() const |
| 500 | { |
no test coverage detected