[vtkusers] Set position of vtkImageSlice

David Lonie david.lonie at kitware.com
Tue Nov 13 16:21:10 EST 2012


Hi list,

I'm writing a test for some new functionality that will generate
several vtkImageData instances and render them at different positions.

I'm setting up a vtkImageSlice like this:

  vtkNew<vtkImageData> image1;


  vtkNew<vtkImageSliceMapper> mapper1;
  mapper1->SetInputData(image1.GetPointer());
  vtkNew<vtkImageSlice> actor1;
  actor1->SetMapper(mapper1.GetPointer());
  actor1->SetPosition(10, 10, 10);



More information about the vtkusers mailing list