[Paraview] adding a new filter
Moreland, Kenneth
kmorel at sandia.gov
Tue Aug 26 09:37:32 EDT 2008
As an alternative to modifying the ParaView source, you can build your filter into a plugin. Building plugins is about as easy as modifying the ParaView source and they are much easier to maintain and distribute. You can get information about building plugins on the Wiki.
http://www.paraview.org/Wiki/Plugin_HowTo
-Ken
> -----Original Message-----
> From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org]
> On Behalf Of Burlen Loring
> Sent: Tuesday, August 26, 2008 6:57 AM
> To: Natalie Happenhofer
> Cc: paraview at paraview.org
> Subject: Re: [Paraview] adding a new filter
>
> Hi,
>
> Assuming your filter is written in such a way that is compatible with
> VTK's pipeline, you have a couple of options, I am going to explain what
> I believe to be the easiest option. You can then seek further
> information if it doesn't suite your situation.
>
> A few things you will need to do. I'll assume your going keep the source
> inside ParaView tree. Eg. You might place the source in
> ParaView3/Servers/Filters. The simplest way to get the PV UI is to
> leverage ParaView's XML parser by defining the interface to your filter.
> PV will parse your XML & create a panel for you. Here are the things
> you'll need to do:
>
> 1)
> Edit the Filters_SRCS section of:
> ParaView3/Servers/Filters/CMakeLists.txt
> so that your source is built with ParaView. You may/may not need to use
> "//BTX" and "//ETX" comments in your header to eXclude parts of your
> public interface from the python/tcl wrappings (or alternatively add
> your filter to the WRAP_EXCLUDE section.
>
> 2)
> Edit:
> ParaView3/Qt/Components/Resources/XML/ParaViewFilters.xml
> add
> <Filter name="MyName" />
>
> 3)
> Edit:
> ParaView3/Servers/ServerManager/Resources/filters.xml
> Here you'll have to write a brief section of XML code that defines your
> filter's interface. You can take a look at some of the other filters
> there for some examples.
>
>
> Did I forget anything? Also you'll want to check out the ParaView and
> VTK Guide,http://www.kitware.com/products/books.html it has these steps
> spelled out much more clearly. And our wiki
> http://www.paraview.org/Wiki/ParaView has more info on plugins (one of
> your other options).
>
> Burlen
>
>
>
> Natalie Happenhofer wrote:
> > Hello!
> > I want to add a new Filter to Paraview, so I downloaded the source
> > code with cvs and wrote two files concerning my new filter, one
> > header- and one source file. Now I have to include it into Paraview,
> > so here my question:
> > Which files do I have to alterate to get the filter included? I
> > suppose I have to write a kind of Filter-Panel, for the GUI, but I did
> > not find anything similar for already included filters..
> >
> > thx for your help,
> > Natalie Happenhofer
> >
> > ------------------------------------------------------------------------
> > Express yourself instantly with MSN Messenger! MSN Messenger
> > <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > ParaView mailing list
> > ParaView at paraview.org
> > http://www.paraview.org/mailman/listinfo/paraview
> >
>
>
> --
> Burlen Loring
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x137
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
More information about the ParaView
mailing list