[vtkusers] Fwd: Constraint rotation 3D scene

Bertrand de Boisdeffre bertrand.boisdeffre at gmail.com
Tue Aug 17 15:21:54 EDT 2010


---------- Forwarded message ----------
From: Bertrand de Boisdeffre <bertrand.boisdeffre at gmail.com>
Date: 2010/8/17
Subject: Re: [vtkusers] Constraint rotation 3D scene
To: Bertrand De Boisdeffre <bertranddeboisdeffre at yahoo.fr>


Finally, I decided to make my own interactorStyle with a subclass of
"VtkInteractorStyle". I catch mouse events, call my own method to generate
the camera motion.  Rotations are limited about 2 axes what i chose. If
anyone is interested in...

2010/8/10 Bertrand De Boisdeffre <bertranddeboisdeffre at yahoo.fr>

> Hi,
> Here my issue:
>
> I would like to know if it is possible to constraint rotation in a 3D
> scene. For example, rotate only around y-axis and z-axis in a "simple way"
> without keyboard using ( it's for a touch-screen). Actually, I suppose that
> it could be done by 1 way :
>
> handle interactor events (like MouseMoveEvt and LeftButtonpressEvt) and
> then do a "good camera positionning " based of the mouse movement. But i
> think it's a little bit complicated.
>
> Best regards,
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>


-- 
Bertrand de Boisdeffre
Etudiant 2A  SICOM Phelma Grenoble-INP




-- 
Bertrand de Boisdeffre
Etudiant 2A  SICOM Phelma Grenoble-INP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100817/41b18d22/attachment.htm>


More information about the vtkusers mailing list