[Paraview] Question about writing custom reader for paraview

shenyanwen shenyanwen at gmail.com
Thu Mar 19 03:08:17 EDT 2009


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!




-- 
shenyanwen at gmail.com
Mobile Phone:13476177952
Tel: 027-87558144
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090319/110795be/attachment-0001.htm>


More information about the ParaView mailing list