[vtkusers] vtkPicker in Java
Karin Faulhaber
faulhaber at ipf.uni-karlsruhe.de
Thu Jul 26 04:59:14 EDT 2001
Hi Jingyi,
I've included some own code in a local copy of vtkPanel (so I'm not
usingthe original one but the local one. And I'm not using any
Interactors. It's still OK for me). It looks like this:
if ('p' == keyChar) {
Render();
vtkPointPicker pPicker = new vtkPointPicker();
pPicker.Pick(lastX,getSize().getHeight()-lastY,0.0,ren);
int pickedPointId = pPicker.GetPointId();
...
...
}
Hope this helps
Karin
More information about the vtkusers
mailing list