So you have written a vtk filter, then I am assuming you have some main() in which you are creating a VTK-pipeline to use this filter? Are you setting up the inputs correctly? Try calling Update() directly on the filter, does that result in calling of your RequestData() method? <div>
<br></div><div>Utkarsh<br><br><div class="gmail_quote">On Tue, Sep 22, 2009 at 9:04 AM, young_jh123 <span dir="ltr"><<a href="mailto:young_jh123@qq.com">young_jh123@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div 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 think it will be easier coding in windows than in
linux,and if a VTK filter can work I know how to change a it to a paraview
plugin filter.</font></div>
<div><font color="#000080">I'll try to write it as a paraview plugin
directly.Thank you !</font></div>
<div><font color="#000080" size="2" face="Verdana"></font> </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 06:59:07
</font></div>
<div><font size="2" face="Verdana"><strong>收件人:</strong> young_jh123;
<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a> </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><div></div><div class="h5">
<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? 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="http://young_jh123@qq.com" target="_blank">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="http://kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a><br>** *** **
phone: (505) 844-8919<br> ***
web: <a href="http://www.cs.unm.edu/~kmorel" target="_blank">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>
</div></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>