[vtk-developers] Problem with multiple scalars and image planewidgets
Dean Inglis
dean.inglis at camris.ca
Mon Jan 26 07:41:21 EST 2009
Hi Prabhu,
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?
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.
Dean
-----Original Message-----
From: vtk-developers-bounces at vtk.org [mailto:vtk-developers-bounces at vtk.org]
On Behalf Of Prabhu Ramachandran
Sent: January-25-09 10:51 AM
To: VTK Developers
Subject: [vtk-developers] Problem with multiple scalars and image
planewidgets
Hi,
A mayavi user ran into a problem with multiple scalars assigned to a
hand built vtkImageData and using an image plane widget -- there is no
problem with an implicit plane + cutter for example.
I've created a simple VTK+Python example that demonstrates the problem.
Just run it and left click to pick points, the values I get are
completely wrong. I'd appreciate it if someone with a better knowledge
of vtkImageReslice/IPW could take a look. Thanks.
cheers,
prabhu
More information about the vtk-developers
mailing list