Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify interactor style leveraging base class implementation #138

Merged
merged 2 commits into from
Dec 21, 2023

Conversation

jcfr
Copy link
Contributor

@jcfr jcfr commented Dec 21, 2023

Removes functions OnSelect3D, OnMove3D, OnViewerMovement3D, StartAction,
EndAction, Movement3D and SetInteractor functions that are available
in the base class.

Related to:

jcfr added 2 commits December 21, 2023 16:59
In preparation for the removal of duplicated functions in a subsequent commit,
this update explicitly copies over the duplicated content to clarify the scope
of the forthcoming changes.

Additionally, it eliminates the now-obsolete `StartDolly3D` and `EndDolly3D`
functions. These functions became outdated with the refactoring in
Kitware/VTK@7a2c71e48a (VRInteractorStyle code refactoring), where they were
replaced by `Movement3D`, `StartMovement3D`, and `EndMovement3D`. The `Movement3D`
function now invokes `Dolly3D` when the current state is configured as `VTKIS_DOLLY`.

Furthermore, this commit removes the use of the `GetMappedAction` function from
`OnSelect3D()`. Since the "controller action" (e.g., `vtkEventDataAction::Press`)
can be obtained directly from the event, the base class implementation suffices.
This allows the retrieval of the "mapper action" from the `InputMap` without
using `GetMappedAction`.
Removes functions `OnSelect3D`, `OnMove3D`, `OnViewerMovement3D`, `StartAction`,
`EndAction`, `Movement3D` and `SetInteractor` functions that are available
in the base class.
@jcfr jcfr merged commit 881f850 into KitwareMedical:master Dec 21, 2023
@jcfr jcfr deleted the cleanup-interactor-style branch December 21, 2023 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant