18 #ifndef sitkImageFileWriter_h
19 #define sitkImageFileWriter_h
62 std::string ToString()
const override;
65 std::string
GetName()
const override {
return std::string(
"ImageFileWriter"); }
78 SITK_RETURN_SELF_TYPE_HEADER SetUseCompression(
bool UseCompression );
79 bool GetUseCompression( )
const;
81 SITK_RETURN_SELF_TYPE_HEADER
UseCompressionOn( ) {
return this->SetUseCompression(
true); }
82 SITK_RETURN_SELF_TYPE_HEADER
UseCompressionOff( ) {
return this->SetUseCompression(
false); }
92 SITK_RETURN_SELF_TYPE_HEADER SetCompressionLevel(
int);
93 int GetCompressionLevel()
const;
102 SITK_RETURN_SELF_TYPE_HEADER SetCompressor(
const std::string &);
103 std::string GetCompressor();
118 virtual SITK_RETURN_SELF_TYPE_HEADER SetImageIO(
const std::string &imageio);
119 virtual std::string GetImageIO( )
const;
131 SITK_RETURN_SELF_TYPE_HEADER SetKeepOriginalImageUID(
bool KeepOriginalImageUID );
132 bool GetKeepOriginalImageUID( )
const;
138 SITK_RETURN_SELF_TYPE_HEADER SetFileName (
const std::string &fileName );
139 std::string GetFileName()
const;
141 SITK_RETURN_SELF_TYPE_HEADER Execute (
const Image& );
142 SITK_RETURN_SELF_TYPE_HEADER Execute (
const Image& ,
const std::string &inFileName,
bool useCompression,
int compressionLevel );
148 template <
class T> Self& ExecuteInternal (
const Image& );
181 const std::string &fileName,
182 bool useCompression=
false,
183 int compressionLevel=-1);