VTK Renderers and Windows

Renderers and Windows represent the end of the VTK pipeline, which users actually see on the screen. In practice there is not generally a lot to do with renderers and windows, with a few notable exceptions:

Typical code snippets for renderers and windows are shown here. These could come from almost any VTK program, such as the volume viewer example, or the weather display example:

# Create the RenderWindow, Renderer, and Interactor
vtkRenderer ren1
vtkRenderWindow renWin
    renWin AddRenderer ren1
vtkRenderWindowInteractor iren
    iren SetRenderWindow renWin
# set the background and size.
ren1 SetBackground 0.8 0.8 0.8
renWin SetSize 720 720
ren1 AddActor tempActor
proc adjustDay { value } {
	global day
	set day [ expr $value - 1 ]
	tempGeometry SetExtent 0 100 0 100 $day $day
	windExtractor SetVOI 0 100 0 100 $day $day
	precipExtractor SetVOI 0 100 0 100 $day $day
	humidityExtractor SetVOI 0 100 0 100 $day $day

	renWin Render
}