-
-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(reslicecursorwidget): fix camera reset on rotation after a camera…
… translation When the user translates a camera (shift+left drag), and then rotate the reslice cursor widget in another view, the camera was reset. This is because the focal point offsets were not "stored" after the camera translation. The rotation was therefore resetting the camera translation. A solution would have been to observe the interactor style each time the camera is manipulated. Instead, we prefer to save the focal point offsets before any reslice cursor widget interaction happens, namely when startInteraction is triggered. This makes computeFocalPointOffset parameter in the reslice cursor widget interactionEvent obsolete. It has therefore been removed along with the associated canUpdateFocalPoint. This is not the behavior's responsibility to tell the event consumers what they must do. BREAKING CHANGE: ResliceCursorWidget.interactionEvent has been modified
- Loading branch information
Showing
4 changed files
with
39 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import vtkAbstractWidget from "../../Core/AbstractWidget"; | ||
|
||
export default interface vtkResliceCursorWidgetDefaultInstance extends vtkAbstractWidget { | ||
invokeInternalInteractionEvent: () => void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters