Sorry I was mistaken. CanReadFile happens only after you attempt to open the file. I do not know why one particular "*.cas" file would not show up in the list.
David E DeMarle Kitware, Inc. R&D Engineer 28 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-371-3971 x109 On Mon, Nov 9, 2009 at 12:43 PM, Nehme Bilal <[email protected]> wrote: > Dave, > > Are you saying that can CanReadFile is called even before the file is > selected ! ? > Fred is saying that his file is not showing up at all, so if > CanReadFile is called only after the file has is selected, > his problem is not releated to CanReadFile. > > Nehme > > > 2009/11/9 David E DeMarle <[email protected]>: >> In general yes. >> >> In this instance, the only standard reader for ".cas" files is >> vtkFLUENTReader. Unless you've loaded some plugin then, >> vtkFLUENTReader is what considers your file to be corrupt. >> >> David E DeMarle >> Kitware, Inc. >> R&D Engineer >> 28 Corporate Drive >> Clifton Park, NY 12065-8662 >> Phone: 518-371-3971 x109 >> >> >> >> On Mon, Nov 9, 2009 at 10:30 AM, Fred Fred <[email protected]> wrote: >>> 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: [email protected] >>>> Date: Mon, 9 Nov 2009 08:53:53 -0500 >>>> Subject: Re: [Paraview] How PV detects valid file formats? >>>> To: [email protected] >>>> CC: [email protected] >>>> >>>> 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 <[email protected]> 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. >> _______________________________________________ >> 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
