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"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></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 <<a href="mailto:lobo.theslayer@gmail.com">lobo.theslayer@gmail.com</a>> wrote:<br>
> I see area changes as I modified the form of the contour and close the<br>
> render window, correct me if there's something wrong please and if you give<br>
> me some guide on that GetContourRepresentationAsPolyData() if there's a way<br>
> to use it in a more direct way.<br>
><br>
> Thx for your help<br>
><br>
> 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->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="'comic sans ms', sans-serif" color="#000066">Rodrigo aka WarHearT</font></b><br>
</div>