[vtkusers] vtkImageReader problem

Miguel Angel Martin Fernandez vtk at helios.tel.uva.es
Tue Jan 9 12:55:18 EST 2001


Hello users,

	I'm using the class vtkImageReader to read some images. My problem
is that if the files don't exist, it gives an error, but it doesn't stop
the pipeline, which goes on with uncontrolled data. How can I test if the
reading operation has been succesful or not and stop the pipeline
accordingly? I could test the existence of the file, but the problem is
that if the file is not an image, the class obtains an error, but the
pipeline goes on anyway.

	I'm really using vtk2.4 at the momment, and haven't tested this in
vtk3.1, but I've been looking at the vtkImageReader.cxx and it seems the
same.

	Any help will be welcome.

	Thanx. Miguel.

-- 
            ________________________________________________________
  _________(_                                                      _)_________
  \········(_   Miguel Ángel Martín Fernández                      _)········/
   \·······(_   ETSI Telecomunicación, Universidad de Valladolid   _)·······/
    \······(_   Campus Miguel Delibes, Camino del Cementerio, s/n  _)······/
     )·····(_   e-mail: miguel at atenea.tel.uva.es                   _)·····(
    /······(_   Tfno: +34-983-423000 Ext. 25548                    _)······\
   /·······(________________________________________________________)·······\
  /__________)                                                 (_____________\
                                                        





More information about the vtkusers mailing list