On Thu, Apr 26, 2012 at 18:24, Cees-Willem <
ceesw...@gmail.com> wrote:
> I'm looking for a way to have a second input device to work with
> Slice3DViewer, in conjunction with a general mouse. For the ones that
> followed the DataVis course this year, yes, this has something to do
> with our Rotation server.
Some tips that will help:
* For "rotating the scene", manipulating the active vtkCamera instance
is indeed the correct approach.
* In devide/snippets there are a number of python introspection
examples demonstrating camera manipulation:
linked_slice3dVWR_cameras.py, rotateCameraSaveFrames.py and, perhaps
most interesting in your case, slice3dVWR_lookmarks.py
* The camera has a number of matrix functions which should be
interesting in your case.
* Also interesting is devide/modules/viewers/SkeletonAUIViewer.py at
around _handler_button3() and _handler_timer(). This also rotates the
camera as part of an idle loop. This could be mashed with the
EmphysemaViewer to give you a data slicer + idle-loop rotator
tracking.
Good luck!
Charl