Takuya,

I am surprised it worked in 3.14. I don;t think there has been much
change in the ServerManager since 3.14. I could track down what change
caused it, but nonetheless, I think it's probably not a good idea to
override default proxy. You should just create a new one with a new
name and still assign to the same extensions. The user will be
presented a dialog to pick which reader to create when he opens a
matching extension file. That way state files/python scrips referring
to one or the other will continue to work seamlessly without one
accidentally creating the other one, etc.

BTW, is there are newer version of the OpenFOAM reader that needs to
go into ParaView for the upcoming release?

Utkarsh

On Sun, Aug 19, 2012 at 3:00 AM, Takuya OSHIMA
<[email protected]> wrote:
> Hi,
>
> My reader plugin shares the same name as one of the builtin readers of
> ParaView (OpenFOAMReader), as shown in the following server side XML.
>
> <ServerManagerConfiguration>
>   <ProxyGroup name="sources">
>     <SourceProxy name="OpenFOAMReader" class="vtkPOFFDevReader">
> ....
>
> If my memory serves me right I read in this list that a plugin has
> precedence over an internal object in searching for a proxy. Indeed,
> in the past released versions of ParaView (including 3.14.1), the
> plugin reader has worked well in overriding the internal
> reader. However, with the git-master of ParaView (as of today), when I
> open an OpenFOAM case, the constructor of my reader panel (derived
> from pqAutoGeneratedObjectPanel) gets executed but "this->proxy()"
> picks up the proxy for the internal reader. I wonder if this is a
> design change?
>
> Takuya OSHIMA, Ph.D.
> Faculty of Engineering, Niigata University
> 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN
> _______________________________________________
> 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
_______________________________________________
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

Reply via email to