[vtkusers] how do I traverse a probe (a line) result to get thevalues?

Nico Vermaas vermaas at astron.nl
Fri Aug 22 10:00:16 EDT 2003


Hi

I am afraid that I get an error when I try that:
"no matching function call to 'vtkDataArray::GetValue(int &)'"

and is there a way to get the number of points in the probe? where you have put the '?' ?

Nico

====================================================
Nico Vermaas
ASTRON - Westerbork Synthesis Radio Telescope
Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands

tel: +31 593 598710                 
vermaas at astron.nl 
====================================================
>>> "Jean M. Favre" <jfavre at cscs.ch> 08/22/03 14:31 PM >>>
Nico Vermaas wrote:

> myXYplot->AddInput(myProbe->GetOutput());
> 
> QUESTION: But how can I traverse this output to read those values myself?
> 

for(i=0; i < ?; i++)
  Probe0->GetOutput()->GetPointData()->GetScalars()->GetValue(i)


-- 
Dr. Jean M. Favre,                            email:favre at cscs.ch
http://www.cscs.ch/people/Favre.html
CSCS, Swiss Center for Scientific Computing | Tel:  +41 (91) 610.82.40
Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82



More information about the vtkusers mailing list