[vtkusers] Getting started with Java in VTK

Jonathan Morra jonmorra at gmail.com
Thu Oct 7 22:45:32 EDT 2010


Thanks for the help, I'll have a look at those examples.

On Thu, Oct 7, 2010 at 7:37 PM, egk865 at yahoo.com <egk865 at yahoo.com> wrote:

> You can get mouse information by adding a mouse listener on the vtkCanvas
> to listen to mouse events. I added an example on the wiki showing how to
> do this (see the Swing Integration section there). It shows in a JLabel in
> the status bar the point the mouse is hovering over using a mouse listener
> and a vtkCellPicker.
>
> Thanks,
> Eli
>
>
> > OK, so maybe my last email wasn't
> > specific enough, so here's a very specific
> > question.  I have a vtkCanvas onto which I put a
> > vtkImageViewer2.  I wish to
> > have crosshairs show on the image where the user
> > clicks.  I also wish to get
> > the point clicked information during the mouse event so
> > that I can display
> > that to the user in a JLabel.  Any ideas?
> >
> > Thanks
>
>
>
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101007/a0e80934/attachment.htm>


More information about the vtkusers mailing list