<div dir="ltr">Instead, I modified the existing example,<br><br><b><a href="http://www.vtk.org/Wiki/VTK/Examples/Widgets/vtkDistanceWidget#DistanceWidget.cxx">http://www.vtk.org/Wiki/VTK/Examples/Widgets/vtkDistanceWidget#DistanceWidget.cxx</a><br>
<br></b>Jothy<b><br></b><br><div class="gmail_quote">On Mon, Apr 19, 2010 at 9:45 AM, Jothybasu K Selvaraj <span dir="ltr"><<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">Thanks Mirko,<br><br>It worked, I will add an example to wiki.<br><br>Jothy<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, Apr 19, 2010 at 7:36 AM, mirko heuegger <span dir="ltr"><<a href="mailto:mheuegger@gmail.com" target="_blank">mheuegger@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello!<br>
<div><br>
On Fri, Apr 16, 2010 at 6:02 PM, Jothybasu K Selvaraj<br>
<<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>> wrote:<br>
> How can I modify the distance shown in the vtkDistanceWidget?<br>
> It shows only the numerical value,say 58,but I want it to be as 58 mm.<br>
<br>
</div>That should by possible by setting a proper label-format to the<br>
vtkDistanceRepresentation from<br>
you DistanceWidget:<br>
e.g:<br>
vtkDistanceRepresentation . SetLabelFormat("%-#6.3g mm"):<br>
<br>
<br>
hth<br>
<br>
mirko<br>
<font color="#888888"><br>
--<br>
Real programmers don't document; if it was<br>
hard to write, it should be hard to understand.<br>
</font></blockquote></div><br></div></div></div>
</blockquote></div><br></div>