# an example of deleting a rendering window
vtkRenderMaster rm;
set renWin  [rm MakeRenderWindow];
set ren1    [$renWin MakeRenderer];

vtkSphereSource ls;
vtkPolyMapper pdm;
pdm SetInput [ls GetOutput];
vtkActor a1;
a1 SetMapper pdm;
$ren1 AddActors a1;
$renWin SetSize 400 400;
[a1 GetProperty] SetColor 0.6 0.4 1.0;
$ren1 SetBackground 0.5 0.7 0.3;
$renWin Render;

# delete the old ones
rename $renWin {};
rename $ren1 {};

# create a new window
set renWin  [rm MakeRenderWindow];
set ren1    [$renWin MakeRenderer];

$ren1 AddActors a1;
$renWin SetSize 300 300;
[a1 GetProperty] SetColor 0.4 0.6 1.0;
$ren1 SetBackground 0.7 0.5 0.3;
$renWin Render;

exit
