29 #ifndef vtkDataWriter_h
30 #define vtkDataWriter_h
32 #include "vtkIOLegacyModule.h"
68 vtkSetFilePathMacro(FileName);
69 vtkGetFilePathMacro(FileName);
79 VTK_LEGACY_READER_VERSION_4_2 = 42,
80 VTK_LEGACY_READER_VERSION_5_1 = 51
93 void SetFileVersion(
int);
94 vtkGetMacro(FileVersion,
int);
95 vtkGetMacro(FileMajorVersion,
int);
96 vtkGetMacro(FileMinorVersion,
int);
114 vtkGetMacro(OutputStringLength,
vtkIdType);
115 vtkGetStringMacro(OutputString);
118 return reinterpret_cast<unsigned char*
>(this->OutputString);
133 char* RegisterAndGetOutputString();
139 vtkSetStringMacro(Header);
140 vtkGetStringMacro(Header);
148 vtkSetMacro(WriteArrayMetaData,
bool);
149 vtkGetMacro(WriteArrayMetaData,
bool);
150 vtkBooleanMacro(WriteArrayMetaData,
bool);
158 vtkGetMacro(FileType,
int);
168 vtkSetStringMacro(ScalarsName);
169 vtkGetStringMacro(ScalarsName);
177 vtkSetStringMacro(VectorsName);
178 vtkGetStringMacro(VectorsName);
186 vtkSetStringMacro(TensorsName);
187 vtkGetStringMacro(TensorsName);
195 vtkSetStringMacro(NormalsName);
196 vtkGetStringMacro(NormalsName);
204 vtkSetStringMacro(TCoordsName);
205 vtkGetStringMacro(TCoordsName);
213 vtkSetStringMacro(GlobalIdsName);
214 vtkGetStringMacro(GlobalIdsName);
222 vtkSetStringMacro(PedigreeIdsName);
223 vtkGetStringMacro(PedigreeIdsName);
231 vtkSetStringMacro(EdgeFlagsName);
232 vtkGetStringMacro(EdgeFlagsName);
240 vtkSetStringMacro(LookupTableName);
241 vtkGetStringMacro(LookupTableName);
249 vtkSetStringMacro(FieldDataName);
250 vtkGetStringMacro(FieldDataName);
256 virtual ostream* OpenVTKFile();
261 int WriteHeader(ostream* fp);
266 int WritePoints(ostream* fp,
vtkPoints* p);
271 int WriteCoordinates(ostream* fp,
vtkDataArray* coords,
int axes);
276 int WriteCells(ostream* fp,
vtkCellArray* cells,
const char* label);
282 int WriteCellsLegacy(ostream* fp,
vtkCellArray* cells,
const char* label);
288 int WriteCellData(ostream* fp,
vtkDataSet* ds);
294 int WritePointData(ostream* fp,
vtkDataSet* ds);
300 int WriteEdgeData(ostream* fp,
vtkGraph* g);
306 int WriteVertexData(ostream* fp,
vtkGraph* g);
312 int WriteRowData(ostream* fp,
vtkTable* g);
323 int WriteDataSetData(ostream* fp,
vtkDataSet* ds);
328 void CloseVTKFile(ostream* fp);
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