[vtk-developers] Problem with multiple scalars and image planewidgets

Prabhu Ramachandran prabhu at aero.iitb.ac.in
Mon Jan 26 13:40:06 EST 2009


On 01/26/09 18:11, Dean Inglis wrote:
> I don't use python (tcl or c++ only) so I couldn't replicate your
> problem.  By "multiple scalars" do you mean multi-component data?

Well, I really mean multiple arrays associated with the point data of 
the supplied image data.  I'll see if I can find the time to make a Tcl 
example.  Thanks.

> If so, vtkIPW only queries the first component.  The essential cursoring
> code is in ::UpdateDiscreteCursor and ::UpdateContinuousCursor: by
> default vtkIPW uses discrete cursoring.  Im not sure what the correct
> way to convert x,y,z coords to i,j,k indices so I have used
> vtkMath::Round((closestPt[i]-origin[i])/spacing[i]);
> but this could certainly be changed.

I don't think that is the problem here.  For some reason when a user 
chooses to make a different array the active one, the IPW gets garbage 
scalar data.  I am not sure this is an IPW issue or an ImageReslice one.

cheers,
prabhu



More information about the vtk-developers mailing list