BUG: Add missing vtkVirtualRealityViewInteractorStyle::SetupActions#105
Conversation
|
I tried to build this with the latest Slicer but failed with something like SetupActions method with override specifier did not override any base class functions. I guess I'd need an even newer VTK right? |
|
Building again the Slicer/VTK fork currently associated with Slicer master is expected to work (I tested the build on Linux). I will test with visual studio and report back. |
|
The override keyword should be removed. |
|
Removed the keyword, build succeeds. The only difference I noticed in functioning is that I'm getting an endless stream of this error: |
ab4e0a3 to
1a40155
Compare
This ensures the function `vtkOpenVRRenderWindowInteractor::AddAction` originally introduced in b7f02e622 (update openvr to action based input model) is called. Considering that: * (1) the class `vtkVirtualRealityViewInteractorStyle` derives from `vtkMRMLViewInteractorStyle` instead of `vtkOpenVRInteractorStyle` (itself deriving from `vtkVRInteractorStyle`) * and (2) the function `SetupActions` is defined and called from `vtkVRInteractorStyle::SetInteractor()` this commit copies the function `SetupActions` to `vtkVirtualRealityViewInteractorStyle` and ensures it is called. Co-authored-by: Lucas Gandel <lucas.gandel@kitware.com>
1a40155 to
8a6a522
Compare
This means that the call to SlicerVirtualReality/VirtualReality/Widgets/qMRMLVirtualRealityView.cxx Lines 578 to 592 in e504845 @sankhesh @LucasGandel Could you review the commit I added to the Footnotes |
|
To follow up, the issue with retrieving the OpenVR pose should be fixed in Slicer/Slicer#6779 |
This ensures the function
vtkOpenVRRenderWindowInteractor::AddActionoriginally introduced in b7f02e622 (update openvr to action based input model) is called.Considering that:
(1) the class
vtkVirtualRealityViewInteractorStylederives fromvtkMRMLViewInteractorStyleinstead ofvtkOpenVRInteractorStyle(itself deriving fromvtkVRInteractorStyle)and (2) the function
SetupActionsis defined and called fromvtkVRInteractorStyle::SetInteractor()this commit copies the function
SetupActionstovtkVirtualRealityViewInteractorStyleand ensures it is called.