18 #ifndef itkMeshFileWriter_h
19 #define itkMeshFileWriter_h
20 #include "ITKIOMeshExport.h"
41 const char *message =
"Error in IO",
42 const char *loc =
"Unknown"):
48 const char *message =
"Error in IO",
49 const char *loc =
"Unknown"):
77 template<
typename TInputMesh >
102 using Superclass::SetInput;
110 itkSetStringMacro(FileName);
111 itkGetStringMacro(FileName);
125 if ( this->m_MeshIO != io )
130 m_FactorySpecifiedMeshIO =
false;
131 m_UserSpecifiedMeshIO =
true;
133 itkGetModifiableObjectMacro(MeshIO,
MeshIOBase);
142 virtual void Write();
152 itkSetMacro(UseCompression,
bool);
153 itkGetConstReferenceMacro(UseCompression,
bool);
154 itkBooleanMacro(UseCompression);
160 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
162 template<
typename Output >
163 void CopyPointsToBuffer(Output *data);
165 template<
typename Output >
166 void CopyCellsToBuffer(Output *data);
168 template<
typename Output >
169 void CopyPointDataToBuffer(Output *data);
171 template<
typename Output >
172 void CopyCellDataToBuffer(Output *data);
178 void WritePointData();
180 void WriteCellData();
184 void operator=(
const Self &);
197 #ifndef ITK_MANUAL_INSTANTIATION
198 #include "itkMeshFileWriter.hxx"
201 #endif // itkMeshFileWriter_h
virtual void Update() override
Light weight base class for most itk classes.
MeshIOBase::Pointer m_MeshIO
MeshIOBase::SizeValueType SizeValueType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
MeshFileWriterException(const char *file, unsigned int line, const char *message="Error in IO", const char *loc="Unknown")
MeshFileWriterException(const std::string &file, unsigned int line, const char *message="Error in IO", const char *loc="Unknown")
IdentifierType SizeValueType
bool m_FactorySpecifiedMeshIO
InputMeshType::CellType InputMeshCellType
void SetFileTypeAsASCII()
InputMeshType::PixelType InputMeshPixelType
void SetMeshIO(MeshIOBase *io)
bool m_UserSpecifiedMeshIO
void SetFileTypeAsBINARY()
InputMeshType::Pointer InputMeshPointer
SmartPointer< const Self > ConstPointer
Standard exception handling object.
InputMeshType::RegionType InputMeshRegionType
SmartPointer< Self > Pointer
Writes mesh data to a single file.
Control indentation during Print() invocation.
Abstract superclass defines mesh IO interface.
Base exception class for IO problems during writing.