VTK  9.1.0
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=========================================================================*/
23#ifndef vtkXMLTableWriter_h
24#define vtkXMLTableWriter_h
25
26#include "vtkIOXMLModule.h" // For export macro
27#include "vtkXMLWriter.h"
28
29class vtkTable;
30
31class VTKIOXML_EXPORT vtkXMLTableWriter : public vtkXMLWriter
32{
33public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
43 vtkSetMacro(NumberOfPieces, int);
44 vtkGetMacro(NumberOfPieces, int);
46
48
52 vtkSetMacro(WritePiece, int);
53 vtkGetMacro(WritePiece, int);
55
61
62protected:
65
67
69 const char* GetDataSetName() override; // vtkTable isn't a DataSet but it's used by vtkXMLWriter
70
74 const char* GetDefaultFileExtension() override;
75
76 void SetInputUpdateExtent(int piece, int numPieces);
77
81
84
88
92
94 vtkDataSetAttributes* ds, vtkIndent indent, OffsetsManagerGroup* dsManager);
95
97 vtkDataSetAttributes* ds, int timestep, OffsetsManagerGroup* pdManager);
98
100
105
110
116
121
123
124private:
125 vtkXMLTableWriter(const vtkXMLTableWriter&) = delete;
126 void operator=(const vtkXMLTableWriter&) = delete;
127};
128
129#endif
represent and manipulate attribute data in a dataset
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:172
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.
Definition: vtkXMLWriter.h:62
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
@ index
Definition: vtkX3D.h:252
int vtkTypeBool
Definition: vtkABI.h:69