18 #ifndef itkMeshFileWriter_h
19 #define itkMeshFileWriter_h
20 #include "ITKIOMeshExport.h"
51 template<
typename TInputMesh >
76 using Superclass::SetInput;
84 itkSetStringMacro(FileName);
85 itkGetStringMacro(FileName);
99 if ( this->m_MeshIO != io )
104 m_FactorySpecifiedMeshIO =
false;
105 m_UserSpecifiedMeshIO =
true;
107 itkGetModifiableObjectMacro(MeshIO,
MeshIOBase);
116 virtual void Write();
126 itkSetMacro(UseCompression,
bool);
127 itkGetConstReferenceMacro(UseCompression,
bool);
128 itkBooleanMacro(UseCompression);
134 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
136 template< typename Output >
137 void CopyPointsToBuffer(Output *data);
139 template< typename Output >
140 void CopyCellsToBuffer(Output *data);
142 template< typename Output >
143 void CopyPointDataToBuffer(Output *data);
145 template< typename Output >
146 void CopyCellDataToBuffer(Output *data);
152 void WritePointData();
154 void WriteCellData();
159 std::
string m_FileName;
161 bool m_UserSpecifiedMeshIO;
163 bool m_FactorySpecifiedMeshIO;
165 bool m_UseCompression;
166 bool m_FileTypeIsBINARY;
170 #ifndef ITK_MANUAL_INSTANTIATION
171 #include "itkMeshFileWriter.hxx"
174 #endif // itkMeshFileWriter_h
virtual void Update() override
Light weight base class for most itk classes.
MeshIOBase::SizeValueType SizeValueType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
IdentifierType SizeValueType
InputMeshType::CellType InputMeshCellType
void SetFileTypeAsASCII()
InputMeshType::PixelType InputMeshPixelType
void SetMeshIO(MeshIOBase *io)
void SetFileTypeAsBINARY()
InputMeshType::Pointer InputMeshPointer
SmartPointer< const Self > ConstPointer
InputMeshType::RegionType InputMeshRegionType
SmartPointer< Self > Pointer
Writes mesh data to a single file.
Control indentation during Print() invocation.
Abstract superclass defines mesh IO interface.