public override void Cancel() { IPresentationImage selectedImage = this.Context.Viewer.SelectedPresentationImage; vtkGenericRenderWindowInteractor interactor = GetInteractor(selectedImage); if (interactor == null) { return; } interactor.RightButtonReleaseEvent(); }
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.RightButtonReleaseEvent(); return(false); }