Slicer  4.8
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 
11 typedef struct
12 {
13  const char *ClassName;
14  const char *Description;
15  const char *GenericName;
16  const char *Extension;
18 
19 class VTK_MRML_EXPORT vtkDataFileFormatHelper : public vtkObject
20 {
21  public:
22 
24  static vtkDataFileFormatHelper *New();
25  vtkTypeMacro(vtkDataFileFormatHelper, vtkObject);
26  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
27 
28  static std::string GetFileExtensionFromFormatString(
29  const char* fileformat);
30  const char* GetClassNameFromFormatString(
31  const char* fileformat);
32 
35  //vtkGetObjectMacro ( ITKSupportedWriteFileFormats, vtkStringArray);
36  virtual vtkStringArray* GetITKSupportedWriteFileFormats();
37  virtual vtkStringArray* GetITKSupportedReadFileFormats()
38  {
39  return NULL;
40  }
41  virtual vtkStringArray* GetITKSupportedWriteFileExtensions();
42  virtual const char* GetITKSupportedExtensionGenericNameByIndex(int idx);
43  virtual const char* GetITKSupportedExtensionClassNameByIndex(int idx);
44 
45  protected:
47  virtual ~vtkDataFileFormatHelper();
48 
53 
55  virtual void InitializeITKSupportedFileFormats();
56  virtual void PopulateITKSupportedWriteFileTypes();
57  virtual void AddSupportedWriterFileFormat(
58  ITKImageFileFormat& structFileFormat);
59 
60 private:
62  void operator=(const vtkDataFileFormatHelper&);
63 };
64 
65 #endif
vtkStringArray * ITKSupportedWriteFileFormats
virtual vtkStringArray * GetITKSupportedReadFileFormats()
vtkStringArray * SupportedWriteFileClassNames
vtkStringArray * SupportedWriteFileGenericNames
vtkStringArray * SupportedWriteFileExtensions