<div dir="ltr">Hi David,<div><br></div><div>1) I'm using Win 8.1 pro</div><div>2) VTK version 5.10.1</div><div>3) It returned 692, 492 if I set size to 700, 500</div><div><br></div><div>Thank you.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 28, 2014 at 11:53 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Lin,<div><br></div><div>Calling Render() should not change the window size, and in fact if it did,</div><div>then many of the nightly VTK tests would fail. This means that there must</div><div>be something different about your computer as compared to the computers</div><div>that are used to test VTK. So, the more information that you can provide</div><div>about your system, the better!</div><div><br></div><div>1) What operating system are you using (be as specific as possible)?<br></div><div>2) What version of VTK are you using?</div><div>3) What size did GetSize() return? The exact numbers can be useful</div><div> in figuring out what is causing the problem.</div><div>4) If possible, run "ctest" to test your VTK for other problems.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div> - David</div></font></span><div><div class="h5"><div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 27, 2014 at 9:39 PM, Lin M <span dir="ltr"><<a href="mailto:majcjc@gmail.com" target="_blank">majcjc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi guys,<div><br></div><div>I met a problem which confused me. I tried to specify the window size by myself. But when I checked it later, the GetSize() always returned a value a little bit different from what I set before. I put the code below. I only called the renderwin to Render() before I checked the window size. It seems the Render() changes the window size. But I don't get why is that. Does anyone can help me about that? Thanks very much!</div><div><br></div><div><div>vtkSmartPointer< vtkRenderWindow > _imgRenderWin = vtkSmartPointer< vtkRenderWindow >::New();</div></div>int _size[2] = { 700, 500 };<br>_imgRenderWin->SetSize(_size);<div>_imgRenderWin->AddRenderer(_renderer);<br>_imgRenderWin->Render();<br>int *_dim;<br>_dim = _imgRenderWin->GetSize();<br>int _dimx = _dim[0];<br><div><div>int _dimy = _dim[1];</div></div></div><div><br></div><div>Best,</div><div>Lin</div></div></blockquote></div></div></div></div></div></div>
</blockquote></div><br></div>