User:Waldyrious: Difference between revisions
Waldyrious (talk | contribs) (more info about interactor styles) |
Waldyrious (talk | contribs) (correct markup) |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
== Todo == | == Todo == | ||
* Fix [[Special:DoubleRedirects]] | * Fix [[Special:DoubleRedirects]] | ||
* Add highlights (<code>highlight="lineNum"</code> in the <nowiki><source></nowiki> blocks) to the key lines in the [[VTK/Examples/Cxx|code samples]] ([[wikipedia:mw:Extension:SyntaxHighlight GeSHi#highlight|example]]). Use the | * Add highlights (<code>highlight="lineNum"</code> in the <nowiki><source></nowiki> blocks) to the key lines in the [[VTK/Examples/Cxx|code samples]] ([[wikipedia:mw:Extension:SyntaxHighlight GeSHi#highlight|example]]). Use the <code>line</code> attribute to show line numbers while working on this) | ||
* Info on how the examples are organized: [[VTK/Examples/Instructions/ForAdministrators]] | * Info on how the examples are organized: [[VTK/Examples/Instructions/ForAdministrators]] | ||
Latest revision as of 16:29, 29 June 2016
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
- Fix Special:DoubleRedirects
- Add highlights (
highlight="lineNum"
in the <source> blocks) to the key lines in the code samples (example). Use theline
attribute to show line numbers while working on this) - Info on how the examples are organized: VTK/Examples/Instructions/ForAdministrators
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.