[vtkusers] vtkImageActor and GetMapper()
Sebastien Calvi
sebastien.calvi at yahoo.com
Fri Mar 16 09:50:06 EDT 2012
Hello,
Inside the documentation example -> [VTK.git] / Examples / Medical / Cxx / Medical3.cxx there are several calls to GetMapper() for vtkImageActor and vtkImageActor has no GetMapper() function at all, I believe that it might be good to correct that, it is a direct call to SetInputConnection instead of GetMapper()->SetInputConnection().
210 vtkSmartPointer<vtkImageActor> sagittal =
211 vtkSmartPointer<vtkImageActor>::New();
212 sagittal->GetMapper()->SetInputConnection(sagittalColors->GetOutputPort());
213 sagittal->SetDisplayExtent(32,32, 0,63, 0,92);
Thank you,
Sebastien.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120316/da758596/attachment.htm>
More information about the vtkusers
mailing list