[vtkusers] a silly question

de Boer Ingo I.deBoer at polytec.de
Mon Feb 23 03:35:09 EST 2004


Hi,

> I was just wondering if I could turn off the interactor keys
> from the keyboard like, i dont want to render the model in wireframe,
> is there any way i can disable the 'w' key alone and keep all the rest working?

write a class based on vtkInteractorStyle. Overwrite
the OnChar() function. There you return when the keycode
is w or W else you pass it to vtkInteractorStyle::OnChar()

greets
  Ingo

---
Dr.-Ing. Ingo H. de Boer

Polytec GmbH
Polytec-Platz 1-7, 76337 Waldbronn, Germany
phone: ++49 7243 604 106
fax  : ++49 7243 604 255



More information about the vtkusers mailing list