[vtkusers] Re: Visualizing vtkImageData
Jeremy Winston
jbw at ieee.org
Tue Sep 16 10:25:33 EDT 2003
Anton Bilik wrote:
> [...] Actualy my problem is to visualizate the vtkImageData.
Anton,
Here's what I do (in Tcl):
vtkGESignaReader ctReader
vtkImageMapper ctMapper
ctMapper SetInput [ctReader GetOutput]
vtkActor2D ctActor
ctActor SetMapper ctMapper
vtkRenderer ren1
vtkRenderWindow renWin
renWin AddRenderer ren1
ren1 AddActor2D ctActor
vtkGESignaReader outputs a vtkImageData object, so in
your case, ctReader would be whatever generates your
image data object.
HTH,
-Jeremy
More information about the vtkusers
mailing list