<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br>Thanks that worked <br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: the.1.lily@hotmail.com<br>To: utkarsh.ayachit@kitware.com<br>CC: paraview@paraview.org<br>Subject: RE: [Paraview] Changing the size of vtkXOpenGLRenderWindow<br>Date: Wed, 13 Feb 2013 11:56:22 +0300<br><br>

<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

--></style>
<div dir="ltr">
Dear Utkarsh<br><br>it turns out that I was writing the command after the Render which was not working<br><br>here how I did it "in case someone needed that"<br><br>view = GetActiveView().GetRenderWindow()<br>view.SetSize(wid,hig)<br><br>Render()<br><br><div><div id="ecxSkyDrivePlaceholder"></div>&gt; Date: Tue, 12 Feb 2013 08:54:11 -0500<br>&gt; Subject: Re: [Paraview] Changing the size of vtkXOpenGLRenderWindow<br>&gt; From: utkarsh.ayachit@kitware.com<br>&gt; To: the.1.lily@hotmail.com<br>&gt; CC: paraview@paraview.org<br>&gt; <br>&gt; Try:<br>&gt; <br>&gt; view.ViewSize = [&lt;width&gt;, &lt;height&gt;]<br>&gt; <br>&gt; Utkarsh<br>&gt; <br>&gt; On Tue, Feb 12, 2013 at 6:25 AM, the lily &lt;the.1.lily@hotmail.com&gt; wrote:<br>&gt; &gt; Dear all<br>&gt; &gt;<br>&gt; &gt; I'm constructing the depth map using the following<br>&gt; &gt;<br>&gt; &gt; view = GetActiveView().GetRenderWindow()<br>&gt; &gt; w2i = vtkWindowToImageFilter()<br>&gt; &gt; w2i.SetInputBufferTypeToZBuffer ()<br>&gt; &gt; w2i.SetInput(view)<br>&gt; &gt; w2i.Update()<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; the only problem that it is always giving me a dpeth map of size (400,400)<br>&gt; &gt; and I think that because of the size of the view<br>&gt; &gt;<br>&gt; &gt; so I tried setting the view size but that did not work, so can someone hep ?<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Powered by www.kitware.com<br>&gt; &gt;<br>&gt; &gt; Visit other Kitware open-source projects at<br>&gt; &gt; http://www.kitware.com/opensource/opensource.html<br>&gt; &gt;<br>&gt; &gt; Please keep messages on-topic and check the ParaView Wiki at:<br>&gt; &gt; http://paraview.org/Wiki/ParaView<br>&gt; &gt;<br>&gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt; http://www.paraview.org/mailman/listinfo/paraview<br>&gt; &gt;<br></div>                                               </div></div>                                               </div></body>
</html>