28 #ifndef vtkDataWriter_h
29 #define vtkDataWriter_h
54 vtkSetStringMacro(FileName);
55 vtkGetStringMacro(FileName);
60 vtkSetMacro(WriteToOutputString,
int);
61 vtkGetMacro(WriteToOutputString,
int);
62 vtkBooleanMacro(WriteToOutputString,
int);
69 vtkGetMacro(OutputStringLength,
int);
70 vtkGetStringMacro(OutputString);
73 return reinterpret_cast<unsigned char *
>(this->OutputString);
84 char *RegisterAndGetOutputString();
88 vtkSetStringMacro(Header);
89 vtkGetStringMacro(Header);
95 vtkGetMacro(FileType,
int);
103 vtkSetStringMacro(ScalarsName);
104 vtkGetStringMacro(ScalarsName);
110 vtkSetStringMacro(VectorsName);
111 vtkGetStringMacro(VectorsName);
117 vtkSetStringMacro(TensorsName);
118 vtkGetStringMacro(TensorsName);
124 vtkSetStringMacro(NormalsName);
125 vtkGetStringMacro(NormalsName);
131 vtkSetStringMacro(TCoordsName);
132 vtkGetStringMacro(TCoordsName);
138 vtkSetStringMacro(GlobalIdsName);
139 vtkGetStringMacro(GlobalIdsName);
145 vtkSetStringMacro(PedigreeIdsName);
146 vtkGetStringMacro(PedigreeIdsName);
152 vtkSetStringMacro(EdgeFlagsName);
153 vtkGetStringMacro(EdgeFlagsName);
159 vtkSetStringMacro(LookupTableName);
160 vtkGetStringMacro(LookupTableName);
166 vtkSetStringMacro(FieldDataName);
167 vtkGetStringMacro(FieldDataName);
171 virtual ostream *OpenVTKFile();
174 int WriteHeader(ostream *fp);
177 int WritePoints(ostream *fp,
vtkPoints *p);
180 int WriteCoordinates(ostream *fp,
vtkDataArray *coords,
int axes);
183 int WriteCells(ostream *fp,
vtkCellArray *cells,
const char *label);
187 int WriteCellData(ostream *fp,
vtkDataSet *ds);
191 int WritePointData(ostream *fp,
vtkDataSet *ds);
195 int WriteEdgeData(ostream *fp,
vtkGraph *g);
199 int WriteVertexData(ostream *fp,
vtkGraph *g);
203 int WriteRowData(ostream *fp,
vtkTable *g);
211 int WriteDataSetData(ostream *fp,
vtkDataSet *ds);
214 void CloseVTKFile(ostream *fp);
243 int num,
int numComp);
244 int WriteScalarData(ostream *fp,
vtkDataArray *s,
int num);
245 int WriteVectorData(ostream *fp,
vtkDataArray *v,
int num);
246 int WriteNormalData(ostream *fp,
vtkDataArray *n,
int num);
247 int WriteTCoordData(ostream *fp,
vtkDataArray *tc,
int num);
248 int WriteTensorData(ostream *fp,
vtkDataArray *t,
int num);
249 int WriteGlobalIdData(ostream *fp,
vtkDataArray *g,
int num);
251 int WriteEdgeFlagsData(ostream *fp,
vtkDataArray *edgeFlags,
int num);
Wrapper around std::string to keep symbols short.
void SetFileTypeToASCII()
abstract class to specify dataset behavior
Abstract superclass for all arrays.
helper class for objects that write vtk data files
unsigned char * GetBinaryOutputString()
#define VTKIOLEGACY_EXPORT
Base class for graph data types.
abstract class to write data to file(s)
a simple class to control print indentation
void SetFileTypeToBinary()
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
void PrintSelf(ostream &os, vtkIndent indent)
represent and manipulate 3D points
represent and manipulate fields of data