Hi,
I was trying to configure my own controller interactions for Windows Mixed Reality when I came across vtkVitualRealityViewInteractorstyle (https://github.com/KitwareMedical/SlicerVirtualReality/blob/master/VirtualReality/MRML/vtkVirtualRealityViewInteractorStyle.cxx). However I couldn’t seem to access some of the methods (eg. MapInputToAction() couldn’t be used). I used slicer.vtkVirtualRealityViewInteractorStyle() in slicer to try and access those functionalities. What can I do to call methods within this class? Or is there another way to configure virtual reality controllers?
Running on Nightly 4.11.0!
Thank you.
Are you trying to access these from Python or C++?
You can configure lots of quite complex interactions by setting up a scene (and optionally further customizing by Python code snippets). You can enable/disable which models can be picked, you can group multiple models under one transform and then they are moving together, you can enable exposing of controller poses as transform nodes and you can use that to move/orient slices (using Volume reslice driver module in SlicerIGT extension), you can observe the transforms and compute derived transforms, etc.
Interaction with markups is still a work in progress. If you are familiar with VTK programming in C++ then we would very welcome your contribution.