[Paraview] Reader plugin have same extension
Nehme Bilal
nehmebilal at gmail.com
Thu Sep 17 18:59:52 EDT 2009
CanReadFile can sometime be accepted by more than one reader. A csv
file for example. So CanReadFile is not always enough.
Personally I create my own extension to avoid conflict and ask the
users to change the extension of their file before opening it in
Paraview.
Probably letting the user choose the right reader is a better solution.
Nehme
2009/9/17 Moreland, Kenneth <kmorel at sandia.gov>:
> Also don’t forget about the CanReadFile option. Implementing CanReadFile is
> by far the best option of them all because it will allow ParaView to always
> pick the right file without pestering the user with a chooser dialog box,
> which can be quite annoying.
>
> -Ken
>
>
> On 9/17/09 2:12 PM, "David E DeMarle" <dave.demarle at kitware.com> wrote:
>
> Sure you have a choice. File a feature request. If you can't wait, change
> the code. If you do, please submit a patch so everyone can benefit from your
> effort.
>
> I say that when PV encounter two reader that claim same extension then best
> let user decide which he want to be use. that will be my choice... maybe I
> don't have a choice!
>
>
>
> On Thu, Sep 17, 2009 at 10:55 AM, David E DeMarle <dave.demarle at kitware.com>
> wrote:
>
> Precedence is based on order in the XML, last XML entry parsed gets
> priority so that plugins override the provided readers easily. In addition,
> readers can have a bool CanReadFile(); method, which gets called before the
> decision is finalized.
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x109
>
>
> On Thu, Sep 17, 2009 at 1:04 PM, Bam Ting <bampingting at gmail.com> wrote:
>
> I have problem with ParaView! Two reader read file - same extension! how can
> ParaView choose mine instead of this other? He crash because his expect the
> other file not mine :)
>
>
> _______________________________________________
> Powered by www.kitware.com <http://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
>
>
>
>
>
>
>
>
> **** Kenneth Moreland
> *** Sandia National Laboratories
> ***********
> *** *** *** email: kmorel at sandia.gov
> ** *** ** phone: (505) 844-8919
> *** web: http://www.cs.unm.edu/~kmorel
>
>
> _______________________________________________
> 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
>
>
More information about the ParaView
mailing list