<div dir="ltr"><span style="font-size:12.8px">I have some problems with picking vtkActor2D. Part of the code that constructs actor2D is here:</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>vtkSmartPointer<vtkPNGReader> pngReader = vtkSmartPointer<vtkPNGReader>::New();</div><div>pngReader->SetFileName(filename.c_str());</div><div>pngReader->Update();</div><div><br></div><div><br></div><div>vtkSmartPointer<vtkImageMapper> imageMapper = vtkSmartPointer<vtkImageMapper>::New();</div><div>imageMapper->SetInputConnection(pngReader->GetOutputPort());</div><div>imageMapper->Update();</div><div><br></div><div>imageActor = vtkSmartPointer<vtkActor2D>::New();</div><div>imageActor->SetMapper(imageMapper);</div><div>imageActor->GetProperty()->SetOpacity(1.0);</div><div>imageActor->SetPickable(true);</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I use vtkActor2D::SetPosition(...) to set the actor position on the sceen and the image</div><div style="font-size:12.8px">really moves where I position it.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The problem is in picking (using vtkPropPicker). The actors image on</div><div style="font-size:12.8px">the screen doesn't react on picking, but when I click near the bottom left corner</div><div style="font-size:12.8px">of the screen (screen coordinates near zero), the propPicker detects that picked actor.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">So, the actor2D seems to be in screen origin, regardless of which position I set</div><div style="font-size:12.8px">using vtkActor2D::SetPosition(), but its image is moved as it should.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Do you have any idea why?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px">DejanĀ </div></div>