From KitwarePublicJump 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.
- Fix Special:DoubleRedirects
- Add highlights (
highlight="lineNum"in the <source> blocks) to the key lines in the code samples (example). Use the
attribute to show line numbers while working on this)
- Info on how the examples are organized: VTK/Examples/Instructions/ForAdministrators
- 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, eitheror (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.