Re: [wxVTK] screen coordinates to world coordinates
Brought to you by:
malat
From: Mathieu M. <mat...@gm...> - 2006-08-09 01:34:11
|
Alright there are multiple things here: - VTK starts it's y at the bottom left of your screen so the EventPosition X,Y is different in VTK than what you get from usual toolkit like wx, Qt, GTK... That's is why you have function like vtkRenderWindowInteractor::SetEventPositionFlipY - there is something completely different from the vtkRenderWindowInteractor which allows you to convert a X,Y (VTK type) into a 3d world x,y,z position. but this is in vtkCoordinate. In both case IMHO this is related to VTK and not wxVTK. HTH Mathieu On 8/8/06, Andres Munarriz <mun...@gm...> wrote: > > Hi Mathieu, > > I'm using the interactor->GetLastEventPosition(&event_x, &event_y); metho= d. > event_x and event_y are both integers. > > Am I using the wrong method? > > > Regards and thank you, > Andr=E9s E. Mun=E1rriz Soto > > > > On 07/08/2006, at 4:56PM, Mathieu Malaterre wrote: > > On 8/7/06, Andres Munarriz <mun...@gm...> wrote: > Hi everyone, > > Has someone come across the need of converting screen "display" > corrdinates (ie. wxEvent ._x, ._y) to VTK world coordinates? I've > read about a get event method in the VTKRenderWindowInteractor but > wxVTKRenderWindowInteractor doesn't seem to support this method. If > someone can help it'll be greatly appreciated. > > wxVTKRenderWindowInteractor derives from vtkRenderWindowInteractor so > you should be able to achieve the exact same thing. Could indicate > which methods you are trying to use ? > > Thanks > Mathieu > --=20 Mathieu |