18 #ifndef __itkImageSeriesWriter_h
19 #define __itkImageSeriesWriter_h
20 #include "ITKIOImageBaseExport.h"
44 const char *message =
"Error in IO"):
47 SetDescription(message);
52 const char *message =
"Error in IO"):
55 SetDescription(message);
82 template<
typename TInputImage,
typename TOutputImage >
113 using Superclass::SetInput;
134 virtual void Write(
void);
159 itkSetStringMacro(SeriesFormat);
160 itkGetStringMacro(SeriesFormat);
167 if ( m_FileNames != name )
185 m_FileNames.push_back(name);
194 m_FileNames.push_back(name);
201 itkSetMacro(MetaDataDictionaryArray, DictionaryArrayRawPointer);
204 itkSetMacro(UseCompression,
bool);
205 itkGetConstReferenceMacro(UseCompression,
bool);
206 itkBooleanMacro(UseCompression);
212 void PrintSelf(std::ostream & os,
Indent indent)
const;
215 void GenerateData(
void);
219 void GenerateNumericFileNamesAndWrite(
void);
228 void operator=(
const Self &);
250 void GenerateNumericFileNames(
void);
256 #ifndef ITK_MANUAL_INSTANTIATION
257 #include "itkImageSeriesWriter.hxx"
260 #endif // __itkImageSeriesWriter_h
void AddFileName(std::string const &name)
MetaDataDictionary DictionaryType
bool m_UserSpecifiedImageIO
Light weight base class for most itk classes.
SmartPointer< Self > Pointer
const FileNamesContainer & GetFileNames() const
std::vector< std::string > FileNamesContainer
ImageFileWriter< TOutputImage > WriterType
Abstract superclass defines image IO interface.
TOutputImage OutputImageType
virtual ~ImageSeriesWriterException()
ImageSeriesWriterException(char *file, unsigned int line, const char *message="Error in IO")
FileNamesContainer m_FileNames
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SizeValueType m_StartIndex
unsigned long SizeValueType
void SetFileName(std::string const &name)
SizeValueType m_IncrementIndex
std::string m_SeriesFormat
ImageIOBase::Pointer m_ImageIO
DictionaryArrayRawPointer m_MetaDataDictionaryArray
Standard exception handling object.
OutputImageType::RegionType OutputImageRegionType
MetaDataDictionary * DictionaryRawPointer
Writes image data to a single file.
InputImageType::RegionType InputImageRegionType
TInputImage InputImageType
SmartPointer< const Self > ConstPointer
void SetFileNames(const FileNamesContainer &name)
ImageSeriesWriterException(const std::string &file, unsigned int line, const char *message="Error in IO")
Control indentation during Print() invocation.
Writes image data to a series of data files.
std::vector< DictionaryRawPointer > DictionaryArrayType
Base exception class for IO problems during writing.
const DictionaryArrayType * DictionaryArrayRawPointer