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

Method OnAddPoint

Modules/Segmentation/src/Interactions/mitkPickingTool.cpp:98–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void mitk::PickingTool::OnAddPoint(StateMachineAction*, InteractionEvent* interactionEvent)
99{
100 if (!this->IsUpdating() && m_PointSet.IsNotNull())
101 {
102 const auto positionEvent = dynamic_cast<mitk::InteractionPositionEvent*>(interactionEvent);
103
104 if (positionEvent != nullptr)
105 {
106 m_PointSet->InsertPoint(m_PointSet->GetSize(), positionEvent->GetPositionInWorld());
107 this->UpdatePreview();
108 }
109 }
110}
111
112void mitk::PickingTool::OnDelete(StateMachineAction*, InteractionEvent* /*interactionEvent*/)
113{

Callers

nothing calls this directly

Calls 6

IsUpdatingMethod · 0.80
IsNotNullMethod · 0.80
InsertPointMethod · 0.80
GetPositionInWorldMethod · 0.80
UpdatePreviewMethod · 0.80
GetSizeMethod · 0.45

Tested by

no test coverage detected