Commit 55622264 authored by Sebastien Barre's avatar Sebastien Barre
Browse files

ENH: let the renderwin interactor invoke a RenderEvent so that third-party...

ENH: let the renderwin interactor invoke a RenderEvent so that third-party code can handle the render request and redirect it to the appropriate class instead of the renderwindow
parent 31dc6aa8
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include "vtkRenderer.h" #include "vtkRenderer.h"
#include "vtkRendererCollection.h" #include "vtkRendererCollection.h"
vtkCxxRevisionMacro(vtkRenderWindowInteractor, "1.105"); vtkCxxRevisionMacro(vtkRenderWindowInteractor, "1.106");
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// Needed when we don't use the vtkStandardNewMacro. // Needed when we don't use the vtkStandardNewMacro.
...@@ -101,6 +101,9 @@ void vtkRenderWindowInteractor::Render() ...@@ -101,6 +101,9 @@ void vtkRenderWindowInteractor::Render()
{ {
this->RenderWindow->Render(); this->RenderWindow->Render();
} }
// outside the above test so that third-party code can redirect
// the render to the appropriate class
this->InvokeEvent(vtkCommand::RenderEvent, NULL);
} }
// treat renderWindow and interactor as one object. // treat renderWindow and interactor as one object.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment