[vtkusers] Translation
Gerrick Bivins
gbivins at objectreservoir.com
Sat Oct 11 10:33:10 EDT 2008
Hi Prabhat,
I recently had to do this exact thing and found the easiest thing to do was
use a vtkBoxWidget for each of the actors.
http://www.vtk.org/doc/release/5.2/html/a00127.html
If you want to only translate, make sure to set scale and rotation to off
for the boxwidgets.
Gerrick
On 10/11/08 5:48 AM, "prabhat246" <prabhat246 at yahoo.com> wrote:
>
> Hi all,
>
> I get two different polydatas from two different algorithms.
> For both I create one vtkPolyDataMapper and vtkActor each.
>
> now I want to allow user to be able to drag and translate one of the object
> with mouse,
> also when I drag with pressing Shift key... everything gets moved.
>
> Although I've set
>
> polyActor1->SetDragable(true);
> polyActor2->SetDragable(false);
>
> How can I do this ??
> Also Can I write Opengl code somewhere, if I want to?? If yes then how???
>
>
> Thanks a lot.
> Regards
> Prabhat Kumar Gupta
More information about the vtkusers
mailing list