[Paraview] filter as plugin

Mike Jackson mike.jackson at bluequartz.net
Wed Sep 17 14:37:03 EDT 2008


Did you use the "Tools" menu to load your plugin using the "Manage  
Plugins" menu item?

  _________________________________________________
| Mike Jackson - Principal Software Engineer      |
| BlueQuartz Software                             |
| mike.jackson at bluequartz.net                     |
| www.bluequartz.net                              |
---------------------------------------------------

On Sep 17, 2008, at 2:29 PM, Natalie Happenhofer wrote:

> Hi!
> I want to add my new filter as a plugin to paraview so I can debug  
> it and do not need to build paraview new when I change something in  
> the source.
> I did the following:
>
> I placed my source code vktHorizontalAverage.h,  
> vtkHorizontalAverage.cxx in the directory
> C:\ParaviewSource\ParaView3\Plugins
>
> I added a HorizontalAverageServerManagerXML.xml file which looks  
> like this:
> <ServerManagerConfiguration>
>  <ProxyGroup name="filters">
>        <SourceProxy name="HorizontalAverage"  
> class="vtkHorizontalAverage" label="Horizontal Average">
>     <Documentation>
>     This filter subtracts the horizontal average of the values on  
> each point of the grid so that disturbances are seen more easily.
>     </Documentation>
>     <InputProperty name="Input"
>            command="SetInputConnection">
>        <ProxyGroupDomain name="groups">
>          <Group name="sources"/>
>          <Group name="filters"/>
>        </ProxyGroupDomain>
>        <DataTypeDomain name="input_type">
>          <DataType value="vtkDataSet"/>
>        </DataTypeDomain>
>     </InputProperty>
>     </SourceProxy>
>  </ProxyGroup>
> </ServerManagerConfiguration>
>
> and I added to the CMakeLists.txt - file the following lines:
> INCLUDE_DIRECTORIES(
>   ${VTK_INCLUDE_DIR}
>   ${PARAVIEW_INCLUDE_DIRS}
> )
>
> ADD_PARAVIEW_PLUGIN(HorizontalAverage "1.0"
>   SERVER_MANAGER_XML HorizontalAverageServerManagerXML.xml
>   SERVER_MANAGER_SOURCES vtkHorizontalAverage.cxx)
>
> Well, everything compiled neatly and linked, but when I start  
> Paraview, in the menu Filters/Alphabetical there is no button for my  
> filter as there should be..
>
> Do you know what I got wrong?
>
> thx,
> NH
>
>
> Express yourself instantly with MSN Messenger! MSN Messenger  
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview



More information about the ParaView mailing list