[Paraview] How PV detects valid file formats?

Fred Fred stan1313 at hotmail.fr
Mon Nov 9 10:30:59 EST 2009


Should I understand your answer, esp. the CanReadFile Method, as follows: my fluent file with extension .cas may be corrupt and since there are several formats with .cas extension, the CanReadFile method associated with all of these formats returned false and them the file name disappeared from the list?

> From: dave.demarle at kitware.com
> Date: Mon, 9 Nov 2009 08:53:53 -0500
> Subject: Re: [Paraview] How PV detects valid file formats?
> To: stan1313 at hotmail.fr
> CC: paraview at paraview.org
> 
> The choice works like this:
> 
> ParaView has an internal list for the initial file extension to reader mapping.
> The default list is in
> Qt/Components/Resources/XML/ParaViewReaders.xml. When you load a
> reader type plugin that list is extended by any new extensions from
> the reader's xml.
> When there is more than one reader that recognizes the same file
> extension, the reader that comes last in the list is used, or more
> specifically tried, first.
> I say tried because readers _can_ have a CanReadFile method, in which
> the reader snoops the file to determine if it really can read it. If
> that call returns false, the next reader gets a chance and so on.
> 
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x109
> 
> 
> 
> On Sun, Nov 8, 2009 at 11:17 AM, Fred Fred <stan1313 at hotmail.fr> wrote:
> > My problem is I have a Fluent data file with extension .cas and this file is
> > not displayed in the list of available files if I select Fluent in the list.
> > I have another file that is detected though, so I wonder if PV reads the
> > header of all files suspected of being read before decidig to offer them as
> > valid choices to the user? Or is the issue anywhere else?
> >
> >
> > ________________________________
> > Achetez un nouveau PC et bénéficiez de Windows 7 dès sa sortie ! En savoir
> > plus
> > _______________________________________________
> > 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
> >
> >
 		 	   		  
_________________________________________________________________
Nouveau Windows 7 : Trouvez le PC qui vous convient. En savoir plus.
http://clk.atdmt.com/FRM/go/181574580/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20091109/0fdd705e/attachment-0001.htm>


More information about the ParaView mailing list