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(LookupTableName);
153 vtkGetStringMacro(LookupTableName);
159 vtkSetStringMacro(FieldDataName);
160 vtkGetStringMacro(FieldDataName);
164 virtual ostream *OpenVTKFile();
167 int WriteHeader(ostream *fp);
176 int WriteCells(ostream *fp,
vtkCellArray *cells,
const char *label);
180 int WriteCellData(ostream *fp,
vtkDataSet *ds);
184 int WritePointData(ostream *fp,
vtkDataSet *ds);
188 int WriteEdgeData(ostream *fp,
vtkGraph *
g);
192 int WriteVertexData(ostream *fp,
vtkGraph *
g);
196 int WriteRowData(ostream *fp,
vtkTable *
g);
204 int WriteDataSetData(ostream *fp,
vtkDataSet *ds);
207 void CloseVTKFile(ostream *fp);
235 int num,
int numComp);
GLsizei GLsizei GLenum GLenum const GLvoid * data
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
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
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