MantisBT - VTK
View Issue Details
0000553VTK(No Category)public2004-01-29 07:352004-01-30 14:34
bahn 
Mathieu Malaterre 
lowminoralways
closedfixed 
 
 
0000553: Render dont send EndEvent if no props
vtkRender dont send any EndEvent if it happens
to render with a PropArrayCount == 0
This is a problem if using the StartEvent/EndEvent
callbacks to change e.g. state of cursor.
The solution could be to add
    this->InvokeEvent(vtkCommand::EndEvent,NULL);
in vtkRenderer.cxx (diff -u below):

--- vtkRenderer.cxx.orig4.2 2004-01-29 13:35:56.000000000 +0100
+++ vtkRenderer.cxx 2004-01-29 11:10:25.000000000 +0100
@@ -431,6 +431,7 @@

   if ( this->PropArrayCount == 0 )
     {
+ this->InvokeEvent(vtkCommand::EndEvent,NULL);
     return 0;
     }
No tags attached.
Issue History
2011-06-16 13:11Zack GalbreathCategory => (No Category)

Notes
(0000587)
Mathieu Malaterre   
2004-01-30 14:34   
This was fixed long time ago:
http://vtk.org/cgi-bin/cvsweb.cgi/VTK/Rendering/vtkRenderer.cxx.diff?r1=1.194&r2=1.195 [^]

Do we need to merge this to VTK 4.2 ?