Slicer  5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkDataFileFormatHelper.h
Go to the documentation of this file.
1 #ifndef __vtkDataFileFormatHelper_h
2 #define __vtkDataFileFormatHelper_h
3 
4 // MRML includes
5 #include "vtkMRML.h"
6 
7 // VTK includes
8 #include <vtkObject.h>
9 class vtkStringArray;
10 
12 {
13  const char *ClassName;
14  const char *Description;
15  const char *GenericName;
16  const char *Extension;
17 };
19 
20 class VTK_MRML_EXPORT vtkDataFileFormatHelper : public vtkObject
21 {
22  public:
23 
25  static vtkDataFileFormatHelper *New();
26  vtkTypeMacro(vtkDataFileFormatHelper, vtkObject);
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
29  static std::string GetFileExtensionFromFormatString(
30  const char* fileformat);
31  const char* GetClassNameFromFormatString(
32  const char* fileformat);
33 
36  //vtkGetObjectMacro ( ITKSupportedWriteFileFormats, vtkStringArray);
37  virtual vtkStringArray* GetITKSupportedWriteFileFormats();
38  virtual vtkStringArray* GetITKSupportedReadFileFormats()
39  {
40  return nullptr;
41  }
42  virtual vtkStringArray* GetITKSupportedWriteFileExtensions();
43  virtual const char* GetITKSupportedExtensionGenericNameByIndex(int idx);
44  virtual const char* GetITKSupportedExtensionClassNameByIndex(int idx);
45 
46  protected:
48  ~vtkDataFileFormatHelper() override;
49 
54 
56  virtual void InitializeITKSupportedFileFormats();
57  virtual void PopulateITKSupportedWriteFileTypes();
58  virtual void AddSupportedWriterFileFormat(
59  ITKImageFileFormat& structFileFormat);
60 
61 private:
63  void operator=(const vtkDataFileFormatHelper&) = delete;
64 };
65 
66 #endif
vtkStringArray * ITKSupportedWriteFileFormats
virtual vtkStringArray * GetITKSupportedReadFileFormats()
vtkStringArray * SupportedWriteFileClassNames
vtkStringArray * SupportedWriteFileGenericNames
vtkStringArray * SupportedWriteFileExtensions