<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Consolas}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Dear All,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Maybe this is already know but I did not find information on it in the archive.</p>
<p class="MsoNormal">Whenever a ctest dashboard is ran on VTK on windows (<a href="http://open.cdash.org/index.php?project=VTK">http://open.cdash.org/index.php?project=VTK</a>), the tests comparing images are failing because of image size incompatibilities
 (difference with the baseline).</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">When trying to debug this, I observed for a test like BoxClipPolyData that the render window is set to 800x640</p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt; font-family:Consolas; color:gainsboro; background:black"> 
</span><span style="font-size:9.5pt; font-family:Consolas; color:#BD63C5; background:black">VTK_CREATE</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4; background:black">(</span><span style="font-size:9.5pt; font-family:Consolas; color:#4EC9B0; background:black">vtkRenderWindow</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4; background:black">,</span><span style="font-size:9.5pt; font-family:Consolas; color:gainsboro; background:black">
</span><span style="font-size:9.5pt; font-family:Consolas; color:#C8C8C8; background:black">renwin</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4; background:black">);</span><span style="font-size:9.5pt; font-family:Consolas; color:gainsboro; background:black"></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt; font-family:Consolas; color:gainsboro; background:black"> 
</span><span style="font-size:9.5pt; font-family:Consolas; color:#C8C8C8; background:black">renwin</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4; background:black">-></span><span style="font-size:9.5pt; font-family:Consolas; color:#C8C8C8; background:black">SetSize</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4; background:black">(</span><span style="font-size:9.5pt; font-family:Consolas; color:#B5CEA8; background:black">800</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4; background:black">,</span><span style="font-size:9.5pt; font-family:Consolas; color:gainsboro; background:black">
</span><span style="font-size:9.5pt; font-family:Consolas; color:#B5CEA8; background:black">640</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4; background:black">);</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4"></span></p>
<p class="MsoNormal">This is coherent with the corresponding baseline png image.</p>
<p class="MsoNormal">However, as soon as the scene is rendered</p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt; font-family:Consolas; color:gainsboro; background:black"> 
</span><span style="font-size:9.5pt; font-family:Consolas; color:#C8C8C8; background:black">renwin</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4; background:black">-></span><span style="font-size:9.5pt; font-family:Consolas; color:#C8C8C8; background:black">Render</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4; background:black">();</span><span style="font-size:9.5pt; font-family:Consolas; color:gainsboro; background:black"></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt; font-family:Consolas; color:gainsboro; background:black"> 
</span><span style="font-size:9.5pt; font-family:Consolas; color:#569CD6; background:black">int</span><span style="font-size:9.5pt; font-family:Consolas; color:gainsboro; background:black">
</span><span style="font-size:9.5pt; font-family:Consolas; color:#C8C8C8; background:black">retVal</span><span style="font-size:9.5pt; font-family:Consolas; color:gainsboro; background:black">
</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4; background:black">=</span><span style="font-size:9.5pt; font-family:Consolas; color:gainsboro; background:black">
</span><span style="font-size:9.5pt; font-family:Consolas; color:#BD63C5; background:black">vtkRegressionTestImage</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4; background:black">(</span><span style="font-size:9.5pt; font-family:Consolas; color:#C8C8C8; background:black">renwin</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4; background:black">);</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4"></span></p>
<p class="MsoNormal">the renwin size becomes 792x632. This size is actually modified in
<span style="font-size:9.5pt; font-family:Consolas; color:#569CD6; background:black">
int</span><span style="font-size:9.5pt; font-family:Consolas; color:gainsboro; background:black">
</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4; background:black">*</span><span style="font-size:9.5pt; font-family:Consolas; color:#4EC9B0; background:black">vtkWin32OpenGLRenderWindow</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4; background:black">::</span><span style="font-size:9.5pt; font-family:Consolas; color:#C8C8C8; background:black">GetSize</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4; background:black">(</span><span style="font-size:9.5pt; font-family:Consolas; color:#569CD6; background:black">void</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4; background:black">)</span><span style="font-size:9.5pt; font-family:Consolas; color:#B4B4B4"></span></p>
<p class="MsoNormal">and corresponds to the GetClientRect(this->WindowsId,&rect) of the rendering window.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">So my question: Why renwin->SetSize(XXX,YYY) do not take into account the window border size ?</p>
<p class="MsoNormal">Correcting this would allow for a cleaner windows dashboard.</p>
<p class="MsoNormal">Is that because I don’t use the OffScreenRendering option ?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Regards,</p>
<p class="MsoNormal"><span style="color:#1F497D">--</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Jean-Michel</span></p>
<p class="MsoNormal"> </p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified
 that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.<br>
</font>
</body>
</html>