16#ifndef vtkXMLWriterBase_h
17#define vtkXMLWriterBase_h
20#include "vtkIOXMLModule.h"
24VTK_ABI_NAMESPACE_BEGIN
82 vtkSetMacro(ByteOrder,
int);
83 vtkGetMacro(ByteOrder,
int);
94 vtkGetMacro(HeaderType,
int);
105 vtkGetMacro(IdType,
int);
122 vtkSetMacro(WriteToOutputString,
bool);
123 vtkGetMacro(WriteToOutputString,
bool);
124 vtkBooleanMacro(WriteToOutputString,
bool);
162 vtkGetMacro(CompressionLevel,
int);
173 vtkGetMacro(BlockSize,
size_t);
182 vtkSetMacro(DataMode,
int);
183 vtkGetMacro(DataMode,
int);
197 vtkSetMacro(EncodeAppendedData,
bool);
198 vtkGetMacro(EncodeAppendedData,
bool);
199 vtkBooleanMacro(EncodeAppendedData,
bool);
208 vtkGetMacro(WriteTimeValue,
bool);
209 vtkSetMacro(WriteTimeValue,
bool);
210 vtkBooleanMacro(WriteTimeValue,
bool);
278 bool WriteTimeValue =
true;
Superclass for all sources, filters, and sinks in VTK.
Abstract interface for data compression classes.
a simple class to control print indentation
Abstract base class for VTK-XML writers.
void SetByteOrderToBigEndian()
Get/Set the byte order of data written to the file.
virtual void SetIdType(int)
Get/Set the size of the vtkIdType values stored in the file.
vtkDataCompressor * Compressor
vtkGetFilePathMacro(FileName)
Get/Set the name of the output file.
vtkSetFilePathMacro(FileName)
Get/Set the name of the output file.
virtual int GetDataSetMajorVersion()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetHeaderType(int)
Get/Set the binary data header word type.
void SetIdTypeToInt32()
Get/Set the size of the vtkIdType values stored in the file.
void SetDataModeToBinary()
Get/Set the data mode used for the file's data.
void SetDataModeToAscii()
Get/Set the data mode used for the file's data.
void SetCompressionLevel(int compressorLevel)
Get/Set compression level.
void SetCompressorTypeToLZMA()
Convenience functions to set the compressor to certain known types.
virtual int GetDataSetMinorVersion()
void SetCompressorTypeToNone()
Convenience functions to set the compressor to certain known types.
void SetHeaderTypeToUInt32()
Get/Set the binary data header word type.
void SetCompressorTypeToLZ4()
Convenience functions to set the compressor to certain known types.
VTK_UNBLOCKTHREADS int Write()
Invoke the writer.
virtual void SetCompressor(vtkDataCompressor *)
Get/Set the compressor used to compress binary and appended data before writing to the file.
void SetIdTypeToInt64()
Get/Set the size of the vtkIdType values stored in the file.
virtual const char * GetDefaultFileExtension()=0
Get the default file extension for files written by this writer.
~vtkXMLWriterBase() override
void SetHeaderTypeToUInt64()
Get/Set the binary data header word type.
void SetCompressorTypeToZLib()
Convenience functions to set the compressor to certain known types.
virtual void SetBlockSize(size_t blockSize)
Get/Set the block size used in compression.
void SetByteOrderToLittleEndian()
Get/Set the byte order of data written to the file.
void SetCompressorType(int compressorType)
Convenience functions to set the compressor to certain known types.
void SetDataModeToAppended()
Get/Set the data mode used for the file's data.
std::string GetOutputString()
Enable writing to an OutputString instead of the default, a file.
#define VTK_UNBLOCKTHREADS