VTK  9.2.6
vtkXMLTableWriter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkXMLTableWriter.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
25
26#ifndef vtkXMLTableWriter_h
27#define vtkXMLTableWriter_h
28
29#include "vtkIOXMLModule.h" // For export macro
30#include "vtkXMLWriter.h"
31
32class vtkTable;
33
34class VTKIOXML_EXPORT vtkXMLTableWriter : public vtkXMLWriter
35{
36public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
46 vtkSetMacro(NumberOfPieces, int);
47 vtkGetMacro(NumberOfPieces, int);
49
51
55 vtkSetMacro(WritePiece, int);
56 vtkGetMacro(WritePiece, int);
58
64
65protected:
68
69 int FillInputPortInformation(int port, vtkInformation* info) override;
70
72 const char* GetDataSetName() override; // vtkTable isn't a DataSet but it's used by vtkXMLWriter
73
77 const char* GetDefaultFileExtension() override;
78
79 void SetInputUpdateExtent(int piece, int numPieces);
80
84
87
91
93 void WriteAppendedPiece(int index, vtkIndent indent);
94 void WriteAppendedPieceData(int index);
95
97 vtkDataSetAttributes* ds, vtkIndent indent, OffsetsManagerGroup* dsManager);
98
100 vtkDataSetAttributes* ds, int timestep, OffsetsManagerGroup* pdManager);
101
103
108
113
119
124
126
127private:
128 vtkXMLTableWriter(const vtkXMLTableWriter&) = delete;
129 void operator=(const vtkXMLTableWriter&) = delete;
130};
131
132#endif
represent and manipulate attribute data in a dataset
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
A table, which contains similar-typed columns of data.
Definition vtkTable.h:74
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)
int vtkTypeBool
Definition vtkABI.h:69