Hi, I am writing a custom reader for paraview to read my own data file which
paraview hasn't have.
I have known that the most important method is RequestInformation and
RequestData, and I just want to write a reader that can output the data type
of StructuredPoints with Scalar and some vectors.I have already use :
outInfo->Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(),
0,dim[1]-1,0,dim[1]-1,0,dim[2]-1);
outInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT(),
0,dim[1]-1,0,dim[1]-1,0,dim[2]-1);
and:outInfo->Set(vtkDataObject::SPACING(), ar, 3);
outInfo->Set(vtkDataObject::ORIGIN(), origin, 3);
and how can I read the scalar data just like the file-format describes:
SCALAR dataName dataType numComp
LOOKUP_TABLE tableName
s0
s1
s2
...
s(n-1)
which method or function can I use to read the s0,s1,...,s(n-1) into the
variable and set to the outInfo.
Thanks so much!
--
[email protected]
Mobile Phone:13476177952
Tel: 027-87558144
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview