18 #ifndef itkImageFileWriter_h
19 #define itkImageFileWriter_h
20 #include "ITKIOImageBaseExport.h"
42 const char * message =
"Error in IO",
43 const char * loc =
"Unknown")
44 : ExceptionObject(file, line, message, loc)
50 const char * message =
"Error in IO",
51 const char * loc =
"Unknown")
52 : ExceptionObject(file, line, message, loc)
86 template <typename TInputImage>
111 using Superclass::SetInput;
119 GetInput(
unsigned int idx);
122 itkSetStringMacro(FileName);
123 itkGetStringMacro(FileName);
139 if (this->m_ImageIO != io)
142 this->m_ImageIO = io;
144 m_FactorySpecifiedImageIO =
false;
167 return m_PasteIORegion;
172 itkSetMacro(NumberOfStreamDivisions,
unsigned int);
173 itkGetConstReferenceMacro(NumberOfStreamDivisions,
unsigned int);
192 m_PasteIORegion =
ImageIORegion(TInputImage::ImageDimension);
193 m_UserSpecifiedIORegion =
false;
198 itkSetMacro(UseCompression,
bool);
199 itkGetConstReferenceMacro(UseCompression,
bool);
200 itkBooleanMacro(UseCompression);
205 itkSetMacro(CompressionLevel,
int);
206 itkGetConstReferenceMacro(CompressionLevel,
int);
215 itkSetMacro(UseInputMetaDataDictionary,
bool);
216 itkGetConstReferenceMacro(UseInputMetaDataDictionary,
bool);
217 itkBooleanMacro(UseInputMetaDataDictionary);
224 PrintSelf(std::ostream & os,
Indent indent)
const override;
228 GenerateData()
override;
234 bool m_UserSpecifiedImageIO{
false };
237 unsigned int m_NumberOfStreamDivisions{ 1 };
238 bool m_UserSpecifiedIORegion{
false };
240 bool m_FactorySpecifiedImageIO{
false };
241 bool m_UseCompression{
false };
242 int m_CompressionLevel{ -1 };
243 bool m_UseInputMetaDataDictionary{
true };
247 #ifndef ITK_MANUAL_INSTANTIATION
248 # include "itkImageFileWriter.hxx"
251 #ifdef ITK_IO_FACTORY_REGISTER_MANAGER
252 # include "itkImageIOFactoryRegisterManager.h"
255 #endif // itkImageFileWriter_h