13 #ifndef mitkImageWriter_h
14 #define mitkImageWriter_h
35 itkFactorylessNewMacro(Self);
51 itkGetStringMacro(FileName);
66 itkGetStringMacro(Extension);
76 itkSetStringMacro(FilePrefix);
81 itkGetStringMacro(FilePrefix);
86 itkSetStringMacro(FilePattern);
91 itkGetStringMacro(FilePattern);
120 using Superclass::SetInput;
136 void DoWrite(BaseData::Pointer data)
override;
#define MITKLEGACYIO_EXPORT
Class for nodes of the DataTree.
Interface class of writers that write data to files.
const mitk::Image * GetInput()
virtual void SetInput(DataNode *)
Set the DataTreenode as Input. Important: The Writer always have a SetInput-Function.
std::string GetWritenMIMEType() override
Return the MimeType of the saved File.
const char * GetFileDialogPattern() override
void SetInput(mitk::Image *input)
void SetUseCompression(bool useCompression)
virtual void SetExtension(const char *extension)
Explicitly set the extension to be added to the filename.
virtual void SetFileName(const std::string &fileName)
bool CanWriteBaseDataType(BaseData::Pointer data) override
mitkClassMacro(ImageWriter, mitk::FileWriter)
std::string m_FileNameWithoutExtension
virtual void WriteByITK(mitk::Image *image, const std::string &fileName)
std::string GetSupportedBaseData() const override
bool CanWriteDataType(DataNode *) override
Check if the Writer can write the Content of the.
void GenerateData() override
const char * GetDefaultExtension() override
void DoWrite(BaseData::Pointer data) override
std::string m_FilePattern
std::string GetFileExtension() override
Return the extension to be added to the filename.
void SetFileName(const char *fileName) override
const char * GetDefaultFilename() override
std::vector< std::string > GetPossibleFileExtensions() override
Return the possible file extensions for the data type associated with the writer.
void SetDefaultExtension()
Set the extension to be added to the filename to the default.
virtual void SetExtension(const std::string &extension)
Image class for storing images.
Find image slices visible on a given plane.