<html><head><meta http-equiv='content-type' content='text/html;'><style type='text/css'>
<!--
body      {font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size:10pt; color:#000000; text-decoration:none;}
td        {font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size:10pt; color:#000000; text-decoration:none;}
A:link    {font-size:10pt; color:#4393b3; text-decoration:none;}
A:visited {font-size:10pt; color:#4393b3; text-decoration:none;}
A:hover   {font-size:10pt; color:#FF0000; text-decoration:underline;}
.INPUT    {color:#000000;background-color:#ffffff;border:2 solid #4393b3}
.head     {color:#ffffff}
-->
</style></head><!-- tms messages uid 086485001000215236 gogo.com.br --><!-- gogo.com.br tmshead --> <br>
Hi, Ahmet! <br>
<br>
I will try to light some points to you: <br>
<br>
1. You can verify which actor (and dataset) has been picked. Then, you can decide about the point location. <br>
<br>
2. I think you cannot do it with the point id. Each glyph and your polydata will have the pointid 1, for example, and these points will be the same only if the set of Points is the same. But I am not sure how the Source Objects work. <br>
<br>
3. The glyphs only can be picked if its actor have the pickable mode set (actor->SetPickable). <br>
<br>
Do you want that the glyphs can be picked?? <br>
<br>
You also can set the glyph actor pickable to off. This way, all the point ids you get will be from the polydata. Then, you can maintain a list of the pointids that has glyphs, and compare... <br>
<br>
Sorry for my english too, <br>
<br>
Tedy Marcos Colombini <br>
University of Sao Paulo - Brazil <br>
<br>
<!-- gogo.com.br tmstail --><br><br><p align=right><br><br><br><br><img src=http://gogo.com.br/message/images/logo.jpg border=0><a href=http://gogo.com.br target=_blank>e-communication ... gogo.com.br </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
  <!-- fw function -->
  <br><br>
  <BLOCKQUOTE dir=ltr style='PADDING-RIGHT: 0px; PADDING-LEFT: 15px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px'>
  ---------------- Mensagem anterior ----------------<br>
  <b>From:</b> <a href=mailto:AhmetTokalak&lt;tokalak@lycos.de&gt;>AhmetTokalak&lt;tokalak@lycos.de&gt;</a><br>
        <b>Subject:</b> [vtkusers] Point Picking / Userinteraction<br><br>
  <br>
<br>
Hi,<br>
<br>
I am using vtk3.2-Java-Bindings under Linux.<br>
<br>
I have defined a PolyData-Set and at each point i inserted a<br>
3DGlyph (using vtkProgrammabelGlyphFilter).<br>
I have inherited from vtkPanel and overwritten the<br>
mousePressed() method. It looks like this:<br>
<br>
 public void mousePressed(MouseEvent e)<br>
 {<br>
 super.mousePressed(e);<br>
if(e.getModifiers()==InputEvent.BUTTON3_MASK)<br>
 {<br>
<br>
 vtkPointPicker picker = new vtkPointPicker();<br>
 picker.Pick(new<br>
Integer(e.getX()).doubleValue(), new<br>
Integer(e.getY()).doubleValue(), 0.0, this.ren);<br>
 int pickedPointId = picker.GetPointId();<br>
...<br>
<br>
My problem is the following:<br>
<br>
How can i know if the the user clicked on a point defined by<br>
my PolyData-Set or if he clicked on an object inserted at a<br>
point of my PolyData-Set. Can i do this using the returned<br>
pointid, if yes how ?<br>
<br>
How can i get the id's of any point defined by PolyData or<br>
of the inserted objects ?<br>
<br>
Please help me<br>
<br>
Sorry for my poor english. ;-)<br>
<br>
-------------<br>
Ahmet Tokalak<br>
University Bielefeld<br>
Technical Faculty<br>
Computer Science<br>
NeuroInformatics Group<br>
Germany<P>______________________________________________________<BR>Email gratis - Lycos - <A HREF=http://www.lycos.de>http://www.lycos.de</A><P><br>
<hr size=1 noshade></BLOCKQUOTE><!-- fw function --><img src=http://gogo.com.br/mail/read_ok.neo?id=tedyvtk&num=5&access= width=1 height=1 top=1></body></html>