[vtkusers] Issues with picking in VTK Java on Mac OS X

Sebastien Jourdain sebastien.jourdain at kitware.com
Mon Feb 6 18:46:58 EST 2017


You can look at my commit (b6df993770cfcd9a69a48a2730415a992d698c5b), since
it was handling some retina stuff with Java. That could help you to figure
out which API from Java I used to fixe that issue at some point.

I still have to trigger a build on my mac to see what happen.

Seb

On Mon, Feb 6, 2017 at 3:10 PM, Kevin Milner <kmilner at usc.edu> wrote:

> I got my hands on an older MacBook Pro (non-retina, 13-inch, early 2011)
> running OSX 10.9.5 Mavericks. I ran my code with the same VTK libraries
> compiled from git/master and Java version (1.8u121). On this older MacBook,
> picking works as expected. Both bugs in my original e-mail are not present
> on this older, non-Retina Mac.
>
> Any ideas on how to get this working on new Macs? Or where in the code I
> can start digging? I haven't dug into the VTK source yet and my C is rusty
> but I'm willing to give it a go.
>
> In summary:
> Old, non retina mac:
>     * vtkJoglPanelComponent.getRenderWindowInteractor().GetEventPosition()
> is correct
>     * picking with vtkCellPicker.Pick(x, y, 0,
> vtkJoglPanelComponent.getRenderer()) works
> Newer, retina macs:
>     * vtkJoglPanelComponent.getRenderWindowInteractor().GetEventPosition()
> gives incorrect y value, though I can determine correct y value from window
> height and Java MouseEvent
>     * picking with vtkCellPicker.Pick(x, y, 0,
> vtkJoglPanelComponent.getRenderer()) doesn't work, thinks that you
> clicked somewhere else
>
> Thanks much,
> Kevin
>
>
> On 02/03/2017 04:35 PM, Sean McBride wrote:
>
>> On Fri, 3 Feb 2017 15:02:36 -0800, Kevin Milner said:
>>
>> I'm testing on a MacBook Pro (Retina, 13-inch, Early 2013) with OSX
>>> Yosemite 10.10.5, but have experienced the same behavior on other Macs.
>>>
>> Have you tried both Retina and non-Retina Macs?  Does it occur on both?
>>
>> Cheers,
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170206/466c9946/attachment.html>


More information about the vtkusers mailing list