| 1698 | } |
| 1699 | |
| 1700 | void QmitkMultiLabelInspector::PrepareGoToLabel(mitk::Label::PixelType labelID) const |
| 1701 | { |
| 1702 | const auto currentLabel = m_Segmentation->GetLabel(labelID); |
| 1703 | if (currentLabel.IsNull()) |
| 1704 | return; |
| 1705 | |
| 1706 | this->WaitCursorOn(); |
| 1707 | m_Segmentation->UpdateCenterOfMass(labelID); |
| 1708 | this->WaitCursorOff(); |
| 1709 | |
| 1710 | const auto pos = currentLabel->GetCenterOfMassIndex(); |
| 1711 | |
| 1712 | if (pos.GetVnlVector().max_value() > 0.0) |
| 1713 | { |
| 1714 | emit GoToLabel(currentLabel->GetValue(), currentLabel->GetCenterOfMassCoordinates()); |
| 1715 | } |
| 1716 | } |
| 1717 | |
| 1718 | void QmitkMultiLabelInspector::OnEntered(const QModelIndex& index) |
| 1719 | { |
no test coverage detected