[vtkusers] Problems with massProperties at getting area from ContourWidget

Rodrigo Lovera lobo.theslayer at gmail.com
Mon Dec 3 16:40:36 EST 2012


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?


2012/12/3 David Doria <daviddoria at gmail.com>

> On Mon, Dec 3, 2012 at 4:15 PM, Rodrigo Lovera <lobo.theslayer at gmail.com>
> wrote:
> > I see area changes as I modified the form of the contour and close the
> > render window, correct me if there's something wrong please and if you
> give
> > me some guide on that  GetContourRepresentationAsPolyData() if there's a
> way
> > to use it in a more direct way.
> >
> > Thx for your help
> >
> > Regards, Rodrigo
>
> You need to handle an event of the widget to output the answer
> interactive. It almost never makes sense to place code after the
> interactor->Start(); call.
>
> http://www.vtk.org/doc/nightly/html/classvtkContourWidget.html#details
>
> Perhaps something like this will get you started:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/SphereWidgetEvents
>
> David
>



-- 
*Rodrigo aka WarHearT*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121203/7e9bf06e/attachment.htm>


More information about the vtkusers mailing list