[Paraview] Custom Filters Menu

Eric E. Monson emonson at cs.duke.edu
Fri Jun 25 10:08:11 EDT 2010


Hey Duncan,

I'll attach an example directory which contains a cpd file from a custom filter I defined to just glyph with spheres. It's marked in the servermanager xml file and in the cpd file that you just copy and paste the CompoundSourceProxy section from the cpd file and add it inside the ProxyGroup section of the xml. You then add a name="..." and optionally a label="..." to the CompoundSourceProxy line. The rest of it is just like described in 

http://www.itk.org/Wiki/Plugin_HowTo#Adding_Categories_to_the_Filters_Menu

and the section on adding icons. You create a build directory, and point ccmake to a ParaView build directory and it will create a library which can be loaded in ParaView with Manage Plugins, as you said.

The servermanager XML itself with the custom filter pasted in can just be loaded, too, if you want your custom filter as a plugin but don't need the new filters menu category. In principle, the wiki seems to suggest that the GUI xml for the menu item and an icon qrc file can both be compiled together using Qt's rcc to allow the custom menu item and icon along with the servermanager XML to be loaded into ParaView without needing to build the plugin against ParaView, but I've never been able to figure that part out...

Anyway, here's the example. Good luck,
-Eric



On Jun 25, 2010, at 6:33 AM, Johnson, Duncan (UK) wrote:

> Hi All,
>  
> I'm looking for a way to put custom filters generated within paraview (as cpd files) into my own categories in the filters menu.  Reading this:
>  
> http://www.mail-archive.com/paraview@paraview.org/msg02907.html it seems it can be done but I can't find any examples.  Could someone post the changes that have to be made to cpd files to make them ServerManager XML files?  I then assume you create an accompanying xfilterGUI.xml and run them through cmake to produce a xfilter.so file which you then read in with Manage Plugins?
>  
> Many Thanks,
>  
> Duncan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100625/7e91c327/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SphereGlyphPlugin.zip
Type: application/zip
Size: 17119 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100625/7e91c327/attachment-0001.zip>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100625/7e91c327/attachment-0003.htm>


More information about the ParaView mailing list