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: 'vtkIamgeAlgorithm' : base class undefined<br> error C2440: 'static_cast' : cannot convert from 'vtkObjectBase *' to 'vtkSgnReader *'<br>error C2440: 'return' : cannot convert from 'vtkSgnReader *' to 'vtkObjectBase *'<br>
'GetDebug' : is not a member of 'vtkSgnReader'<br>'GetClassName' : is not a member of 'vtkSgnReader'<br>.....<br>.....<br>error C2664: 'vtkIamgeAlgorithmCommand' : cannot convert parameter 2 from 'vtkSgnReader *' to 'vtkObjectBase *<br>
<br>And here is my header file:<br>#ifndef __vtkSgnReader_h_<br>#define __vtkSgnReader_h_<br><br>#include "vtkImageAlgorithm.h"<br>#include "vtkSgn.h" //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& 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&); //Not implemented<br> void operator=(const vtkSgnReader&); //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>