From c36e361f66bd8d337dd59bbcdead8195830c3c99 Mon Sep 17 00:00:00 2001 From: Krad Date: Sat, 2 Apr 2022 16:01:49 +0800 Subject: [PATCH] Add setPatientDetail event --- src/src/measure/ActorDraggableInteractorStyle.cpp | 2 ++ src/src/measure/ActorDraggableInteractorStyle.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/src/measure/ActorDraggableInteractorStyle.cpp b/src/src/measure/ActorDraggableInteractorStyle.cpp index 41893b4..628c568 100644 --- a/src/src/measure/ActorDraggableInteractorStyle.cpp +++ b/src/src/measure/ActorDraggableInteractorStyle.cpp @@ -323,6 +323,7 @@ void ActorDraggableInteractorStyle::WindowLevel() void ActorDraggableInteractorStyle::OnRightButtonDown() { + this->InvokeEvent(AfterViewerClicked); int x = this->Interactor->GetEventPosition()[0]; int y = this->Interactor->GetEventPosition()[1]; @@ -338,6 +339,7 @@ void ActorDraggableInteractorStyle::OnRightButtonDown() } } void ActorDraggableInteractorStyle::OnLeftButtonDown() { + this->InvokeEvent(AfterViewerClicked); int x = this->Interactor->GetEventPosition()[0]; int y = this->Interactor->GetEventPosition()[1]; diff --git a/src/src/measure/ActorDraggableInteractorStyle.h b/src/src/measure/ActorDraggableInteractorStyle.h index 46bfc6f..6979d61 100644 --- a/src/src/measure/ActorDraggableInteractorStyle.h +++ b/src/src/measure/ActorDraggableInteractorStyle.h @@ -44,7 +44,8 @@ public: DeleteMeasureEvent, RightButtonClickEvent, ScalarOpacityEvent, - ScalarShiftEvent + ScalarShiftEvent, + AfterViewerClicked }; /**