[vtkusers] vtkImageActor and GetMapper()

Bill Lorensen bill.lorensen at gmail.com
Tue Mar 20 11:03:19 EDT 2012


vtkImageActor inherits vtkImageSlice that has a GetMapper method
defined by the macro GetObjectMacro
Rendering/vtkImageSlice.h:  vtkGetObjectMacro(Mapper, vtkImageMapper3D);


On Fri, Mar 16, 2012 at 6:50 AM, Sebastien Calvi
<sebastien.calvi at yahoo.com> wrote:
> 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.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtkusers mailing list