[vtkusers] a c++ vtk question!
Sharbel Dalal
sdalal at inter.net.il
Sun May 18 15:39:49 EDT 2003
I am trying to open a file in ctkStructuredPointsReader, but I don't know
how to set the file name.
I am trying to implement this script in c++ (its written in tcl - Thanks to
Bryan Cole for giving it to me)
I have created a vtkstrucutedPointsReader pointer, but I don't know how to
set the file to it.. please help me!
See script below
Thanks allot
reader=vtkStructuredPointsReader()
reader.SetFileName('outputfile.vtk')
geom=vtkImageDataGeometryFilter()
geom.SetInput(reader.GetOutput())
warp=vtkWarpScalar()
warp.SetInput(geom.GetOutput())
warp.SetScaleFactor(30.0)
warp.SetNormal(1.0,0,0)
mapper=vtkPolyDataMapper()
mapper.SetInput(warp.GetOutput())
actor=vtkActor()
actor.SetMapper(mapper)
ren=vtkRenderer()
ren.SetBackground(0.7,0.7,0.7)
ren.AddActor(actor)
renwin=vtkRenderWindow()
renwin.AddRenderer(ren)
iren=vtkRenderWindowInteractor()
iren.SetRenderWindow(renwin)
iren.Initialize()
iren.Start()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030518/96cb4f30/attachment.htm>
More information about the vtkusers
mailing list