<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
yes I did,<br><br>but what solved the problem was mp_WTKwidget-&gt;Render(); :)<br><br><hr id="stopSpelling">From: lazzadrgi@libero.it<br>To: ilferraresebono@hotmail.it<br>CC: vtkusers@vtk.org<br>Subject: R: [vtkusers] moving camera and updating the rendering<br>Date: Fri, 12 Mar 2010 14:22:09 +0100<br><br>








<style>
.ExternalClass .ecxshape
{;}
</style>

<style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.ecxStileMessaggioDiPostaElettronica18
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxSection1
{page:Section1;}
</style>





<div class="ecxSection1">

<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">Hi Giancarlo, </span></p>

<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; you need to call :&nbsp;&nbsp;&nbsp; &nbsp;</span><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';" lang="EN-US">mp_VTKwidget-&gt;update();</span></p>

<p class="ecxMsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';" lang="EN-US">&nbsp;</span></p>

<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">Gianni Lazzarato</span></p>

<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</span></p>

<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</span></p>

<div style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 4pt;">

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p class="ecxMsoNormal"><b><span style="font-size: 10pt; font-family: 'Segoe UI','sans-serif';">Da:</span></b><span style="font-size: 10pt; font-family: 'Segoe UI','sans-serif';">
vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org] <b>Per conto di </b>Giancarlo
Amati<br>
<b>Inviato:</b> venerd́ 12 marzo 2010 14.15<br>
<b>A:</b> vtkusers@vtk.org<br>
<b>Oggetto:</b> [vtkusers] moving camera and updating the rendering</span></p>

</div>

</div>

<p class="ecxMsoNormal">&nbsp;</p>

<p class="ecxMsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Hello vtkUsers,<br>
<br>
I'm back with, I'm sure, a "so-many-times-asked" question:<br>
<br>
I've a camera and a file with a sequence of postions that the camera takes.<br>
Now, I'm using the QVTKWidget for rendering my scene.<br>
<br>
I call:<br>
<br>
vtkSmartPointer&lt;vtkCamera&gt;tmpCam =
this-&gt;mp_VTKwidget-&gt;GetRenderWindow()-&gt;GetRenderers()-&gt;GetFirstRenderer()-&gt;GetActiveCamera();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
tmpCam-&gt;SetViewUp((*mI_vtkCamera)-&gt;GetViewUp());<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
tmpCam-&gt;SetPosition((*mI_vtkCamera)-&gt;GetPosition());<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tmpCam-&gt;SetFocalPoint((*mI_vtkCamera)-&gt;GetFocalPoint());<br>
<br>
to update the current renderer camera position.<br>
But What I'm not seeing is an update of the view untile I click with the mouse
inside the QVTKWidget (mp_VTKwidget).<br>
so my question is HOW to update/refresh the view automatically?<br>
<br>
I tried the method Render() of the vtkRenderer but it's apparently
unseccessful.<br>
<br>
Many thanks.<br>
Giancarlo</span></p>

<div class="ecxMsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">

<hr width="100%" align="center" size="2">

</span></div>

<p class="ecxMsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Lo
spazio su Hotmail aumente con le tue esigenze... <a href="http://www.windowslive.it/hotmail/SpazioDisponibile.aspx">Vai
oltre i 5GB</a></span></p>

</div>

</div>                                               <br /><hr />Oltre 20 giochi per Messenger. <a href='http://www.messenger.it/raccoltaGiochi.aspx' target='_new'>Provali subito!</a></body>
</html>