Move vtkCommand::WindowLevelEvent from before windowlevel to after windowlevel.
This commit is contained in:
@@ -408,10 +408,6 @@ void ActorDraggableInteractorStyle::WindowLevel() {
|
|||||||
this->WindowLevelCurrentPosition[0] = rwi->GetEventPosition()[0];
|
this->WindowLevelCurrentPosition[0] = rwi->GetEventPosition()[0];
|
||||||
this->WindowLevelCurrentPosition[1] = rwi->GetEventPosition()[1];
|
this->WindowLevelCurrentPosition[1] = rwi->GetEventPosition()[1];
|
||||||
|
|
||||||
if (this->HandleObservers &&
|
|
||||||
this->HasObserver(vtkCommand::WindowLevelEvent)) {
|
|
||||||
this->InvokeEvent(vtkCommand::WindowLevelEvent, this);
|
|
||||||
}
|
|
||||||
if (this->CurrentImageProperty) {
|
if (this->CurrentImageProperty) {
|
||||||
int *size = this->CurrentRenderer->GetSize();
|
int *size = this->CurrentRenderer->GetSize();
|
||||||
|
|
||||||
@@ -460,6 +456,10 @@ void ActorDraggableInteractorStyle::WindowLevel() {
|
|||||||
this->CurrentImageProperty->SetColorLevel(newLevel);
|
this->CurrentImageProperty->SetColorLevel(newLevel);
|
||||||
|
|
||||||
this->Interactor->Render();
|
this->Interactor->Render();
|
||||||
|
if (this->HandleObservers &&
|
||||||
|
this->HasObserver(vtkCommand::WindowLevelEvent)) {
|
||||||
|
this->InvokeEvent(vtkCommand::WindowLevelEvent, this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user