<html><body><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 class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <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 dir="ltr"> <font face="Arial" size="2"> On Friday, June 6, 2014 8:58:58 AM, David Gobbi <david.gobbi@gmail.com> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container">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 class="yqt0716398089" id="yqtfd87687"><br clear="none">On Thu, Jun 5, 2014 at 7:17 AM, Elvis Chen <<a shape="rect" ymailto="mailto:elvis.chen@gmail.com"
 href="mailto:elvis.chen@gmail.com">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">_______________________________________________<br clear="none">Powered by www.kitware.com<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></body></html>