|
Medical Imaging Interaction Toolkit
2025.08.00
Medical Imaging Interaction Toolkit
|
Writer for mitk::Image. More...
#include <mitkImageWriter.h>


Public Member Functions | |
| mitkClassMacro (ImageWriter, mitk::FileWriter) | |
| Pointer | Clone () const |
| void | SetFileName (const char *fileName) override |
| virtual void | SetFileName (const std::string &fileName) |
| virtual const char * | GetFileName () const |
| virtual void | SetExtension (const char *extension) |
| Explicitly set the extension to be added to the filename. More... | |
| virtual void | SetExtension (const std::string &extension) |
| virtual const char * | GetExtension () const |
| Get the extension to be added to the filename. More... | |
| void | SetDefaultExtension () |
| Set the extension to be added to the filename to the default. More... | |
| virtual void | SetFilePrefix (const char *_arg) |
| virtual const char * | GetFilePrefix () const |
| virtual void | SetFilePattern (const char *_arg) |
| virtual const char * | GetFilePattern () const |
| void | SetInput (mitk::Image *input) |
| std::vector< std::string > | GetPossibleFileExtensions () override |
| Return the possible file extensions for the data type associated with the writer. More... | |
| std::string | GetSupportedBaseData () const override |
| std::string | GetFileExtension () override |
| Return the extension to be added to the filename. More... | |
| bool | CanWriteDataType (DataNode *) override |
| Check if the Writer can write the Content of the. More... | |
| std::string | GetWritenMIMEType () override |
| Return the MimeType of the saved File. More... | |
| virtual void | SetInput (DataNode *) |
| Set the DataTreenode as Input. Important: The Writer always have a SetInput-Function. More... | |
| const mitk::Image * | GetInput () |
| const char * | GetDefaultFilename () override |
| const char * | GetFileDialogPattern () override |
| const char * | GetDefaultExtension () override |
| bool | CanWriteBaseDataType (BaseData::Pointer data) override |
| void | DoWrite (BaseData::Pointer data) override |
| void | SetUseCompression (bool useCompression) |
Public Member Functions inherited from mitk::FileWriterWithInformation | |
| virtual std::vector< std::string > | GetClassHierarchy () const override |
| virtual const char * | GetClassName () const |
Public Member Functions inherited from mitk::FileWriter | |
| bool | IsExtensionValid (std::string extension) |
| Checks if given extension is valid for file writer. More... | |
| virtual std::string | GetPossibleFileExtensionsAsString () |
| possible file extensions for the data type associated with the writer as string More... | |
| void | SetInput (BaseData *data) |
| virtual void | Write ()=0 |
| virtual bool | CanWriteToMemory () |
| Specifies, whether the file writer also can write a file to a memory buffer. More... | |
| virtual void | SetWriteToMemory (bool write) |
| Set/Get functions to advise the file writer to use tis internal memory array as file writing destination. More... | |
| virtual bool | GetWriteToMemory () |
| virtual const char * | GetMemoryPointer () |
| To be used along with a call of SetWriteToMemory(true). This returns the memory buffer where the file was written. More... | |
| virtual unsigned int | GetMemorySize () |
| To be used along with a call of SetWriteToMemory(true). This returns the size of the memory buffer where the file was written. More... | |
| virtual void | ReleaseMemory () |
| CAUTION: It's up to the user to call this function to release the memory buffer after use in case the file writer has written to its memory array. More... | |
Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from mitk::FileWriterWithInformation | |
| static const char * | GetStaticNameOfClass () |
Static Public Member Functions inherited from mitk::FileWriter | |
| static const char * | GetStaticNameOfClass () |
Public Attributes | |
| mitkWriterMacro | |
Protected Member Functions | |
| ImageWriter () | |
| ~ImageWriter () override | |
| void | GenerateData () override |
| virtual void | WriteByITK (mitk::Image *image, const std::string &fileName) |
Protected Member Functions inherited from mitk::FileWriter | |
| FileWriter () | |
| ~FileWriter () override | |
Protected Attributes | |
| std::string | m_FileName |
| std::string | m_FileNameWithoutExtension |
| std::string | m_FilePrefix |
| std::string | m_FilePattern |
| std::string | m_Extension |
| std::string | m_MimeType |
| bool | m_UseCompression |
Protected Attributes inherited from mitk::FileWriter | |
| bool | m_CanWriteToMemory |
| bool | m_WriteToMemory |
| char * | m_MemoryBuffer |
| unsigned int | m_MemoryBufferSize |
Additional Inherited Members | |
Public Types inherited from mitk::FileWriterWithInformation | |
| typedef FileWriterWithInformation | Self |
| typedef FileWriter | Superclass |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef itk::SmartPointer< const Self > | ConstPointer |
Public Types inherited from mitk::FileWriter | |
| typedef FileWriter | Self |
| typedef itk::ProcessObject | Superclass |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef itk::SmartPointer< const Self > | ConstPointer |
Writer for mitk::Image.
Uses the given extension (SetExtension) to decide the format to write (.mhd is default, .tif, .png, .jpg supported yet).
Definition at line 30 of file mitkImageWriter.h.
|
protected |
Constructor.
|
overrideprotected |
Virtual destructor.
|
overridevirtual |
Implements mitk::FileWriterWithInformation.
|
overridevirtual |
Check if the Writer can write the Content of the.
Reimplemented from mitk::FileWriter.
| Pointer mitk::ImageWriter::Clone | ( | ) | const |
|
overridevirtual |
Implements mitk::FileWriterWithInformation.
|
overrideprotected |
|
overridevirtual |
Implements mitk::FileWriterWithInformation.
|
overridevirtual |
Implements mitk::FileWriterWithInformation.
|
virtual |
Get the extension to be added to the filename.
|
overridevirtual |
Implements mitk::FileWriterWithInformation.
|
overridevirtual |
Return the extension to be added to the filename.
Reimplemented from mitk::FileWriter.
|
virtual |
Implements mitk::FileWriter.
|
virtual |
Implements mitk::FileWriter.
|
virtual |
Implements mitk::FileWriter.
| const mitk::Image* mitk::ImageWriter::GetInput | ( | ) |
|
overridevirtual |
Return the possible file extensions for the data type associated with the writer.
Implements mitk::FileWriter.
|
overridevirtual |
Implements mitk::FileWriter.
|
overridevirtual |
Return the MimeType of the saved File.
Reimplemented from mitk::FileWriter.
| mitk::ImageWriter::mitkClassMacro | ( | ImageWriter | , |
| mitk::FileWriter | |||
| ) |
|
static |
| void mitk::ImageWriter::SetDefaultExtension | ( | ) |
Set the extension to be added to the filename to the default.
|
virtual |
Explicitly set the extension to be added to the filename.
| extension | Extension to be added to the filename, including a "." (e.g., ".mhd"). |
|
virtual |
|
overridevirtual |
Sets the filename of the file to write.
| fileName | the name of the file to write. |
Implements mitk::FileWriter.
|
virtual |
|
virtual |
Implements mitk::FileWriter.
|
virtual |
Implements mitk::FileWriter.
|
virtual |
Set the DataTreenode as Input. Important: The Writer always have a SetInput-Function.
| void mitk::ImageWriter::SetInput | ( | mitk::Image * | input | ) |
Sets the 0'th input object for the filter.
| input | the first input for the filter. |
| void mitk::ImageWriter::SetUseCompression | ( | bool | useCompression | ) |
|
protectedvirtual |
|
protected |
Definition at line 163 of file mitkImageWriter.h.
|
protected |
Definition at line 155 of file mitkImageWriter.h.
|
protected |
Definition at line 157 of file mitkImageWriter.h.
|
protected |
Definition at line 161 of file mitkImageWriter.h.
|
protected |
Definition at line 159 of file mitkImageWriter.h.
|
protected |
Definition at line 165 of file mitkImageWriter.h.
|
protected |
Definition at line 167 of file mitkImageWriter.h.
| mitk::ImageWriter::mitkWriterMacro |
Definition at line 37 of file mitkImageWriter.h.