19 #ifndef itkCSVArray2DDataObject_h
20 #define itkCSVArray2DDataObject_h
45 template <
typename TData>
71 itkSetMacro(HasColumnHeaders,
bool);
72 itkSetMacro(HasRowHeaders,
bool);
73 itkBooleanMacro(HasColumnHeaders);
74 itkBooleanMacro(HasRowHeaders);
78 itkGetConstMacro(HasColumnHeaders,
bool);
79 itkGetConstMacro(HasRowHeaders,
bool);
92 unsigned int GetRowIndexByName(
const std::string &)
const;
95 unsigned int GetColumnIndexByName(
const std::string &)
const;
111 TData GetData(
const std::string &,
const std::string &)
const;
115 TData GetData(
const unsigned int &,
const unsigned int &)
const;
119 TData GetColumnData(
const std::string &,
const unsigned int &)
const;
123 TData GetRowData(
const std::string &,
const unsigned int &)
const;
127 TData operator()(
const std::string &,
const std::string &)
const;
131 TData operator()(
const unsigned int &,
const unsigned int &)
const;
134 void SetMatrixSize(
unsigned int,
unsigned int);
137 void FillMatrix(TData value);
141 void SetMatrixData(
unsigned int,
unsigned int, TData);
144 void RowHeadersPushBack(
const std::string &);
147 void ColumnHeadersPushBack(
const std::string &);
150 void EraseFirstColumnHeader();
157 void PrintSelf(std::ostream & os,
Indent indent)
const override;
170 #ifndef ITK_MANUAL_INSTANTIATION
171 #include "itkCSVArray2DDataObject.hxx"
A templated class holding a M x N size Matrix.
typename std::vector< std::string > StringVectorType
Stores parsed data from csv files.
typename itk::Array2D< TData > MatrixType
class ITK_FORWARD_EXPORT DataObject
typename std::vector< TData > NumericVectorType
StringVectorType m_RowHeaders
StringVectorType m_ColumnHeaders
Control indentation during Print() invocation.
Base class for most ITK classes.
Base class for all data objects in ITK.