]> Creatis software - gdcm.git/commitdiff
* vtk/vtkGdcmReader.cxx : bug fix when loading a list of files using the
authorregrain <regrain>
Mon, 3 May 2004 13:39:47 +0000 (13:39 +0000)
committerregrain <regrain>
Mon, 3 May 2004 13:39:47 +0000 (13:39 +0000)
       file prefix (SetFilePrefix)
     -- BeNours

ChangeLog
vtk/vtkGdcmReader.cxx

index b07483f953eb13a7b4bdc5a81f133533949a63bf..6e1161c4864d7b00937969611ef07cc0d5313d82 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,6 @@
 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
index 7708dee3a60966b772290817960c13f26b1fe332..4b6685e097dba9bd99daca93e90e12845dca8479 100644 (file)
@@ -123,6 +123,7 @@ void vtkGdcmReader::SetFileName(const char *name)
    // (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();
 }
@@ -329,16 +330,16 @@ void vtkGdcmReader::BuildFileListFromPattern()
       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;
    }
@@ -350,10 +351,10 @@ void vtkGdcmReader::BuildFileListFromPattern()
       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;
    }