[vtkusers] picking in a view of a vtkImagePlaneWidget
dean.inglis at on.aibn.com
dean.inglis at on.aibn.com
Fri Apr 4 19:51:43 EST 2003
John,
with vtkPropPicker, did you try something like
init:
PropPicker->InitializePickList();
PropPicker->AddPickList(Prop);
useage:
if( !PropPicker->PickProp(X,Y,CurrentRenderer) ){ return; }
if( Prop != this->PropPicker->GetProp() ){ return; }
float pos[3];
PropPicker->GetPickPosition(pos);
I have used this scheme to successfully pick
on an vtkImageActor. There may need to be a trasformation involved to change pos into something
you could look up into the origina image data.
Dean
More information about the vtkusers
mailing list