[vtkusers] how to reset vtkImageReslice ?

Emmanuel Olart emmanuel.olart at insalien.org
Fri Sep 14 09:46:04 EDT 2001


Hi

I have many vtkImageReslice in differents renderWindow ( imageData ->
reslice -> texture -> planeSource -> dataSetMapper -> actor -> Renderer
-> RenderWindow)

  atext = vtkTexture()
  atext.SetInput(reslice.GetOutput())
  atext.SetLookupTable(self.lut)
  atext.InterpolateOn()

  # need a plane to texture map onto
  plane = vtkPlaneSource()
....
  # mapper for the textured plane
  mapper = vtkDataSetMapper()
  mapper.SetInput(plane.GetOutput())

  imagePlaneActor = vtkActor()
  imagePlaneActor.SetMapper(mapper)
  imagePlaneActor.SetTexture(atext)

  CurrentRenderer.AddActor(self.imagePlaneActor)

My renderWindow s are not visible all together. So i'd like to free the
memory used by hidden ones. How can i do this ? (i think freeing the
memory used by the vtkImageData (input of the vtkImageReslice) should do
it but i don't know how to do it).
Could someone help me ?
Thx
Manu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: emmanuel.olart.vcf
Type: text/x-vcard
Size: 191 bytes
Desc: Card for Emmanuel Olart
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20010914/d76770c6/attachment.vcf>


More information about the vtkusers mailing list