2004-05-03 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
* vtk/vtkGdcmReader.cxx : bug fix when loading a list of files using the
- file pattern (SetFilePattern)
+ file prefix (SetFilePrefix)
2004-05-02 Mathieu Malaterre <Mathieu.Malaterre@creatis.insa-lyon.fr>
* Add a new test: ShowDicom, for now this is just the c++ version of
// (see vtkGdcmReader::AddFileName), we additionaly need to purge
// this list when we manually positionate the filename.
vtkDebugMacro("Clearing all files given with AddFileName");
+ this->SetFilePattern("");
this->FileNameList.clear();
this->Modified();
}
return;
}
- if ((! this->FileNameList.empty()) && this->FilePattern )
+ if ((! this->FileNameList.empty()) && this->FilePrefix )
{
- vtkErrorMacro("Both AddFileName and SetFilePattern schemes were used");
+ vtkErrorMacro("Both AddFileName and SetFilePrefix schemes were used");
vtkErrorMacro("No images loaded ! ");
return;
}
- if (this->FileName && this->FilePattern)
+ if (this->FileName && this->FilePrefix)
{
- vtkErrorMacro("Both SetFileName and SetFilePattern schemes were used");
+ vtkErrorMacro("Both SetFileName and SetFilePrefix schemes were used");
vtkErrorMacro("No images loaded ! ");
return;
}
return;
}
- if (!this->FileName && !this->FilePattern)
+ if (!this->FileName && !this->FilePrefix)
{
vtkErrorMacro("FileNames are not set. Either use AddFileName() or");
- vtkErrorMacro("specify a FileName or FilePattern.");
+ vtkErrorMacro("specify a FileName or FilePrefix.");
return;
}