17 #ifndef _MITK_IMAGE_WRITER__H_
18 #define _MITK_IMAGE_WRITER__H_
39 itkFactorylessNewMacro(
Self) itkCloneMacro(
Self)
47 virtual
void SetFileName(const
char *fileName) override;
48 virtual
void SetFileName(const
std::
string &fileName);
53 itkGetStringMacro(FileName);
60 virtual
void SetExtension(const
char *extension);
61 virtual
void SetExtension(const
std::
string &extension);
68 itkGetStringMacro(Extension);
73 void SetDefaultExtension();
78 itkSetStringMacro(FilePrefix);
83 itkGetStringMacro(FilePrefix);
88 itkSetStringMacro(FilePattern);
93 itkGetStringMacro(FilePattern);
103 virtual
std::vector<
std::
string> GetPossibleFileExtensions() override;
105 virtual
std::
string GetSupportedBaseData() const override;
110 virtual
std::
string GetFileExtension() override;
115 virtual
bool CanWriteDataType(
DataNode *) override;
120 virtual
std::
string GetWritenMIMEType() override;
134 virtual const
char *GetDefaultFilename() override;
135 virtual const
char *GetFileDialogPattern() override;
136 virtual const
char *GetDefaultExtension() override;
140 void SetUseCompression(
bool useCompression);
151 virtual ~ImageWriter();
153 virtual
void GenerateData() override;
155 virtual
void WriteByITK(
mitk::
Image *image, const
std::
string &fileName);
159 std::
string m_FileNameWithoutExtension;
163 std::
string m_FilePattern;
169 bool m_UseCompression;
173 #endif //_MITK_IMAGE_WRITER__H_
#define MITKLEGACYIO_EXPORT
Base of all data objects.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Image class for storing images.
Interface class of writers that write data to files.
itk::ProcessObject Superclass
Class for nodes of the DataTree.