<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#b8d3c9>
<DIV><FONT face=Arial size=2>Hello Vtk Users!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have a problem using vtkRenderer (or
vtkCamera??): when I am trying to zoom the active camera, after a a
ResetCamera() call, it works, but only a few times.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If I call repeatedly these operations the zoom
doesn't seem to work anymore. This happens usually after the 30th call of the
code below (for example when I want to visualize repeatedly consecutive
images):</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2> m_Renderer->ResetCameraClippingRange();<BR> m_Renderer->ResetCamera();<BR> m_Renderer->GetActiveCamera()->Zoom(2);
//Works only for the first 30-32 times.
Why?<BR> m_RenderWindow->Render();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm using VTK 4-4-latestRelease, Windows XP, Visual
C++6. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Why does this happen? How can I fix the problem?
That is, how can I keep the camera always zoomed?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance,</FONT></DIV>
<DIV><FONT face=Arial size=2>Istvan</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>