<div dir="ltr">It was just to demonstrate what's my need.<br>Anyway,<br>I'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"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></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 <<a href="mailto:hilahiler@gmail.com">hilahiler@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I have a structure which contains:<br>
><br>
> class myClass<br>
> {<br>
> vtkPolyData* poly;<br>
> vtkFloatArray* values;<br>
> }<br>
><br>
> while on every location on the poly, a corresponding value is correlated.<br>
><br>
> I was wondering: how can I present the values on the poly?<br>
> I'm using QT 4.7- maybe there is a way to add a pop up window (or something<br>
> like that) which will show the value while the cursor stands on the poly?<br>
><br>
> Any information would be very appreciated.<br>
><br>
> Best,<br>
> 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->GetPointData()->AddArray(yourFloatArray);<br>
?<br>
<span class="HOEnZb"><font color="#888888"><br>
David<br>
</font></span></blockquote></div><br></div>