[vtkusers] propPicker addPickList issue
David Doria
daviddoria at gmail.com
Mon Jun 3 07:45:54 EDT 2013
On Sun, Jun 2, 2013 at 9:50 PM, Manuel Corrales
<manuelcorrales at gmail.com> wrote:
> Hello, I have this piece of code
>
> that I copy from this sample:
>
> vtkSmartPointer<vtkPropPicker> propPicker =
> vtkSmartPointer<vtkPropPicker>::New();
> propPicker->PickFromListOn();
>
> // Give the picker a prop to pick
> propPicker->AddPickList( vtkImageViewer->GetImageActor() );
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/PickingAPixel
>
> but I get this error:
>
> error: no matching function for call to
> vtkPropPicker::AddPickList(vtkImageActor*)’
>
> Weird thing is that the sample is building and running fine in my box.
>
> Any hints?
>
> Thanks in advance!
It sounds like you may have forgotten
#include "vtkImageActor.h"
David
More information about the vtkusers
mailing list