<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Courier New, Courier, monospace"><font face="Courier
New, Courier, monospace">I think you should be able to use the
CXX_SOURCES argument. for eg<br>
<br>
ADD_PARAVIEW_PLUGIN(<br>
</font>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<br>
CXX_SOURCES SomePath/Class1.cxx
SomePath/Class2.cxx<br>
)<br>
<br>
<br>
<br>
</font>
<div class="moz-cite-prefix">On 03/14/2014 08:52 AM, Sunrise wrote:<br>
</div>
<blockquote cite="mid:532325CB.9090604@gmail.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
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( &nbs
p;
;
<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 <br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Paraview-developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Paraview-developers@paraview.org">Paraview-developers@paraview.org</a>
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview-developers">http://public.kitware.com/mailman/listinfo/paraview-developers</a>
</pre>
</blockquote>
<br>
</body>
</html>