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

Method EndHovering

Modules/PlanarFigure/src/Interactions/mitkPlanarFigureInteractor.cpp:216–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void mitk::PlanarFigureInteractor::EndHovering(StateMachineAction *, InteractionEvent *)
217{
218 auto planarFigure = dynamic_cast<PlanarFigure*>(GetDataNode()->GetData());
219 if (nullptr == planarFigure)
220 {
221 return;
222 }
223
224 planarFigure->ResetPreviewContolPoint();
225
226 // Invoke end-hover event once the mouse is exiting the figure area
227 m_IsHovering = false;
228 planarFigure->InvokeEvent(EndHoverPlanarFigureEvent());
229
230 // Set bool property to indicate that planar figure is no longer in "hovering" mode
231 GetDataNode()->SetBoolProperty("planarfigure.ishovering", false);
232
233 RenderingManager::GetInstance()->RequestUpdateAll();
234}
235
236void mitk::PlanarFigureInteractor::DeleteFigure(StateMachineAction *, InteractionEvent *interactionEvent)
237{

Callers

nothing calls this directly

Calls 4

GetDataMethod · 0.45
SetBoolPropertyMethod · 0.45
RequestUpdateAllMethod · 0.45

Tested by

no test coverage detected