21#include "ITKIOMeshBYUExport.h"
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';
This class defines how to read and write BYU Geometry File Format.
void WritePointData(void *buffer) override
bool CanReadFile(const char *fileName) override
void WritePoints(T *buffer, std::ofstream &outputFile)
void WriteCells(void *buffer) override
bool CanWriteFile(const char *fileName) override
void WriteMeshInformation() override
void ReadCellData(void *buffer) override
void WriteCells(T *buffer, std::ofstream &outputFile)
void ReadPoints(void *buffer) override
void WritePoints(void *buffer) override
void ReadCells(void *buffer) override
void ReadMeshInformation() override
void WriteCellData(void *buffer) override
void PrintSelf(std::ostream &os, Indent indent) const override
void ReadPointData(void *buffer) override
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Abstract superclass defines mesh IO interface.
IdentifierType SizeValueType
std::streamoff StreamOffsetType
Base class for most ITK classes.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
std::string ConvertNumberToString(const TValue val)
unsigned long SizeValueType