[Paraview] Problems with user defined filter

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue Sep 22 10:25:08 EDT 2009


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?
Utkarsh

On Tue, Sep 22, 2009 at 9:04 AM, young_jh123 <young_jh123 at qq.com> wrote:

>  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.
> I'll try to write it as a paraview plugin directly.Thank you !
>
> 2009-09-22
> ------------------------------
>  young_jh123
> ------------------------------
> *发件人:* Moreland, Kenneth
> *发送时间:* 2009-09-22  06:59:07
> *收件人:* young_jh123; paraview at paraview.org
> *抄送:*
> *主题:* Re: [Paraview] Problems with user defined filter
>  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.
>
> -Ken
>
>
> On 9/21/09 9:02 AM, "young_jh123" <young_jh123 at qq.com> wrote:
>
> I write a filter class just like the vtkAppendFilter ,and change a little
> on the mothod *RequestData* ..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!
>
> 2009-09-21
> ------------------------------
> young_jh123
>
>
>
>    ****      Kenneth Moreland
>     ***      Sandia National Laboratories
> ***********
> *** *** ***  email: kmorel at sandia.gov
> **  ***  **  phone: (505) 844-8919
>     ***      web:   http://www.cs.unm.edu/~kmorel
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090922/f84771cb/attachment.htm>


More information about the ParaView mailing list