I 'd do it with some button and shown in a label once I got the code to my qtvtk project. I have one more question and these 'd be on how does it measure the area, the dimensions are in pixels or mm2 maybe?? how can I know that and maybe even set that?
<div class="gmail_extra"><br><br><div class="gmail_quote">2012/12/3 David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Dec 3, 2012 at 4:15 PM, Rodrigo Lovera &lt;<a href="mailto:lobo.theslayer@gmail.com">lobo.theslayer@gmail.com</a>&gt; wrote:<br>
&gt; I see area changes as I modified the form of the contour and close the<br>
&gt; render window, correct me if there&#39;s something wrong please and if you give<br>
&gt; me some guide on that  GetContourRepresentationAsPolyData() if there&#39;s a way<br>
&gt; to use it in a more direct way.<br>
&gt;<br>
&gt; Thx for your help<br>
&gt;<br>
&gt; Regards, Rodrigo<br>
<br>
</div>You need to handle an event of the widget to output the answer<br>
interactive. It almost never makes sense to place code after the<br>
interactor-&gt;Start(); call.<br>
<br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkContourWidget.html#details" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkContourWidget.html#details</a><br>
<br>
Perhaps something like this will get you started:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/SphereWidgetEvents" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/SphereWidgetEvents</a><br>
<span class="HOEnZb"><font color="#888888"><br>
David<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><b><font face="&#39;comic sans ms&#39;, sans-serif" color="#000066">Rodrigo aka WarHearT</font></b><br>
</div>