<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Re: [Paraview] Problems with user defined filter</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18812">
<STYLE>@font-face {
        font-family: å®‹ä½“;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-STYLE: normal; FONT-FAMILY: Verdana; COLOR: windowtext; FONT-WEIGHT: normal; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT color=#000080 size=2 face=Verdana>I want to write VTK filter 
first.Because I&nbsp; think it will be easier coding in&nbsp;windows than in 
linux,and if a VTK filter can work I know how to change a it to a&nbsp; paraview 
plugin filter.</FONT></DIV>
<DIV><FONT color=#000080>I'll try to&nbsp;write it as a paraview plugin 
directly.Thank you !</FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT>&nbsp;</DIV>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana>2009-09-22 </FONT></DIV><FONT 
color=#000080 size=2 face=Verdana>
<HR style="WIDTH: 100px" align=left color=#b5c4df SIZE=1>
</FONT>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN>young_jh123</SPAN> 
</FONT></DIV>
<HR color=#b5c4df SIZE=1>

<DIV><FONT size=2 face=Verdana><STRONG>发件人:</STRONG> Moreland, Kenneth 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>发送时间:</STRONG> 2009-09-22&nbsp; 06:59:07 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>收件人:</STRONG> young_jh123; 
paraview@paraview.org </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>抄送:</STRONG> </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>主题:</STRONG> Re: [Paraview] Problems with 
user defined filter </FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana><FONT 
face="Calibri, Verdana, Helvetica, Arial"><SPAN style="FONT-SIZE: 11pt">How are 
you trying to use your filter? &nbsp;Are you trying to define it in a ParaView 
plugin? &nbsp;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" &lt;<A href="young_jh123@qq.com">young_jh123@qq.com</A>&gt; 
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 &nbsp;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>&nbsp;<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"> &nbsp;<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>&nbsp;&nbsp;&nbsp;**** 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>&nbsp;&nbsp;&nbsp;&nbsp;*** 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>*********** 
&nbsp;<BR>*** *** *** &nbsp;email: <A 
href="kmorel@sandia.gov">kmorel@sandia.gov</A><BR>** &nbsp;*** &nbsp;** 
&nbsp;phone: (505) 844-8919<BR>&nbsp;&nbsp;&nbsp;&nbsp;*** 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<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></FONT></DIV></BODY></HTML>