MantisBT - VTK
View Issue Details
0001411VTK(No Category)public2004-12-08 22:502016-08-12 09:54
Andrew Maclean 
Dave DeMarle 
highmajoralways
closedmoved 
 
 
0001411: vtkImageViewer2 - Render() problem.
Taken from one of Will's exercises (reorganized exercises, exercise3b_answer.cxx):

Any code like this executes once only if the viewer is of type vtkImageViewer2:

  for (i = 1; i < 93; ++i)
    {
    viewer->SetZSlice(i);
    
    // compute the string
    sprintf(tstr,"Slice: %i",i);
    tactor->SetInput(tstr);

    // we must reset the clipping range for each slice or set it ahead of
    // time because they are positioned in world coordinates
    viewer->GetRenderer()->ResetCameraClippingRange();
    viewer->Render();
   }

What happens is that after the first render the next call to Render() hangs.

If the viewer is of type vtkImageViewer the code works OK.

The problem is in both Windows XP and Linux.
Using .NET under XP or gcc3.3 under Linux.
No tags attached.
Issue History
2008-11-30 09:20Mathieu MalaterreStatus@30@ => tabled
2008-11-30 09:20Mathieu MalaterreAssigned ToMathieu Malaterre => David Cole
2011-01-19 10:09David ColeAssigned ToDavid Cole =>
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2013-06-05 17:13Jean-Christophe Fillion-RobinNote Added: 0030943
2013-07-22 19:10Dave DeMarleNote Added: 0031213
2013-07-22 19:10Dave DeMarleStatusbacklog => expired
2013-07-22 19:10Dave DeMarleAssigned To => Dave DeMarle
2015-01-11 08:24Utkarsh AyachitSource_changeset_attached => ParaView master 1f7cf89a
2016-08-12 09:54Kitware RobotNote Added: 0036756
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved

Notes
(0001789)
Mathieu Malaterre   
2004-12-09 18:42   
I cannot reproduce the problem on Linux, gcc3.3. What version of VTK are you using ?

BTW the CVS version of VTK doesn't need anymore the line:

viewer->GetRenderer()->ResetCameraClippingRange();

Because by default the vtkImageViewer2 is: AutoResetCameraClippingRangeOn

HTH
(0001836)
Mathieu Malaterre   
2004-12-22 22:37   
Closing the bug as author did not respond.
(0001845)
Andrew Maclean   
2004-12-23 18:18   
please don't close this.

This fails under VTK 4.5, VC 7.1 and gcc-3.3.4. While Will was over here in Sydney, he was also able to see the problem.

I responded by e-mail a few weeks ago to your enquiries.
(0001847)
Andrew Maclean   
2004-12-23 18:26   
Fails in the development version of VTK, namely VTK4.5. Will Schroeder, while he was out here also saw this behaviour. Compilers used: Windows XP/VC7.1, Lunix - Debian gcc-3.3.4

Thanks
   Andrew
(0030943)
Jean-Christophe Fillion-Robin   
2013-06-05 17:13   
Does the problem still occur with VTK 5.10 ? VTK 6 ?
(0031213)
Dave DeMarle   
2013-07-22 19:10   
If the bug persists in 6.0.0, please reopen.
(0036756)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.