Hello, everyone!<br>I am trying to build my own reader into ParaView as a plugin. But after I put my source file and XML files and the CMakeLists file into the specific directory and I used CMake to build it. Then I open the sln file it created. I just choose ALL_BUILD and I ran to many errors like below:<br>
<br>error C2504: &#39;vtkIamgeAlgorithm&#39; : base class undefined<br> error C2440: &#39;static_cast&#39; : cannot convert from &#39;vtkObjectBase *&#39; to &#39;vtkSgnReader *&#39;<br>error C2440: &#39;return&#39; : cannot convert from &#39;vtkSgnReader *&#39; to &#39;vtkObjectBase *&#39;<br>
&#39;GetDebug&#39; : is not a member of &#39;vtkSgnReader&#39;<br>&#39;GetClassName&#39; : is not a member of &#39;vtkSgnReader&#39;<br>.....<br>.....<br>error C2664: &#39;vtkIamgeAlgorithmCommand&#39; : cannot convert parameter 2 from &#39;vtkSgnReader *&#39; to &#39;vtkObjectBase *<br>
<br>And here is my header file:<br>#ifndef __vtkSgnReader_h_<br>#define __vtkSgnReader_h_<br><br>#include &quot;vtkImageAlgorithm.h&quot;<br>#include &quot;vtkSgn.h&quot;               //Needed for read actual META_DATA<br>
<br>class VTK_EXPORT vtkSgnReader : public vtkIamgeAlgorithm<br>{<br>public:<br>    static vtkSgnReader* New();<br>    vtkTypeRevisionMacro(vtkSgnReader, vtkImageAlgorithm);<br>    void PrintSelf(ostream&amp; os, vtkIndent indent);<br>
<br>    vtkSetStringMacro( FileName );<br>    vtkGetStringMacro( FileName );<br>    virtual int ReadMetaData(vtkInformation* *outInfo);<br>protected:<br>    vtkSgnReader();<br>    ~vtkSgnReader();<br><br>    virtual int RequestData(vtkInformation *, vtkInformationVector **,<br>
                            vtkInformationVector *);<br>    virtual int RequestInformation(vtkInformation *, vtkInformationVector **,<br>                                   vtkInformationVector *);<br>    virtual int FillOutputPortInformation(int, vtkInformation *);<br>
public:<br>    vtkSgn sgnfile;<br>    char *FileName;<br><br>private:<br>    vtkSgnReader(const vtkSgnReader&amp;);      //Not implemented<br>    void operator=(const vtkSgnReader&amp;);   //Not implemented<br>};<br>#endif<br>
<br>Plase help me . Thanks so much!<br clear="all"><br>-- <br><a href="mailto:shenyanwen@gmail.com">shenyanwen@gmail.com</a><br>Mobile Phone:13476177952<br>Tel: 027-87558144<br>