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

Method GetLastBox

Modules/PythonSegmentation/src/mitknnInteractiveBoxInteractor.cpp:212–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212const mitk::PlanarFigure* mitk::nnInteractive::BoxInteractor::GetLastBox() const
213{
214 const auto promptType = this->GetCurrentPromptType();
215
216 if (m_Impl->BoxNodes.find(promptType) == m_Impl->BoxNodes.end())
217 return nullptr;
218
219 if (m_Impl->BoxNodes[promptType].empty())
220 return nullptr;
221
222 return m_Impl->BoxNodes[promptType].back()->GetDataAs<PlanarFigure>();
223}
224
225void mitk::nnInteractive::BoxInteractor::RemoveLastInteraction(PromptType promptType)
226{

Callers 1

DoUpdatePreviewMethod · 0.80

Calls 5

GetCurrentPromptTypeMethod · 0.80
backMethod · 0.80
findMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected