<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
I am creating a ParaView plugin for my code. The main class is a vtk
class, which is inherited from <font face="Courier New, Courier,
monospace">vtkDataSetAlgorithm</font>, called <font face="Courier
New, Courier, monospace">myVTKfilter</font>. However, in it's
implementation I used few other classes of mine that are not derived
from VTK classes (lets call them <font face="Courier New, Courier,
monospace">Class1</font>, <font face="Courier New, Courier,
monospace">Class2</font> and <font face="Courier New, Courier,
monospace">Class3</font> for simplicity), and they have a simple
public constructor and destructor, etc, and I do not want to derive
them from vtk algorithms and add many vtk methods to them.<br>
<br>
In <font face="Courier New, Courier, monospace">CMakeLists,txt</font>,
the part that deals with the plugin is:<br>
<font face="Courier New, Courier, monospace">ADD_PARAVIEW_PLUGIN(
<br>
myVTKfilterPlugin<br>
"1.0"<br>
DOCUMENTATION_DIR SomePath/doc<br>
SERVER_MANAGER_XML SomePath/</font><font face="Courier
New, Courier, monospace"><font face="Courier New, Courier,
monospace">myVTKfilter</font>.xml<br>
GUI_RESOURCE_FILES SomePath/</font><font face="Courier
New, Courier, monospace"><font face="Courier New, Courier,
monospace">myVTKfilter</font>GUI.xml<br>
SERVER_MANAGER_SOURCES SomePath/myVTKfilter.cxx
SomePath/Class1.cxx SomePath/Class2.cxx SomePath/Class3.cxx)</font><br>
<br>
While I compile the code, I am getting the following error:<br>
<br>
<font face="Courier New, Courier, monospace">MainPathToCode/build/Class1ClientServer.cxx:13:
error: ‘SafeDownCast’ is not a member of ‘Class1’<br>
make[2]: ***
[CMakeFiles/myVTKfilterPlugin.dir/Class1ClientServer.cxx.o] Error
1<br>
make[1]: *** [CMakeFiles/myVTKfilterPluginPlugin.dir/all] Error 2<br>
make: *** [all] Error 2<br>
</font><br>
It seems that in order to compile all sources for plugin, it is
assumed that all classes should be derived from a vtk algorithm. But
what if not all of them are vtk classes? <br>
<br>
I appreciate your comments on how to fix it.<br>
<br>
Thank you,<br>
Sia
</body>
</html>