29 #ifndef vtkDataWriter_h 30 #define vtkDataWriter_h 32 #include "vtkIOLegacyModule.h" 61 vtkSetStringMacro(FileName);
70 vtkGetMacro(WriteToOutputString,
int);
80 vtkGetMacro(OutputStringLength,
int);
84 return reinterpret_cast<unsigned char *
>(this->OutputString);
99 char *RegisterAndGetOutputString();
105 vtkSetStringMacro(Header);
115 vtkGetMacro(WriteArrayMetaData,
bool)
124 vtkGetMacro(FileType,
int);
134 vtkSetStringMacro(ScalarsName);
143 vtkSetStringMacro(VectorsName);
152 vtkSetStringMacro(TensorsName);
161 vtkSetStringMacro(NormalsName);
170 vtkSetStringMacro(TCoordsName);
179 vtkSetStringMacro(GlobalIdsName);
188 vtkSetStringMacro(PedigreeIdsName);
197 vtkSetStringMacro(EdgeFlagsName);
206 vtkSetStringMacro(LookupTableName);
215 vtkSetStringMacro(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.
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
void SetFileTypeToBinary()
Specify file type (ASCII or BINARY) for vtk data file.
abstract superclass for arrays of numeric data
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
object to represent cell connectivity
A table, which contains similar-typed columns of data.
static vtkAlgorithm * New()
virtual void WriteData()=0
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
represent and manipulate 3D points
represent and manipulate fields of data