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

Method FeedUndoStack

Modules/Gizmo/src/mitkGizmoInteractor.cpp:342–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342void mitk::GizmoInteractor::FeedUndoStack(StateMachineAction *, InteractionEvent *)
343{
344 if (m_UndoEnabled)
345 {
346 OperationEvent *operationEvent = new OperationEvent(m_ManipulatedObjectGeometry,
347 // OperationEvent will destroy operations!
348 // --> release() and not get()
349 m_FinalDoOperation.release(),
350 m_FinalUndoOperation.release(),
351 "Direct geometry manipulation");
352 mitk::OperationEvent::IncCurrObjectEventId(); // save each modification individually
353 m_UndoController->SetOperationEvent(operationEvent);
354 }
355}
356
357mitk::Gizmo::HandleType mitk::GizmoInteractor::PickFrom2D(const InteractionPositionEvent *positionEvent)
358{

Callers

nothing calls this directly

Calls 1

SetOperationEventMethod · 0.45

Tested by

no test coverage detected