[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtkusers
Subject:    [vtkusers] Point picking: how to handle mouse (keyboard?) events??
From:       Jonathan Bailleul <Jonathan.Bailleul () greyc ! ismra ! fr>
Date:       2003-03-31 18:36:32
Message-ID: 3E888AB0.9153CB83 () greyc ! ismra ! fr
[Download RAW message or body]

Dear all, 

Though this question should be trivial, I did not figured out how to
solve it through the online doc or thanks to the book that was just
stolen from the library ;(

I would like to find out how to execute a method when a special mouse
event occurs (left button pressed). It seems like i found out how to
retrieve mouse position, already. I would also get content with a
keyboard event, even if I'd prefer a mouse one.

The other problem is I can't figure out how to mix mouse event handling
with standard interaction. Here
(http://www.greyc.ismra.fr/~bailleul/These/picker.cc) is a simple
program displaying a mesh that can be moved interactively, with
interaction lauched via: 


	...
  // render an image (lights and cameras are created automatically)
  renWin->Render();

  // begin mouse interaction
  iren->Start();

  return EXIT_SUCCESS;
}

How should I modify it for my purpose?
The final aim is to retrieve the position of a mesh point selected by
the mouse (not the current point coordinates, but the point in vtk
file).


In advance, thank you for your help.


-- 
-----------------------------------
Jonathan BAILLEUL, Doctorant
GREYC Image - Université de Caen 
http://www.greyc.ismra.fr/~bailleul

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic