User:Waldyrious

From KitwarePublic
Revision as of 21:54, 26 April 2016 by Waldyrious (talk | contribs) (more info about interactor styles)
Jump to navigationJump to search

I'm User:Waldir on Wikimedia wikis, having been an active editor since early 2005.

I live in Braga, Portugal and am currently a PhD student in Computer Generated Holography.

Todo

Notes

  • The default interactor style is "joystick camera", but the "trackball camera" style is more usable for experimentation. To use it:
   vtkSmartPointer<vtkInteractorStyleTrackballCamera> style =
     vtkSmartPointer<vtkInteractorStyleTrackballCamera>::New();
   interactor->SetInteractorStyle(style);

For 2D data, either vtkInteractorStyleImage or vtkParallelCoordinatesInteractorStyle (both subclasses of vtkInteractorStyleTrackballCamera) should work, but both have awkward default left-click event bindings, compared to their parent: left-click-drag should rotate around the view plane normal (or maybe pan would be even more intuitive), but in both cases this triggers "window level" (contrast, brightness) events. Ctrl needs to be pressed to activate the rotate function in both cases, but it should be the opposite. It shouldn't be hard to adapt one of them to accept custom flags to toggle more intuitive behavior. Or maybe change vtkInteractorStyleTrackballCamera to allow locking rotation to the view plane normal.