<div dir="ltr"><div><div><div>tnx alex <br></div>i will explore vtkInteractorStyle,... i tested GetDesiredUpdateRate()<br></div>but i didnt see any impact on image quality i think its better i test it again<br></div>hossein<br>
<div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 20, 2013 at 1:06 AM, Alex Malyushytskyy <span dir="ltr"><<a href="mailto:alexmalvtk@gmail.com" target="_blank">alexmalvtk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I bet it is in vtkInteractorStyle or it subclass.<br>
I would expect all you need to do is SetDesiredUpdateRate<br>
for vtkRenderWindow ( get it from interactor ) to interactor desired<br>
update rate ( GetDesiredUpdateRate() )<br>
before rotation:<br>
<br>
( r - vtkRenderWindowInteractor )<br>
<br>
r->GetRenderWindow()->SetDesiredUpdateRate(r->GetDesiredUpdateRate());<br>
<br>
and return it back tio normal after rotation :<br>
<br>
r->GetRenderWindow()->SetDesiredUpdateRate(r->GetStillUpdateRate());<br>
<br>
<br>
Alex<br>
<div><div class="h5"><br>
<br>
<br>
On Mon, Feb 18, 2013 at 10:01 AM, Hossein Nazem <<a href="mailto:hossein.nazem@gmail.com">hossein.nazem@gmail.com</a>> wrote:<br>
> i checked the vtkRenderWindowInteractor.cxx but i couldnt find the code<br>
> relevent to rotation<br>
><br>
><br>
> On Mon, Feb 18, 2013 at 9:24 PM, Hossein Nazem <<a href="mailto:hossein.nazem@gmail.com">hossein.nazem@gmail.com</a>><br>
> wrote:<br>
>><br>
>><br>
>> hi all,<br>
>> i have a 3d volume and i ve wrote a function to rotate it:<br>
>><br>
>> Renderer->GetActiveCamera()->Roll(deg1);<br>
>> Renderer->GetActiveCamera()->Azimuth(deg2);<br>
>> Renderer->GetActiveCamera()->Elevation(deg3);<br>
>><br>
>> in comparison with defult rotation in vtkrenderwindowinteractor, mine is<br>
>> slower and keep the image quality while the defult rotation(which use mouse<br>
>> events) reduces the quality during the rotation and when the rotation<br>
>> finished it restores the initial quality, i want to know where is the code<br>
>> of this process or how could i do the same?<br>
>> thanks<br>
>> hossein<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
</blockquote></div><br></div>