I am struggle for a while to achieve something simple: to pick a widget (a distance widget) with mouse pointer, in order to modify it or delete it.
Here is my trial:
vtkPropPicker* pPicker = vtkPropPicker::New(); pPicker->Pick(nPosition, nPosition, 0, m_pRenderer); TRACE("Pointer: %p\n", pPicker->GetProp3D());
when I hit the 2d image, I got:
Pointer: 0000020108617B10 Pointer: 0000020108617B10
but when I hit the widget handles (see red arrow):
my code is not executed at all … obviously I don’t understand why … can you tell me how to solve this task ? I have worked hard for this task and I didn’t succeeded by now …