Hello, everyone !<br>I am writing a reader for my cuntom data format!<br>Now I have some troubles for help.<br>1.My reader is named vtkSgnReader, and I use class vtkSgn to get the data information and the actual data.And then send the data into the reader. So In my vtkSgnreader.h, i quote this:<br>
#include &quot;vtkSgn&quot;, and in my Reader code, I wrote like this:<br><br>int vtkSgnReader::ReadMetaData(vtkInformation *outInfo)<br>{<br>    int dimsRead=0; <br>    if (!sgnfile.Readsgn(FileName))<br>    {<br>        return 1;<br>
    }<br clear="all">int dim[3];<br>    dim[0] = sgnfile.GetNx();<br>    dim[1] = sgnfile.GetNy();<br>    dim[2] = sgnfile.GetNz();<br>    //set the output information<br>    outInfo-&gt;Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(),<br>
                 0, dim[0]-1, 0, dim[1]-1, 0, dim[2]-1);<br>    return 1;<br>}<br>And the function Readsgn(FileName) is defined in class vtkSgn. I am wondering if this is correct!<br><br>2.After I wrote the source code and the XML file, I am trying to build it with CMake and VS2005. When I use VS2005 build the plugin, the compile gives me some errors like this:<br>
<br>2&gt;Generating vtkSgnClientServer.cxx<br>1&gt;Generating qrc_SgnReader.cxx<br>2&gt;*** SYNTAX ERROR found in parsing the header file E:/test/vtkSgn.h before line 40 ***<br>
2&gt;syntax error<br><br>I just do not know whatis wrong with this! So could anyone can help me?<br>Thank you so much for your help!<br><br>-Seven<br>-- <br><a href="mailto:shenyanwen@gmail.com">shenyanwen@gmail.com</a><br>
Mobile Phone:13476177952<br>Tel: 027-87558144<br>