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

Add more keypress events to VTK visualization module #46

Closed
orbingol opened this issue Mar 12, 2019 · 1 comment
Closed

Add more keypress events to VTK visualization module #46

orbingol opened this issue Mar 12, 2019 · 1 comment
Labels
enhancement New feature request or enhancement

Comments

@orbingol
Copy link
Owner

orbingol commented Mar 12, 2019

The following list is available directly from the default vtkInteractorStyle used:

  • e: exit the application
  • p: pick object (hover the mouse and then press to pick)
  • f: fly to point (click somewhere in the window and press to fly)
  • r: reset the camera
  • s and w: switch between solid and wireframe modes

It would be nice to add option to change visibility of some other elements, such as control points, objects, etc.

@orbingol orbingol added enhancement New feature request or enhancement to do labels Mar 12, 2019
@orbingol
Copy link
Owner Author

Just updated the original issue with the list of available vtkInteractorStyle keypress events. I have added the following custom keypress events:

  • b: change background color
  • l: change color of the picked object
  • d: print debug information (of picked object, point, etc.)
  • h: change object visibility
  • n: reset object visibility
  • arrow keys: pan the model

They are documented here: https://nurbs-python.readthedocs.io/en/devmaster/module_vis_vtk.html#geomdl.visualization.VisVTK.VisConfig.keypress_callback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant