[vtkusers] how do I traverse a probe (a line) result to get the values?
Nico Vermaas
vermaas at astron.nl
Fri Aug 22 07:59:33 EDT 2003
Hi,
I shoot a line (a vtkLineSource) through a cube as a vtkProbeFilter and I get a nice xyplot with the values of the scalars on that line when I connect the probe to the xyplot like this:
myLine->SetPoint1(x1,y1,z1);
myLine->SetPoint2(x2,y2,z2);
myProbe->SetInput((vtkDataSet*) myLine->GetOutput());
myProbe->SetSource((vtkDataSet*)myImageData);
myXYplot->AddInput(myProbe->GetOutput());
QUESTION: But how can I traverse this output to read those values myself?
(I try to find the highest pixel value in datacube this way, in the direction of a pick. It seems like a terribly elaborate way of doing it, but I cannot find a better way, so if anybody has suggestions please let me know).
Nico
More information about the vtkusers
mailing list