could you send me the code that add observer?<br><br><div><span class="gmail_quote">2005/10/5, Mark Wyszomierski <<a href="mailto:markww@gmail.com">markww@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>I created a vtkPointPicker picker, assigned that as the picker of my interactor.</div>
<div>Then I created an observe event, which was bound to left button press events</div>
<div>on my interactor. The pseudocode I posted in the previous email is what I</div>
<div>do when the L button observer is called. Then all the information will be</div>
<div>populated for you.</div><span class="sg">
<div> </div>
<div>Mark<br><br> </div></span><div><span class="e" id="q_106c22b87d03ea11_2">
<div><span class="gmail_quote">On 10/5/05, <b class="gmail_sendername">Diego Parada</b> <<a href="mailto:icebishop@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">icebishop@gmail.com</a>
> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Hi,<br><br>I'm trying the same thing, but my question are when i can capture the coordinate
<br><br>
<div><span class="gmail_quote">2005/10/5, Mark Wyszomierski <<a href="mailto:markww@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">markww@gmail.com</a>>:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><span>
<div>You can fire a pick event when the user clicks the mouse:</div>
<div> </div>
<div> Picker->Pick(eventpos[0], eventpos[1], 0, renderer);</div>
<div> </div>
<div>Then you can get the mapped position:</div>
<div> </div>
<div> Picker->GetMapperPosition(...);</div>
<div> </div>
<div>Then the final x,y locs of the original image I get by:</div>
<div> </div>
<div> originalX = (int)(ptMapped[0] / pixel_spacing_x + 0.5);</div>
<div> // same for y.</div>
<div> </div>
<div>This always has given me the correct 'real' location.</div>
<div> </div>
<div>Mark<br><br> </div>
<div>
<div><span><span class="gmail_quote">On 10/5/05, <b class="gmail_sendername">Renaud Isabelle</b> <<a href="mailto:renauisa@yahoo.fr" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> renauisa@yahoo.fr
</a>> wrote:</span> </span></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<div><span>
<div>Hi all,</div>
<div> </div>
<div>I have read an initial 3D image from a file with
itkImageFileReader and displayed with VTK
through vtkImageData/vtkImageActor.</div>
<div> </div>
<div>Now, since a known world position in 3D x,y,z, I would like to retrieve the pixel value at this point of my image. </div>
<div> </div>
<div>This seems to be a complex problem, because I don't want the
pixel data that is displayed at this position but the pixel data of the
raw image, that is no rescaled instead.</div>
<div> </div>
<div>Is there some example where such a thing is done? Or any function? </div>
<div> </div>
<div>Thanks, </div><span>
<div> </div>
<div>Isabelle</div></span><span>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<p></p>
<hr size="1">
<b><font color="#ff0000">Appel audio GRATUIT</font> partout dans le monde</b> avec le nouveau Yahoo! Messenger<br><a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Téléchargez le ici !</a>
<p></p>
<p></p></span><br></span></div>_______________________________________________<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" onclick="return top.js.OpenExtLink(window,event,this)">
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" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br><br></blockquote></div><br><br></span></div>_______________________________________________<br>Insight-users mailing list<br><a href="mailto:Insight-users@itk.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Insight-users@itk.org</a><br><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.itk.org/mailman/listinfo/insight-users</a><br><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Diego Armando Parada Cuervo<br>Estudiante de Ingeniería de Sistemas y Computación<br>Universidad Pedagógica y Tecnológica de Colombia </blockquote></div><br>
</span></div></blockquote></div><br><br clear="all"><br>-- <br>Diego Armando Parada Cuervo<br>Estudiante de Ingeniería de Sistemas y Computación<br>Universidad Pedagógica y Tecnológica de Colombia