14 #ifndef vtkDICOMFileSorter_h
15 #define vtkDICOMFileSorter_h
17 #include "vtkObject.h"
18 #include "vtkDICOMModule.h"
19 #include "vtkDICOMConfig.h"
22 #if defined(VTK_ABI_NAMESPACE_BEGIN)
23 VTK_ABI_NAMESPACE_BEGIN
29 #if defined(VTK_ABI_NAMESPACE_BEGIN)
47 void PrintSelf(ostream& os, vtkIndent indent) VTK_DICOM_OVERRIDE;
58 const char *GetInputFileName() {
return this->InputFileName; }
69 vtkStringArray *GetInputFileNames() {
return this->InputFileNames; }
81 int GetNumberOfSeries();
95 vtkStringArray *GetOutputFileNames() {
return this->OutputFileNames; }
103 unsigned long GetErrorCode() {
return this->ErrorCode; }
116 vtkSetMacro(RequirePixelData,
int);
117 vtkBooleanMacro(RequirePixelData,
int);
118 int GetRequirePixelData() {
return this->RequirePixelData; }
125 const
char *InputFileName;
126 vtkStringArray *InputFileNames;
127 vtkStringArray *OutputFileNames;
128 int RequirePixelData;
130 vtkTimeStamp UpdateTime;
131 unsigned long ErrorCode;
132 char *InternalFileName;
135 virtual
void Execute();
138 virtual
void SortFiles(vtkStringArray *input);
147 void AddSeriesFileNames(
int study, vtkStringArray *files);
151 void RelayError(
vtkObject *o,
unsigned long e,
void *data);
155 void SetInternalFileName(const
char *fname);
158 void SetErrorCode(
unsigned long e) { this->ErrorCode = e; }
161 #ifdef VTK_DICOM_DELETE
169 class StringArrayVector;
171 class FileInfoVectorList;
173 StringArrayVector *Series;
174 vtkIntArray *Studies;
177 static bool CompareInstance(
const FileInfo &fi1,
const FileInfo &fi2);
Sort DICOM files and group them by study and series.
Definition: vtkDICOMFileSorter.h:44
int GetLastSeriesForStudy(int study)
Get the last series (inclusive) for a particular study.
void PrintSelf(ostream &os, vtkIndent indent) VTK_DICOM_OVERRIDE
vtkStringArray * GetFileNamesForSeries(int i)
Get the file names for a specific series.
int GetFirstSeriesForStudy(int study)
Get the first series for a particular study.
void SetInputFileNames(vtkStringArray *input)
Set a list of file names to group and sort.
int GetNumberOfStudies()
Get the number of studies that were found.
void SetInputFileName(const char *name)
Set one file from the desired series.
const char * GetInternalFileName()
Get the filename associated with the error code.
Definition: vtkDICOMFileSorter.h:107
virtual void Update()
Update the information about the files.
abstract base class for most VTK objects
Definition: vtkObject.h:54