[Paraview] VTK_WRAP_ClientServer SYNTAX_ERROR

Diego Mazala diegomazala at gmail.com
Fri Mar 24 09:33:10 EST 2006


I need to add a new source into paraview. However, I found a problem.
I can add a new source into ParaView when the class that describes this
source has a name initialized by vtk.
Ex: vtkMyClass.h

However, if I want to put other prefix, an error is reported.
Ex: hmMyClass.h

See the class:

#ifndef __hmMyClass_h
#define __hmMyClass_h

#include "vtkConeSource.h"
#include "hmCommonConfigure.h"

// Na declaração da classe também deve entrar o nome do projeto
class VTK_hmCommon_EXPORT hmMyClass : public vtkConeSource
  void PrintSelf(ostream& os, vtkIndent indent);
  static hmMyClass* New();
   void SetTest(int v);


  hmMyClass(const hmMyClass&);  // Not implemented.
  void operator=(const hmMyClass&);  // Not implemented.

The cmake command run without problens. When I rum make comand, the follow
erro is reported:

Generating hmMyClassClientServer.cxx
syntax error
*** SYNTAX ERROR found in parsing the header file
/home/usuario/workspace/HeMoLab/src/common/hmMyClass.h before line 20 ***
make[2]: *** [hmMyClassClientServer.cxx] Error 1
make[1]: *** [CMakeFiles/hmCommon.dir/all] Error 2
make: *** [all] Error 2

Can I implement classes without prefix "vtk" ?
Where do I change?

Diego Mazala
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/paraview/attachments/20060324/9faaeb88/attachment.html

More information about the ParaView mailing list