Re: Interaction with Slice3DViewer

24 views
Skip to first unread message

Charl Botha

unread,
Apr 27, 2012, 4:02:36 AM4/27/12
to in4...@googlegroups.com, devide...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages