<div dir="ltr">Try ResetCameraClippingRange() on renderer.<br><br>Jothy<br><br><div class="gmail_quote">On Tue, Oct 19, 2010 at 6:18 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;">On 2010-10-19 13:09:51 -0400, John Drescher wrote:<br>
> On Tue, Oct 19, 2010 at 9:46 AM, Leonardo M. Ramé <<a href="mailto:l.rame@griensu.com">l.rame@griensu.com</a>> wrote:<br>
> > Hi, I use this code to add a vtkDistanceWidget to a scene showing a<br>
> > Dicom image:<br>
> ><br>
> > distanceWidget = vtkDistanceWidget::New();<br>
> > distanceWidget->SetInteractor(this->GetInteractor());<br>
> > static_cast<vtkDistanceRepresentation*>(distanceWidget->GetRepresentation())->SetLabelFormat("%-#6.2f mm");<br>
> > distanceWidget->On();<br>
> ><br>
> > The problem here is the measures I'm getting from the distance widget<br>
> > are not related to the real image. For example, when I measure one image<br>
> > with another Dicom viewer, it shows that I has 360mm width, and the<br>
> > vtkDistanceWidget says it has 1748,30mm.<br>
> ><br>
> > How can I define the relation between the size of the real image and the<br>
> > representation I'm showing on screen?<br>
> ><br>
><br>
> Is the spacing correct in the vtkImageData?<br>
><br>
> John<br>
<br>
Thanks, if I apply a spacing of 0.20, got it from dicom tag (0028,0030),<br>
it measures exactly as the other Dicom Viewer.<br>
<br>
...but, now my image is rendered too small, I have to zoom it with the<br>
mouse. Is there a way to render it to fill the QVTKWidget regardless of<br>
its size?<br>
<br>
--<br>
Leonardo M. Ramé<br>
<a href="http://leonardorame.blogspot.com" target="_blank">http://leonardorame.blogspot.com</a><br>
_______________________________________________<br>
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>
</blockquote></div><br></div>