<HTML>
<HEAD>
<TITLE>Re: [Paraview] Question about building reader plugin</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>For starters, there is no such class vtkIamgeAlgorithm. You probably mean vtkImageAlgorithm.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 4/1/09 12:28 AM, "shenyanwen" <<a href="shenyanwen@gmail.com">shenyanwen@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>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>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>