<div dir="ltr">This python script works fine for me!<br><br>self.DistanceWidgetA=vtk.vtkDistanceWidget() <br> self.DistanceWidgetA.SetInteractor(self.frameA.GetRenderWindow().GetInteractor()) <br>
self.DistanceWidgetA.CreateDefaultRepresentation() <br> self.DistanceWidgetA.GetRepresentation().SetLabelFormat("%-#6.3gmm") <br> self.frameA.show() <br>
self.DistanceWidgetA.On()<br> <br><br>Here self.frameA is the QVTKWidget.<br><br><br>Jothy<br><br><br><br><div class="gmail_quote">On Tue, Oct 19, 2010 at 6:48 PM, Leonardo M. Ramé <span dir="ltr"><<a href="mailto:l.rame@griensu.com">l.rame@griensu.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 class="im">On 2010-10-19 13:39:49 -0400, John Drescher wrote:<br>
> > I would use vtkChangeInformation filter right after the reader to<br>
> > change the spacing.<br>
> ><br>
><br>
> I meant vtkImageChangeInformation<br>
><br>
> John<br>
<br>
</div>I'm going crazy trying to find an example on the web, could you give me<br>
one?<br>
<div class="im"><br>
--<br>
Leonardo M. Ramé<br>
<a href="http://leonardorame.blogspot.com" target="_blank">http://leonardorame.blogspot.com</a><br>
_______________________________________________<br>
</div><div><div></div><div class="h5">Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>