19 #ifndef itkBYUMeshIO_h
20 #define itkBYUMeshIO_h
21 #include "ITKIOMeshBYUExport.h"
66 CanReadFile(
const char *
fileName)
override;
70 ReadMeshInformation()
override;
74 ReadPoints(
void * buffer)
override;
77 ReadCells(
void * buffer)
override;
80 ReadPointData(
void * buffer)
override;
83 ReadCellData(
void * buffer)
override;
93 CanWriteFile(
const char *
fileName)
override;
97 WriteMeshInformation()
override;
101 WritePoints(
void * buffer)
override;
104 WriteCells(
void * buffer)
override;
107 WritePointData(
void * buffer)
override;
110 WriteCellData(
void * buffer)
override;
117 template <
typename T>
126 for (
SizeValueType ii = 0; ii < this->m_NumberOfPoints; ii++)
128 outputFile << indent;
129 for (
unsigned int jj = 0; jj < this->m_PointDimension; jj++)
131 outputFile << convert(buffer[index++]) <<
" ";
137 template <
typename T>
146 auto numberOfCellPoints = static_cast<unsigned int>(buffer[++index]);
148 for (
unsigned int jj = 0; jj < numberOfCellPoints - 1; jj++)
150 outputFile << indent << buffer[index++] + 1;
153 outputFile << indent << -static_cast<long long>(buffer[index++] + 1) <<
'\n';
162 PrintSelf(std::ostream & os,
Indent indent)
const override;