Hi everyone, <br><br>I have 3 orthogonal views through a volume, and using the Medical3.cxx example to do this. I have 3 vtkImageActors which display the three orthogonal x, y and z slices. Here is some code for the z slice:
<br><br>vtkImageMapToColors *sliceZColors; <br>sliceZColors = vtkImageMapToColors::New(); <br>sliceZColors->SetInput(gipl_image); <br> sliceZColors->SetLookupTable(bwLut);<br>vtkImageActor *zSlice = vtkImageActor::New();
<br>zSlice->SetInput(sliceZColors->GetOutput()); <br>zSlice->SetDisplayExtent(0, maxX-1, 0, maxY-1, zPos, zPos); <br clear="all"><br>Now the problem is when I am trying to pick a point on the slices using a vtkPointPicker, the GetPointId( ) functions returns a -1 indicating that no point was picked. The point picker code is the usual stuff, I create a picker, set its tolerance, create its callback, add the observer and then set the picker for the window Interactor. The callback gets called fine when i press 'p', but picker returns a -1 for point id.
<br><br>Does anyone have any idea why the picker would return a -1 for point id when points are picked on a vtkImageActor displaying slices through a volume?? <br><br>Has anyone tried picking a point on such orthogonal slices through a volume?
<br><br><br>Any help will be appreciated, <br>-- <br><br>Thanks, <br>Rashed karim <br>Imperial college London<br>