17 #ifndef vtkDataWriter_h
18 #define vtkDataWriter_h
20 #include "vtkIOLegacyModule.h"
25 VTK_ABI_NAMESPACE_BEGIN
57 vtkSetFilePathMacro(FileName);
58 vtkGetFilePathMacro(FileName);
68 VTK_LEGACY_READER_VERSION_4_2 = 42,
69 VTK_LEGACY_READER_VERSION_5_1 = 51
82 void SetFileVersion(
int);
83 vtkGetMacro(FileVersion,
int);
84 vtkGetMacro(FileMajorVersion,
int);
85 vtkGetMacro(FileMinorVersion,
int);
103 vtkGetMacro(OutputStringLength,
vtkIdType);
104 vtkGetStringMacro(OutputString);
107 return reinterpret_cast<unsigned char*
>(this->OutputString);
122 char* RegisterAndGetOutputString();
128 vtkSetStringMacro(Header);
129 vtkGetStringMacro(Header);
137 vtkSetMacro(WriteArrayMetaData,
bool);
138 vtkGetMacro(WriteArrayMetaData,
bool);
139 vtkBooleanMacro(WriteArrayMetaData,
bool);
147 vtkGetMacro(FileType,
int);
157 vtkSetStringMacro(ScalarsName);
158 vtkGetStringMacro(ScalarsName);
166 vtkSetStringMacro(VectorsName);
167 vtkGetStringMacro(VectorsName);
175 vtkSetStringMacro(TensorsName);
176 vtkGetStringMacro(TensorsName);
184 vtkSetStringMacro(NormalsName);
185 vtkGetStringMacro(NormalsName);
193 vtkSetStringMacro(TCoordsName);
194 vtkGetStringMacro(TCoordsName);
202 vtkSetStringMacro(GlobalIdsName);
203 vtkGetStringMacro(GlobalIdsName);
211 vtkSetStringMacro(PedigreeIdsName);
212 vtkGetStringMacro(PedigreeIdsName);
220 vtkSetStringMacro(EdgeFlagsName);
221 vtkGetStringMacro(EdgeFlagsName);
229 vtkSetStringMacro(LookupTableName);
230 vtkGetStringMacro(LookupTableName);
238 vtkSetStringMacro(FieldDataName);
239 vtkGetStringMacro(FieldDataName);
245 virtual ostream* OpenVTKFile();
250 int WriteHeader(ostream* fp);
255 int WritePoints(ostream* fp,
vtkPoints* p);
260 int WriteCoordinates(ostream* fp,
vtkDataArray* coords,
int axes);
265 int WriteCells(ostream* fp,
vtkCellArray* cells,
const char* label);
271 int WriteCellsLegacy(ostream* fp,
vtkCellArray* cells,
const char* label);
277 int WriteCellData(ostream* fp,
vtkDataSet* ds);
283 int WritePointData(ostream* fp,
vtkDataSet* ds);
289 int WriteEdgeData(ostream* fp,
vtkGraph* g);
295 int WriteVertexData(ostream* fp,
vtkGraph* g);
301 int WriteRowData(ostream* fp,
vtkTable* g);
312 int WriteDataSetData(ostream* fp,
vtkDataSet* ds);
317 void CloseVTKFile(ostream* fp);
375 VTK_ABI_NAMESPACE_END
Wrapper around std::string to keep symbols short.
vtkIdType OutputStringLength
void SetFileTypeToASCII()
Specify the file type (ASCII or BINARY) of the VTK data file.
abstract class to specify dataset behavior
Abstract superclass for all arrays.
helper class for objects that write VTK data files
unsigned char * GetBinaryOutputString()
When WriteToOutputString in on, then a string is allocated, written to, and can be retrieved with the...
Base class for graph data types.
abstract class to write data to file(s)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
vtkTypeBool WriteToOutputString
void SetFileTypeToBinary()
Specify the file type (ASCII or BINARY) of the VTK data file.
abstract superclass for arrays of numeric data
object to represent cell connectivity
A table, which contains similar-typed columns of data.
std::locale CurrentLocale
static vtkAlgorithm * New()
virtual void WriteData()=0
represent and manipulate 3D points
represent and manipulate fields of data