VTK  9.3.20240425
vtkXMLTableWriter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
14#ifndef vtkXMLTableWriter_h
15#define vtkXMLTableWriter_h
16
17#include "vtkIOXMLModule.h" // For export macro
18#include "vtkXMLWriter.h"
19
20VTK_ABI_NAMESPACE_BEGIN
21class vtkTable;
22
23class VTKIOXML_EXPORT vtkXMLTableWriter : public vtkXMLWriter
24{
25public:
27 void PrintSelf(ostream& os, vtkIndent indent) override;
29
31
35 vtkSetMacro(NumberOfPieces, int);
36 vtkGetMacro(NumberOfPieces, int);
38
40
44 vtkSetMacro(WritePiece, int);
45 vtkGetMacro(WritePiece, int);
47
53
54protected:
57
58 int FillInputPortInformation(int port, vtkInformation* info) override;
59
61 const char* GetDataSetName() override; // vtkTable isn't a DataSet but it's used by vtkXMLWriter
62
66 const char* GetDefaultFileExtension() override;
67
68 void SetInputUpdateExtent(int piece, int numPieces);
69
73
76
80
82 void WriteAppendedPiece(int index, vtkIndent indent);
83 void WriteAppendedPieceData(int index);
84
86 vtkDataSetAttributes* ds, vtkIndent indent, OffsetsManagerGroup* dsManager);
87
89 vtkDataSetAttributes* ds, int timestep, OffsetsManagerGroup* pdManager);
90
92
97
102
108
113
115
116private:
117 vtkXMLTableWriter(const vtkXMLTableWriter&) = delete;
118 void operator=(const vtkXMLTableWriter&) = delete;
119};
120
121VTK_ABI_NAMESPACE_END
122#endif
represent and manipulate attribute data in a dataset
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
A table, which contains similar-typed columns of data.
Definition vtkTable.h:168
Write VTK XML Table files.
void AllocatePositionArrays()
vtkTable * GetInputAsTable()
vtkTypeInt64 * NumberOfColsPositions
Positions of attributes for each piece.
void DeletePositionArrays()
int WritePiece
Which piece to write, if not all.
void WriteRowDataAppended(vtkDataSetAttributes *ds, vtkIndent indent, OffsetsManagerGroup *dsManager)
void WriteInlinePieceAttributes()
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
void SetInputUpdateExtent(int piece, int numPieces)
void WriteAppendedPieceData(int index)
int WriteInlineMode(vtkIndent indent)
OffsetsManagerArray * RowsOM
For TimeStep support.
vtkTypeInt64 * NumberOfRowsPositions
void WriteAppendedPieceAttributes(int index)
~vtkXMLTableWriter() override
void WriteRowDataInline(vtkDataSetAttributes *ds, vtkIndent indent)
const char * GetDataSetName() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void WriteInlinePiece(vtkIndent indent)
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
See the vtkAlgorithm for a description of what these do.
void WriteRowDataAppendedData(vtkDataSetAttributes *ds, int timestep, OffsetsManagerGroup *pdManager)
int NumberOfPieces
Number of pieces used for streaming.
static vtkXMLTableWriter * New()
void WriteAppendedPiece(int index, vtkIndent indent)
Superclass for VTK's XML file writers.
int vtkTypeBool
Definition vtkABI.h:64