<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=iso-8859-1>
<META content="MSHTML 6.00.6000.16640" name=GENERATOR></HEAD>
<BODY id=MailContainerBody 
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" 
bgColor=#ffffff leftMargin=0 topMargin=0 CanvasTabStop="true" 
name="Compose message area">
<DIV><FONT face=Arial size=2>Actually i want to be able to pick some actors 
(polygons) that i am rendering with the brain volume so that i 
can&nbsp;calculate and&nbsp;display&nbsp;the surface area of the picked 
actor.</FONT></DIV>
<DIV><FONT face=Arial size=2>In the beginning i asked about finding the mouse 
position but this is not needed since i found out about the pick functions of 
VTK (i'm a newbie). Hope the links you gave me will help</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks, Polys</FONT></DIV>
<DIV><BR></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=julian.ibarz@gmail.com 
href="mailto:julian.ibarz@gmail.com">Julian Ibarz</A> </DIV>
<DIV><B>Sent:</B> Thursday, May 08, 2008 4:13 PM</DIV>
<DIV><B>To:</B> <A title=polys_poly@hotmail.com 
href="mailto:polys_poly@hotmail.com">polys_poly@hotmail.com</A> ; <A 
title=vtkusers@vtk.org href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> 
</DIV>
<DIV><B>Subject:</B> Re: [vtkusers] Ray interesection with volume - finding the 
mouse position</DIV></DIV></DIV>
<DIV><BR></DIV>I don't know what you want exactly but if you want to find the 
points of the volume or the actors picked by the mouse you have in the VTK 
nightly version :<BR><BR><A 
href="http://www.vtk.org/doc/nightly/html/classvtkPointPicker.html">http://www.vtk.org/doc/nightly/html/classvtkPointPicker.html</A><BR><A 
href="http://www.vtk.org/doc/nightly/html/classvtkPropPicker.html">http://www.vtk.org/doc/nightly/html/classvtkPropPicker.html</A><BR><BR>To 
get the mouse position :<BR><BR><A 
href="http://www.vtk.org/doc/nightly/html/classvtkRenderWindowInteractor.html">http://www.vtk.org/doc/nightly/html/classvtkRenderWindowInteractor.html</A><BR><BR>You 
are working with what programming language ? C++ ? Java ? other ? To get the 
mouse position it's change with the language. For example in java you create a 
vtkCanvas to draw the rendering and override the methode 
MouseMoveEvent(MouseEvent e) to get the new position of the mouse when it moves 
and get the position with e-&gt;x and e-&gt;y...<BR><BR>This answers your 
question ?<BR><BR>
<DIV class=gmail_quote>2008/5/8 &lt;<A 
href="mailto:polys_poly@hotmail.com">polys_poly@hotmail.com</A>&gt;:<BR>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
  <DIV style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" 
  name="Compose message area" bgcolor="#ffffff">
  <DIV>
  <DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Currently i am creating a volume of a DICOM 
  Dataset. The interactor i am using is <FONT 
  size=2>vtkInteractorStyleTrackballCamera. </FONT></FONT></DIV>
  <DIV><FONT face=Arial size=2><FONT size=2>What i want to do 
  is&nbsp;finding&nbsp;the mouse pointer location on the rendering window, and 
  then finding the ray that connects the position of the camera with the mouse 
  position so i can find the points of the volume or the actors that this ray 
  intersects.</FONT></FONT></DIV>
  <DIV><FONT face=Arial size=2><FONT size=2></FONT></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><FONT size=2>I would appreciate any help on this 
  subject.</FONT></FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
  <DIV><FONT face=Arial 
  size=2>Polys</FONT></DIV></DIV></DIV><BR>_______________________________________________<BR>This 
  is the private VTK discussion list.<BR>Please keep messages on-topic. Check 
  the FAQ at: <A href="http://www.vtk.org/Wiki/VTK_FAQ" 
  target=_blank>http://www.vtk.org/Wiki/VTK_FAQ</A><BR>Follow this link to 
  subscribe/unsubscribe:<BR><A 
  href="http://www.vtk.org/mailman/listinfo/vtkusers" 
  target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers</A><BR><BR></BLOCKQUOTE></DIV><BR><BR 
clear=all><BR>-- <BR>Julian Ibarz </BODY></HTML>