<div dir="ltr"><div><div>hi David/Maarten,<br><br></div>sounds like we have a Queen's/Robarts reunion :)<br><br></div><div>let say if I know (from manufacturer's specification) the exact size of the pixel, is there a way to do this in VTK?  I guess I can try to set the camera's position (with respect to the imaging plane) to get the correct zoom factor, so the drawn object would appear as the correct/physical size.  I haven't tried this, just want to throw this idea out.<br>
<br>any other suggestions?<br><br>thanks!<br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 6, 2014 at 11:17 AM, Maarten Beek <span dir="ltr"><<a href="mailto:beekmaarten@yahoo.com" target="_blank">beekmaarten@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt">
<div><span>I quickly checked Qt, there are functions (e.g.: QPaintDevice::heightMM()), but the docs also say it is inaccurate.</span></div><div style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal">
<br><span></span></div><div style="color:rgb(0,0,0);font-size:16px;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;background-color:transparent;font-style:normal"><span>Maarten<br></span></div>
 <div><br><br></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt">
<div><div class="h5"> <div dir="ltr"> <font face="Arial"> On Friday, June 6, 2014 8:58:58 AM, David Gobbi <<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>> wrote:<br> </font> </div>  <br>
<br> </div></div><div><div><div class="h5">Hi Elvis,<br clear="none"><br clear="none">I've tried doing this in the past, but the pixel sizes reported by the operating<br clear="none">system are only approximate and are sometimes wildly inaccurate.  VTK<br clear="none">
itself has no way of retrieving this information, as far as I am aware.<br clear="none"><br clear="none">In the end, I just applied a ruler to the screen :)<br clear="none"><br clear="none">  David<br clear="none"><br clear="none">
<br clear="none"></div></div><div><div><div class="h5"><br clear="none">On Thu, Jun 5, 2014 at 7:17 AM, Elvis Chen <<a shape="rect" href="mailto:elvis.chen@gmail.com" target="_blank">elvis.chen@gmail.com</a>> wrote:<br clear="none">
> hi all,<br clear="none">><br clear="none">> Is there a way to draw a geometrical objects that will show up on the screen<br clear="none">> with known physical dimension in vtk?<br clear="none">><br clear="none">
> That is, say if I want to draw a square of 5cm in dimension, and I want it<br clear="none">> to appear on screen as a square of 5cm^2, how do I specify vtkCamera that<br clear="none">> takes the screen pixel dimension into consideration?<br clear="none">
><br clear="none">> or am I in the wrong track by looking into vtkCamera?<br clear="none">><br clear="none">> any help is very much appreciated,<br clear="none"></div></div>_______________________________________________<br clear="none">
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br clear="none"><br clear="none">Visit other Kitware open-source projects at <a shape="rect" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br clear="none">
<br clear="none">Please keep messages on-topic and check the VTK FAQ at: <a shape="rect" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none"><br clear="none">Follow this link to subscribe/unsubscribe:<br clear="none">
<a shape="rect" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br clear="none"></div><br><br></div>  </div> </div>  </div> </div></div></blockquote></div>
<br></div>