| 214 | } |
| 215 | |
| 216 | void 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 | |
| 236 | void mitk::PlanarFigureInteractor::DeleteFigure(StateMachineAction *, InteractionEvent *interactionEvent) |
| 237 | { |
nothing calls this directly
no test coverage detected