19 #ifndef itkBYUMeshIO_h
20 #define itkBYUMeshIO_h
21 #include "ITKIOMeshBYUExport.h"
56 itkOverrideGetNameOfClassMacro(
BYUMeshIO);
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>
125 for (
SizeValueType ii = 0; ii < this->m_NumberOfPoints; ++ii)
127 outputFile << indent;
128 for (
unsigned int jj = 0; jj < this->m_PointDimension; ++jj)
136 template <
typename T>
145 auto numberOfCellPoints = static_cast<unsigned int>(buffer[++index]);
147 for (
unsigned int jj = 0; jj < numberOfCellPoints - 1; ++jj)
149 outputFile << indent << buffer[index++] + 1;
152 outputFile << indent << -static_cast<long long>(buffer[index++] + 1) <<
'\n';
161 PrintSelf(std::ostream & os,
Indent indent)
const override;