Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 741
    • Issues 741
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 197
    • Merge requests 197
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #2834
Closed
Open
Created Feb 04, 2006 by Kitware Robot@kwrobotOwner

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[0] will be set to zero, and DataExtent[1] 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.

Assignee
Assign to
Time tracking