[vtkusers] vtkTiffReader canreadfile

Sébastien MARAUX maraux at ondim.fr
Thu Feb 5 07:06:06 EST 2004


Is there a mistake between return 0 and return res in vtkTiffReader ->
CanReadFile ?

Canreadfiles used to return 1 when it was successful, now it returns 3
if OK, and 0 if error.

 

 

int vtkTIFFReader::CanReadFile(const char* fname)

{

  vtkTIFFReaderInternal tf;

  int res = tf.Open(fname);

  tf.Clean();

  if (res)

    {

    return 3;

    }

  return 0;

}

 

and tf.open() returns 1 when it is successful.

 

Any Help will be appreciated.


S. MARAUX

 

-----Message d'origine-----
De : vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] De la part
de Sébastien MARAUX
Envoyé : jeudi 5 février 2004 11:08
À : vtkusers at vtk.org
Objet : [vtkusers] vtkTiffReader canreadfile

 

Hello

 

I was using vtkTiffReader in an old piece of code. (1 and half / 2 years
old)

I recently needed it, so I downloaded latest vtk 4.2.5.

 

When I call canReadFile on file that I was able to read before, it
returns 3.

What does it means ?

 

I used to check that return code was 1, and see in current tiffreader
code

that there is only 2 return values : 0 and 3.

 

What has changed ?

 

Thanks in advance for any help.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040205/a5cb5122/attachment.htm>


More information about the vtkusers mailing list