Use vtkStringArray to pass files to vtkImageReader2
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The SetFilePrefix/SetFilePattern methods assume that the data volume exists as a sequentially numbered list of files. It would be useful to have a more general way of setting the files, by using a vtkStringArray to hold a list of file names.
I propose to a method SetFileNames(vtkStringArray *files) to vtkImageReader2.
When this method is used, the FileName and FilePrefix will be cleared, DataExtent will be set to zero, and DataExtent will be set the number of filenames less 1.
One issue is that if someone modifies the vtkStringArray after it is passed to the image reader, the image reader will only notice the change when RequestInformation is next called. This means that after the vtkStringArray is modified, reader->Modified() must be called.