[Paraview] Question about building reader plugin
Moreland, Kenneth
kmorel at sandia.gov
Wed Apr 1 10:04:28 EDT 2009
For starters, there is no such class vtkIamgeAlgorithm. You probably mean vtkImageAlgorithm.
-Ken
On 4/1/09 12:28 AM, "shenyanwen" <shenyanwen at gmail.com> wrote:
Hello, everyone!
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:
error C2504: 'vtkIamgeAlgorithm' : base class undefined
error C2440: 'static_cast' : cannot convert from 'vtkObjectBase *' to 'vtkSgnReader *'
error C2440: 'return' : cannot convert from 'vtkSgnReader *' to 'vtkObjectBase *'
'GetDebug' : is not a member of 'vtkSgnReader'
'GetClassName' : is not a member of 'vtkSgnReader'
.....
.....
error C2664: 'vtkIamgeAlgorithmCommand' : cannot convert parameter 2 from 'vtkSgnReader *' to 'vtkObjectBase *
And here is my header file:
#ifndef __vtkSgnReader_h_
#define __vtkSgnReader_h_
#include "vtkImageAlgorithm.h"
#include "vtkSgn.h" //Needed for read actual META_DATA
class VTK_EXPORT vtkSgnReader : public vtkIamgeAlgorithm
{
public:
static vtkSgnReader* New();
vtkTypeRevisionMacro(vtkSgnReader, vtkImageAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
vtkSetStringMacro( FileName );
vtkGetStringMacro( FileName );
virtual int ReadMetaData(vtkInformation* *outInfo);
protected:
vtkSgnReader();
~vtkSgnReader();
virtual int RequestData(vtkInformation *, vtkInformationVector **,
vtkInformationVector *);
virtual int RequestInformation(vtkInformation *, vtkInformationVector **,
vtkInformationVector *);
virtual int FillOutputPortInformation(int, vtkInformation *);
public:
vtkSgn sgnfile;
char *FileName;
private:
vtkSgnReader(const vtkSgnReader&); //Not implemented
void operator=(const vtkSgnReader&); //Not implemented
};
#endif
Plase help me . Thanks so much!
**** Kenneth Moreland
*** Sandia National Laboratories
***********
*** *** *** email: kmorel at sandia.gov
** *** ** phone: (505) 844-8919
*** web: http://www.cs.unm.edu/~kmorel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090401/caece3e7/attachment.htm>
More information about the ParaView
mailing list