29 #ifndef vtkDataWriter_h 30 #define vtkDataWriter_h 32 #include "vtkIOLegacyModule.h" 61 vtkSetStringMacro(FileName);
62 vtkGetStringMacro(FileName);
80 vtkGetMacro(OutputStringLength,
vtkIdType);
81 vtkGetStringMacro(OutputString);
84 return reinterpret_cast<unsigned char *
>(this->OutputString);
99 char *RegisterAndGetOutputString();
105 vtkSetStringMacro(Header);
106 vtkGetStringMacro(Header);
114 vtkSetMacro(WriteArrayMetaData,
bool)
115 vtkGetMacro(WriteArrayMetaData,
bool)
116 vtkBooleanMacro(WriteArrayMetaData,
bool)
124 vtkGetMacro(FileType,
int);
134 vtkSetStringMacro(ScalarsName);
135 vtkGetStringMacro(ScalarsName);
143 vtkSetStringMacro(VectorsName);
144 vtkGetStringMacro(VectorsName);
152 vtkSetStringMacro(TensorsName);
153 vtkGetStringMacro(TensorsName);
161 vtkSetStringMacro(NormalsName);
162 vtkGetStringMacro(NormalsName);
170 vtkSetStringMacro(TCoordsName);
171 vtkGetStringMacro(TCoordsName);
179 vtkSetStringMacro(GlobalIdsName);
180 vtkGetStringMacro(GlobalIdsName);
188 vtkSetStringMacro(PedigreeIdsName);
189 vtkGetStringMacro(PedigreeIdsName);
197 vtkSetStringMacro(EdgeFlagsName);
198 vtkGetStringMacro(EdgeFlagsName);
206 vtkSetStringMacro(LookupTableName);
207 vtkGetStringMacro(LookupTableName);
215 vtkSetStringMacro(FieldDataName);
216 vtkGetStringMacro(FieldDataName);
222 virtual ostream *OpenVTKFile();
227 int WriteHeader(ostream *fp);
232 int WritePoints(ostream *fp,
vtkPoints *p);
237 int WriteCoordinates(ostream *fp,
vtkDataArray *coords,
int axes);
242 int WriteCells(ostream *fp,
vtkCellArray *cells,
const char *label);
248 int WriteCellData(ostream *fp,
vtkDataSet *ds);
254 int WritePointData(ostream *fp,
vtkDataSet *ds);
260 int WriteEdgeData(ostream *fp,
vtkGraph *g);
266 int WriteVertexData(ostream *fp,
vtkGraph *g);
272 int WriteRowData(ostream *fp,
vtkTable *g);
283 int WriteDataSetData(ostream *fp,
vtkDataSet *ds);
288 void CloseVTKFile(ostream *fp);
Wrapper around std::string to keep symbols short.
vtkIdType OutputStringLength
void SetFileTypeToASCII()
Specify file type (ASCII or BINARY) for 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 file type (ASCII or BINARY) for vtk data file.
abstract superclass for arrays of numeric data
object to represent cell connectivity
A table, which contains similar-typed columns of data.
static vtkAlgorithm * New()
virtual void WriteData()=0
represent and manipulate 3D points
represent and manipulate fields of data