<HTML>
<HEAD>
<TITLE>Re: [Paraview] Problems with user defined filter</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>How are you trying to use your filter? Are you trying to define it in a ParaView plugin? If so, you should be able to leave out any of the _EXPORT declarations and it should work OK.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 9/21/09 9:02 AM, "young_jh123" <<a href="young_jh123@qq.com">young_jh123@qq.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Verdana, Helvetica, Arial">I write a filter class just like the vtkAppendFilter ,and change a little on the mothod <B>RequestData</B></FONT></SPAN><FONT FACE="Verdana, Helvetica, Arial"><FONT SIZE="2"><SPAN STYLE='font-size:10pt'> ..My class also inherited from vtkUnstructuredGridAlgorithm .I did the job all on windows vs2008.The vtkAppendFilter.h defines the class with VTK_GRAPHICS_EXPORT which means __declspec( dllimport ) on my computer,but if I used that macro to define my own filter class it would met some link errors .If I use the macro VTK_EXPORT or did not use macro to define my filter class ,it can complie well,but it did not work.I tried the debug.I found it would not invoke my RequestData function at all,and the it would not invoke vtkUnstructuredGridAlgorithm'RequestData methord either.The program invoked the method RequestData form vtkAlgorithm class directly.I don't know why? what should I do if want to define my own filter? Thanks a lot!<BR>
<BR>
</SPAN></FONT><FONT COLOR="#C0C0C0"><SPAN STYLE='font-size:11pt'>2009-09-21 <BR>
</SPAN></FONT><SPAN STYLE='font-size:11pt'><HR ALIGN=LEFT SIZE="2" WIDTH="100%"><FONT COLOR="#C0C0C0">young_jh123</FONT></SPAN><FONT COLOR="#C0C0C0"><FONT SIZE="2"><SPAN STYLE='font-size:10pt'> <BR>
</SPAN></FONT></FONT><FONT SIZE="2"><SPAN STYLE='font-size:10pt'><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><FONT SIZE="2"><SPAN STYLE='font-size:10pt'><BR>
</SPAN></FONT></FONT><FONT SIZE="2"><SPAN STYLE='font-size:10pt'><FONT FACE="Consolas, Courier New, Courier"><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>
</FONT></SPAN></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>