From 61f597e85fc4126efbd8759f4e383ff568b0f391 Mon Sep 17 00:00:00 2001 From: ouv Date: Thu, 18 Aug 2005 05:40:56 +0000 Subject: [PATCH] Render() added --- src/SVTK/SVTK_RenderWindowInteractor.cxx | 10 ++++++++-- src/SVTK/SVTK_RenderWindowInteractor.h | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/SVTK/SVTK_RenderWindowInteractor.cxx b/src/SVTK/SVTK_RenderWindowInteractor.cxx index a15783ce9..7a98ca3ec 100644 --- a/src/SVTK/SVTK_RenderWindowInteractor.cxx +++ b/src/SVTK/SVTK_RenderWindowInteractor.cxx @@ -94,7 +94,6 @@ SVTK_RenderWindowInteractor myInteractor->Initialize(); } - //---------------------------------------------------------------------------- void SVTK_RenderWindowInteractor @@ -103,7 +102,6 @@ SVTK_RenderWindowInteractor myInteractor->UpdateSize(w,h); } - //---------------------------------------------------------------------------- int SVTK_RenderWindowInteractor @@ -670,3 +668,11 @@ SVTK_RenderWindowInteractor if ( selColor.isValid() ) theRenderer->SetBackground( selColor.red()/255., selColor.green()/255., selColor.blue()/255. ); } + +//---------------------------------------------------------------------------- +void +SVTK_RenderWindowInteractor +::Render() +{ + getRenderWindow()->Render(); +} diff --git a/src/SVTK/SVTK_RenderWindowInteractor.h b/src/SVTK/SVTK_RenderWindowInteractor.h index e580626a5..b2055d85d 100644 --- a/src/SVTK/SVTK_RenderWindowInteractor.h +++ b/src/SVTK/SVTK_RenderWindowInteractor.h @@ -134,6 +134,8 @@ public: vtkRenderer* GetRenderer(); + virtual void Render(); + protected: vtkGenericRenderWindowInteractor* myInteractor; -- 2.39.2