21#include "ITKIOMeshOBJExport.h"
115 template <
typename T>
121 for (
SizeValueType ii = 0; ii < this->m_NumberOfPoints; ++ii)
124 for (
unsigned int jj = 0; jj < this->m_PointDimension; ++jj)
132 template <
typename T>
142 auto numberOfCellPoints =
static_cast<unsigned int>(buffer[index++]);
144 for (
unsigned int jj = 0; jj < numberOfCellPoints; ++jj)
146 outputFile << buffer[index++] + 1 <<
" ";
153 template <
typename T>
159 for (
SizeValueType ii = 0; ii < this->m_NumberOfPointPixels; ++ii)
162 for (
unsigned int jj = 0; jj < this->m_PointDimension; ++jj)
172 SplitLine(
const std::string & line, std::string & type, std::string & content);
188 std::ifstream m_InputFile{};
189 std::streampos m_PointsStartPosition{};
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Abstract superclass defines mesh IO interface.
IdentifierType SizeValueType
This class defines how to read and write Object file format.
void ReadMeshInformation() override
void WriteCellData(void *buffer) override
void WritePointData(T *buffer, std::ofstream &outputFile)
void WritePointData(void *buffer) override
void PrintSelf(std::ostream &os, Indent indent) const override
void WriteCells(void *buffer) override
void WriteCells(T *buffer, std::ofstream &outputFile)
void ReadPoints(void *buffer) override
void ReadPointData(void *buffer) override
void ReadCells(void *buffer) override
static bool SplitLine(const std::string &line, std::string &type, std::string &content)
void WriteMeshInformation() override
void WritePoints(void *buffer) override
bool CanReadFile(const char *fileName) override
void ReadCellData(void *buffer) override
bool CanWriteFile(const char *fileName) override
void WritePoints(T *buffer, std::ofstream &outputFile)
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