Skip to content

Conversation

@pieper
Copy link
Member

@pieper pieper commented Feb 8, 2019

When a directory is added via the Add Data dialog,
it may contain a collection of files that should be
treated as a single MRML data type, such as a series
of image files that get loaded as a volume.

This change allows a qSlicerFileReader subclass to define
a method that can examine the contents of a directory and
filter out any files that should be loaded as a group. One
of these files then serves as the archetype and the io properties
can be configured such that the files are loaded correctly.

@pieper
Copy link
Member Author

pieper commented Feb 8, 2019

WIP: do not commit yet.

When a directory is added via the Add Data dialog,
it may contain a collection of files that should be
treated as a single MRML data type, such as a series
of image files that get loaded as a volume.

This change allows a qSlicerFileReader subclass to define
a method that can examine the contents of a directory and
filter out any files that should be loaded as a group.  One
of these files then serves as the archetype and the io properties
can be configured such that the files are loaded correctly.

The qSlicerVolumesReader and related classes have been updated
to use the hooks for reading multiple image files as a volume
by default.
@pieper pieper force-pushed the image-series-add-data branch from 81b744b to 8cad501 Compare February 9, 2019 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant