[vtkusers] old code and vtkTextActor::SetMapper
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Tue Jun 30 11:52:18 EDT 2009
What type of mapper are you trying it set? If it is
vtkPolyDataMapper2D, then simply do this:
textactor->SetMapper(vtkPolyDataMapper2D::SafeDownCast(mapper));
As you can see from:http://www.vtk.org/doc/nightly/html/classvtkTextActor.html
vtkTextActor::SetMapper(vtkPolyDataMapper2D*) is public API.
Utkarsh
On Tue, Jun 30, 2009 at 11:20 AM, gregthom<gregthom99 at yahoo.com> wrote:
>
> Hello there,
>
> Does anyone know what I should change in my old VTK code to avoid this error
> ? SetMapper has now become protected in vTK 5.4
>
> /home/greg/development/dev_bin/include/vtk-5.4/vtkTextActor.h: In function
> ‘void mexFunction(int, mxArray**, int, const mxArray**)’:
> /home/greg/development/dev_bin/include/vtk-5.4/vtkTextActor.h:226: error:
> ‘virtual void vtkTextActor::SetMapper(vtkMapper2D*)’ is protected
> test_visu.cpp:379: error: within this context
> make[1]: *** [obj/Debug/test_visu.o] Error 1
> make: *** [test_visu] Error 2
>
> --
> View this message in context: http://www.nabble.com/old-code-and--vtkTextActor%3A%3ASetMapper-tp24273857p24273857.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> 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
>
More information about the vtkusers
mailing list