[vtkusers] Is there a way to disable the keyboard shortcuts related to VtkRenderInteractorWindow
bill.lorensen at gmail.com
Fri Aug 11 10:18:33 EDT 2017
Look at this example:
It subclasses and interactor to handle key press events.
At the end of the class it
// Forward events
It you don't forward the event, you will be ignoring key presses...
On Fri, Aug 11, 2017 at 9:38 AM, Jay <jayavardhanravi at outlook.com> wrote:
> I am trying to disable the keyboard shortcuts that come by default with the
> vtkRenderWindowInteractor like disable 'q','w','r','t','j'... for various
> events. I intent only to disable the keyboard shortcuts but not to disable
> the mouse interaction.
> I tried using /interactor.Disable();/ but this disables the mouse
> I also tried to remap the keys using the callback event but I was looking
> for much simpler ways, if they exists
> Sample pseudo code that I wrote is:
> /tSource = vtksphersource::New();
> tPolyMapper = vtkPolyDataMapper::New();
> tActor = vtkActor::New();
> ren = vtkRenderer::New();
> window = vtkRenderWindow::New();
> interactor = vtkRenderWindownteractor::New();
> Any suggestion or ideas would be helpful.
> View this message in context: http://vtk.1045678.n5.nabble.com/Is-there-a-way-to-disable-the-keyboard-shortcuts-related-to-VtkRenderInteractorWindow-tp5744374.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> Powered by www.kitware.com
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
Unpaid intern in BillsBasement at noware dot com
More information about the vtkusers