<br><br><div class="gmail_quote"><br><br>Hi, I am writing a custom reader for paraview to read my own data file which paraview hasn&#39;t have.<br>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 :<br>



outInfo-&gt;Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(),<br>                 0,dim[1]-1,0,dim[1]-1,0,dim[2]-1);<br>    outInfo-&gt;Set(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT(),<br>                 0,dim[1]-1,0,dim[1]-1,0,dim[2]-1);<br>



and:outInfo-&gt;Set(vtkDataObject::SPACING(), ar, 3);<br>outInfo-&gt;Set(vtkDataObject::ORIGIN(), origin, 3);<br>and how can I read the scalar data just like the file-format describes:<br>SCALAR dataName dataType numComp<br>



LOOKUP_TABLE tableName<br>s0<br>s1<br>s2<br>...<br>s(n-1)<br><br>which method or function can I use to read the s0,s1,...,s(n-1) into the variable and set to the outInfo.<br>Thanks so much!<br><font color="#888888"><br></font></div>

<br><br clear="all"><br>-- <br><a href="mailto:shenyanwen@gmail.com" target="_blank">shenyanwen@gmail.com</a><br>Mobile Phone:13476177952<br>Tel: 027-87558144<br>