public override void Cancel() { IPresentationImage selectedImage = this.Context.Viewer.SelectedPresentationImage; vtkGenericRenderWindowInteractor interactor = GetInteractor(selectedImage); if (interactor == null) { return; } interactor.LeftButtonReleaseEvent(); }
public override bool Stop(IMouseInformation mouseInformation) { base.Stop(mouseInformation); IPresentationImage selectedImage = this.Context.Viewer.SelectedPresentationImage; vtkGenericRenderWindowInteractor interactor = GetInteractor(selectedImage); if (interactor == null) { return(false); } interactor.SetEventPositionFlipY(mouseInformation.Location.X, mouseInformation.Location.Y); interactor.LeftButtonReleaseEvent(); return(false); }