User:Waldyrious: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(correct markup)
 
(9 intermediate revisions by 2 users not shown)
Line 5: Line 5:
== Todo ==
== Todo ==
* Fix [[Special:DoubleRedirects]]
* Fix [[Special:DoubleRedirects]]
* Figure out why [[File:VTK Examples Baseline GeometricObjects TestGeometricObjectsDemo.png]] was reuploaded
* 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]]
 
== 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 {{class|vtkInteractorStyleImage}} or {{class|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.

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

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.