[vtkusers] R: R: Pick actor

baliki2 at freemail.gr baliki2 at freemail.gr
Mon Oct 26 05:28:44 EDT 2009


I found the way by using the appropriate style. Thanks Samuele.

I have another problem. One of the actors is a vtkActorCollection. So when i try to move the object, only one actor (from the collection) is moved! So the object "breaks" into pieces(actors).
Any solutions?

> Actually, I understand your problem.
> But I can not solve it, I am sorry.
> 
> I hope that someone else will help you.
> 
> Good luck,
> Samuele
> 
> 
> ________________________________________
> Da: baliki2 at freemail.gr [baliki2 at freemail.gr]
> Inviato: venerd=EC 23 ottobre 2009 14.56
> A: Zampini Samuele
> Oggetto: Re:  R: [vtkusers] Pick actor
> 
> i use vtkRenderWindowInteractor iren =3D new vtkRenderWindowInteractor(); (=
> Java)
> It works ok. Keypress 'a' takes focus on objects. The problem is that i wan=
> t the style vtkInteractorStyleTrackballCamera. When i apply it vtkInteracto=
> rStyleTrackballCamera style =3D
>         new vtkInteractorStyleTrackballCamera();
>     iren.SetInteractorStyle(style);
> 
> the functionality with the keypress doeasn't work anymore.
> 
> 
> > Hi,
> >
> > I think the best way to do what you wanna do is something like:
> >
> > RenderWindowInteractor.SetInteractorStyle(vtk.vtkInteractorStyleTrackball=
> Ca=3D
> > mera())
> >
> > And you can act on the actor you are on, with the mouse.
> >
> > Hope this helps,
> >
> > Samuele
> > ________________________________________
> > Da: vtkusers-bounces at vtk.org [vtkusers-bounces at vtk.org] per conto di bali=
> ki=3D
> > 2 at freemail.gr [baliki2 at freemail.gr]
> > Inviato: venerd=3DEC 23 ottobre 2009 14.19
> > A: vtkusers at vtk.org
> > Oggetto: [vtkusers] Pick actor
> >
> > Hello,
> > i have two objects in my scene. I want to move (click and drag) the one o=
> n =3D
> > which i click with the mouse. I know i should use the Pick class. But i'd=
>  a=3D
> > ppreciate if someone could give me more detailed instructions-code lines.
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at http://www.kitware.com/openso=
> ur=3D
> > ce/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.or=
> g/=3D
> > Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 





More information about the vtkusers mailing list