Commit 0418f6d2 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 d202c02c
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include "vtkRenderer.h" #include "vtkRenderer.h"
#include "vtkRendererCollection.h" #include "vtkRendererCollection.h"
vtkCxxRevisionMacro(vtkRenderWindowInteractor, "1.106"); vtkCxxRevisionMacro(vtkRenderWindowInteractor, "1.107");
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// Needed when we don't use the vtkStandardNewMacro. // Needed when we don't use the vtkStandardNewMacro.
...@@ -237,7 +237,7 @@ void vtkRenderWindowInteractor::FlyTo(vtkRenderer *ren, double x, double y, doub ...@@ -237,7 +237,7 @@ void vtkRenderWindowInteractor::FlyTo(vtkRenderer *ren, double x, double y, doub
ren->GetActiveCamera()->Dolly(this->Dolly/this->NumberOfFlyFrames + 1.0); ren->GetActiveCamera()->Dolly(this->Dolly/this->NumberOfFlyFrames + 1.0);
ren->GetActiveCamera()->OrthogonalizeViewUp(); ren->GetActiveCamera()->OrthogonalizeViewUp();
ren->ResetCameraClippingRange(); ren->ResetCameraClippingRange();
this->RenderWindow->Render(); this->Render();
} }
} }
...@@ -269,7 +269,7 @@ void vtkRenderWindowInteractor::FlyToImage(vtkRenderer *ren, double x, double y) ...@@ -269,7 +269,7 @@ void vtkRenderWindowInteractor::FlyToImage(vtkRenderer *ren, double x, double y)
ren->GetActiveCamera()->SetPosition(position); ren->GetActiveCamera()->SetPosition(position);
ren->GetActiveCamera()->Dolly(this->Dolly/this->NumberOfFlyFrames + 1.0); ren->GetActiveCamera()->Dolly(this->Dolly/this->NumberOfFlyFrames + 1.0);
ren->ResetCameraClippingRange(); ren->ResetCameraClippingRange();
this->RenderWindow->Render(); this->Render();
} }
} }
...@@ -373,7 +373,7 @@ void vtkRenderWindowInteractor::Initialize() ...@@ -373,7 +373,7 @@ void vtkRenderWindowInteractor::Initialize()
{ {
this->Initialized=1; this->Initialized=1;
this->Enable(); this->Enable();
this->RenderWindow->Render(); this->Render();
} }
void vtkRenderWindowInteractor::HideCursor() void vtkRenderWindowInteractor::HideCursor()
......
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