VTK  9.4.20250413
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 "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_5_0
18#include "vtkIOXMLModule.h" // For export macro
19#include "vtkXMLWriter.h"
20
21VTK_ABI_NAMESPACE_BEGIN
22class vtkTable;
23
24class VTKIOXML_EXPORT vtkXMLTableWriter : public vtkXMLWriter
25{
26public:
28 void PrintSelf(ostream& os, vtkIndent indent) override;
30
32
36 vtkSetMacro(NumberOfPieces, int);
37 vtkGetMacro(NumberOfPieces, int);
39
41
45 vtkSetMacro(WritePiece, int);
46 vtkGetMacro(WritePiece, int);
48
54
55protected:
58
59 int FillInputPortInformation(int port, vtkInformation* info) override;
60
62 VTK_DEPRECATED_IN_9_5_0("Use GetTableInput() instead.")
63 vtkTable* GetInputAsTable() { return this->GetTableInput(); }
64 const char* GetDataSetName() override; // vtkTable isn't a DataSet but it's used by vtkXMLWriter
65
69 const char* GetDefaultFileExtension() override;
70
71 void SetInputUpdateExtent(int piece, int numPieces);
72
76
79
83
85 void WriteAppendedPiece(int index, vtkIndent indent);
86 void WriteAppendedPieceData(int index);
87
89 vtkDataSetAttributes* ds, vtkIndent indent, OffsetsManagerGroup* dsManager);
90
92 vtkDataSetAttributes* ds, int timestep, OffsetsManagerGroup* pdManager);
93
95
100
105
111
116
118
119private:
120 vtkXMLTableWriter(const vtkXMLTableWriter&) = delete;
121 void operator=(const vtkXMLTableWriter&) = delete;
122};
123
124VTK_ABI_NAMESPACE_END
125#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:169
Write VTK XML Table files.
void AllocatePositionArrays()
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()
vtkTable * GetTableInput()
void WriteAppendedPiece(int index, vtkIndent indent)
Superclass for VTK's XML file writers.
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_DEPRECATED_IN_9_5_0(reason)