[Paraview] Custom Filter Not Seen in 3.2.1 Filter Menu

Kent Eschenberg eschenbe at psc.edu
Wed Dec 12 15:21:17 EST 2007


Thanks, Clint. Unfortunately there still seems to be something wrong. I've 
attached the most relevant files. No errors or warnings during make but the 
following is printed when ParaView starts and the new filter is not available:

======
Failed to parse  ":/ParaViewResources/cloudGUI.xml"
Failed to parse  ":/ParaViewResources/cloudGUI.xml"
Failed to load  ":/ParaViewResources/cloudGUI.xml"
Failed to load  ":/ParaViewResources/cloudGUI.xml"
======

The actual path to that xml file is /home/eschenbe/PV/Kits/Cloud/cloudGUI.xml .

Suggestions?
Kent

clinton at elemtech.com wrote:
> I see now why it isn't showing up.  At startup, the entries in the filters 
> menu are the ones listed in 
> ParaView3/Qt/Components/Resources/XML/ParaViewFilters.xml.
> If any new ones are introduced after startup, they are added, which is why it 
> works with plugins.
> 
> To get it in there, try this...
> === cloudGUI.xml ===
> <ParaViewFilters>
>   <Filter name="Cloud" />
> </ParaViewFilters>
> ================
> 
> Then add this in your cloudParaViewImport.cmake file.
> PARAVIEW_INCLUDE_GUI_RESOURCES("${cloud_SOURCE_DIR}/cloudGUI.xml")
> 
> Hmm.. I wish that wasn't necessary.
> 
> For fun, if you want to make your own menu category, you could do
> <ParaViewFilters>
>   <Category name="CloudFilters" menu_label="&amp;CloudFilters">
>     <Filter name="Cloud"/>
>   </Category>
>   <Filter name="Cloud" />
> </ParaViewFilters>
> 
> 
> Clint
> 
> On Tuesday 11 December 2007 3:08:31 pm Kent Eschenberg wrote:
>> Clint: Thanks! Yes and yes; files attached.  - Kent
>>
>> clinton at elemtech.com wrote:
>>> Are your custom filters in the "filters" group in your server manager
>>> xml? <ProxyGroup name="filters">
>>>
>>> And your server manager xml for the filters was added to the build using
>>> PARAVIEW_INCLUDE_SERVERMANAGER_RESOURCES?
>>>
>>> Clint
>>>
>>> On Tuesday 11 December 2007 2:40:22 pm Kent Eschenberg wrote:
>>>> Using the notes at
>>>>
>>>>     http://www.paraview.org/Wiki/ExtendingParaView
>>>>
>>>> I've successfully added two custom readers to 3.2.1. However my custom
>>>> filter does not show up in the pulldown menu for filters. All 3 are
>>>> assigned to
>>>>
>>>>    PARAVIEW_EXTRA_EXTERNAL_MODULE
>>>>
>>>> and the "USE" and "ON" CMake options for all 3 are set. The debugger can
>>>> find the constructor for the custom filter. Is there anything needed to
>>>> add the name of the custom filter to the filter menu?
>>>>
>>>> The Tools->Manage Plugins menu is empty.
>>>>
>>>> TIA!
>>>> Kent
>>>> Pittsburgh Supercomputing Center
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cloudGUI.xml
Type: text/xml
Size: 151 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/paraview/attachments/20071212/41452623/cloudGUI.bin
-------------- next part --------------
SET (cloud_SRCS
  ${cloud_SOURCE_DIR}/vtkCloud.cxx
  )

INCLUDE_DIRECTORIES(${cloud_SOURCE_DIR})
INCLUDE_DIRECTORIES(${cloud_SOURCE_DIR}/..)

PARAVIEW_INCLUDE_WRAPPED_SOURCES("${cloud_SRCS}")

PARAVIEW_INCLUDE_SERVERMANAGER_RESOURCES("${cloud_SOURCE_DIR}/cloudSM.xml")

PARAVIEW_INCLUDE_GUI_RESOURCES("${cloud_SOURCE_DIR}/cloudGUI.xml")


More information about the ParaView mailing list