<div dir="ltr">It was just to demonstrate what&#39;s my need.<br>Anyway,<br>I&#39;m still interested in the<b> pop up window</b>,<br>or <b>any GUI </b>that will present the user the value on the vtkPoly.<br><br><div class="gmail_quote">
On Thu, Feb 23, 2012 at 5:23 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Thu, Feb 23, 2012 at 2:29 AM, Hila Hiler &lt;<a href="mailto:hilahiler@gmail.com">hilahiler@gmail.com</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I have a structure which contains:<br>
&gt;<br>
&gt; class myClass<br>
&gt;   {<br>
&gt;      vtkPolyData*    poly;<br>
&gt;      vtkFloatArray*  values;<br>
&gt;    }<br>
&gt;<br>
&gt; while on every location on the poly, a corresponding value is correlated.<br>
&gt;<br>
&gt; I was wondering: how can I present the values on the poly?<br>
&gt; I&#39;m using QT 4.7- maybe there is a way to add a pop up window (or something<br>
&gt; like that) which will show the value while the cursor stands on the poly?<br>
&gt;<br>
&gt; Any information would be very appreciated.<br>
&gt;<br>
&gt; Best,<br>
&gt; Hila<br>
<br>
</div></div>Do you know that you can add the float array directly to the polydata<br>
and then not have a need for this struct at all?<br>
<br>
polydata-&gt;GetPointData()-&gt;AddArray(yourFloatArray);<br>
?<br>
<span class="HOEnZb"><font color="#888888"><br>
David<br>
</font></span></blockquote></div><br></div>