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

Method GetLastPoint

Modules/PythonSegmentation/src/mitknnInteractivePointInteractor.cpp:144–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144std::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
159void mitk::nnInteractive::PointInteractor::RemoveLastInteraction(PromptType promptType)
160{

Callers 1

DoUpdatePreviewMethod · 0.80

Calls 6

GetCurrentPromptTypeMethod · 0.80
findMethod · 0.45
endMethod · 0.45
IsEmptyMethod · 0.45
GetPointMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected