| 156 | } |
| 157 | |
| 158 | void mitk::MonaiLabelTool::OnDelete(StateMachineAction *, InteractionEvent *) |
| 159 | { |
| 160 | if (!this->IsUpdating() && m_PointSetPositive.IsNotNull()) |
| 161 | { |
| 162 | PointSet::Pointer removeSet = m_PointSetPositive; |
| 163 | itk::IdentifierType maxId = 0; |
| 164 | if (m_PointSetPositive->GetSize() > 0) |
| 165 | { |
| 166 | maxId = m_PointSetPositive->GetMaxId().Index(); |
| 167 | } |
| 168 | if (m_PointSetNegative->GetSize() > 0 && (maxId < m_PointSetNegative->GetMaxId().Index())) |
| 169 | { |
| 170 | removeSet = m_PointSetNegative; |
| 171 | } |
| 172 | removeSet->RemovePointAtEnd(0); |
| 173 | --m_PointSetCount; |
| 174 | this->UpdatePreview(); |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | void mitk::MonaiLabelTool::ClearPicks() |
| 179 | { |
nothing calls this directly
no test coverage detected