18 #ifndef itkMetaArrayWriter_h
19 #define itkMetaArrayWriter_h
20 #include "ITKIOMetaExport.h"
26 #include "metaArray.h"
48 itkSetStringMacro(FileName);
51 itkGetStringMacro(FileName);
56 itkSetStringMacro(DataFileName);
59 itkGetStringMacro(DataFileName);
62 itkSetMacro(Binary,
bool);
66 itkGetConstMacro(Binary,
bool);
69 template<
typename TValue >
70 void SetInput(MET_ValueEnumType _metaElementType,
73 m_Buffer = (
const void *)( _array->data_block() );
74 m_MetaArray.InitializeEssential(_array->
Size(),
80 template<
typename TValue,
unsigned int VLength >
81 void SetInput(MET_ValueEnumType _metaElementType,
85 m_MetaArray.InitializeEssential(VLength,
91 template<
typename TValue,
unsigned int VLength >
92 void SetInput(MET_ValueEnumType _metaElementType,
96 m_MetaArray.InitializeEssential(VLength,
102 template<
typename TValue,
unsigned int VLength >
107 m_MetaArray.InitializeEssential(VLength,
113 template<
typename TValue >
118 m_MetaArray.InitializeEssential(_vector->
Size(),
130 template<
typename TValue >
136 int cols = ( *_array )[0].GetSize();
139 m_MetaArray.InitializeEssential(rows,
145 m_Buffer = m_MetaArray.ElementData();
146 for (
int i = 0; i < rows; i++ )
148 for (
int j = 0; j < cols; j++ )
150 m_MetaArray.ElementData( i * cols + j, (
double)( ( *_array )[i][j] ) );
156 itkSetMacro(Precision,
unsigned int);
157 itkGetConstMacro(Precision,
unsigned int);
161 void ConvertTo(MET_ValueEnumType _metaElementType);
170 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
187 #endif // itkMetaArrayWriter_h
Array class with size defined at construction time.
Light weight base class for most itk classes.
Simulate a standard C array with copy semnatics.
unsigned int Size(void) const noexcept
Represents an array whose length can be defined at run-time.
A templated class holding a n-Dimensional vector.
SizeValueType GetSize(void) const
const TValue * GetDataPointer() const noexcept
LightProcessObject is the base class for all process objects (source, filters, mappers) in the Insigh...
Control indentation during Print() invocation.
SizeValueType Size(void) const
ValueType * GetDataPointer()
A templated class holding a n-Dimensional covariant vector.