| 142 | } |
| 143 | |
| 144 | std::optional<mitk::Point3D> mitk::nnInteractive::PointInteractor::GetLastPoint() const |
| 145 | { |
| 146 | const auto promptType = this->GetCurrentPromptType(); |
| 147 | |
| 148 | if (m_Impl->PointSetNodes.find(promptType) == m_Impl->PointSetNodes.end()) |
| 149 | return std::nullopt; |
| 150 | |
| 151 | auto pointSet = m_Impl->PointSetNodes[promptType]->GetDataAs<PointSet>(); |
| 152 | |
| 153 | if (pointSet->IsEmpty()) |
| 154 | return std::nullopt; |
| 155 | |
| 156 | return pointSet->GetPoint(pointSet->GetSize() - 1); |
| 157 | } |
| 158 | |
| 159 | void mitk::nnInteractive::PointInteractor::RemoveLastInteraction(PromptType promptType) |
| 160 | { |
no test coverage detected