VTK  9.0.3
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 
29 class vtkTable;
30 
31 class VTKIOXML_EXPORT vtkXMLTableWriter : public vtkXMLWriter
32 {
33 public:
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 
62 protected:
64  ~vtkXMLTableWriter() override;
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 
78  int WriteHeader();
79  int WriteAPiece();
80  int WriteFooter();
81 
84 
88 
90  void WriteAppendedPiece(int index, vtkIndent indent);
92 
94  vtkDataSetAttributes* ds, vtkIndent indent, OffsetsManagerGroup* dsManager);
95 
97  vtkDataSetAttributes* ds, int timestep, OffsetsManagerGroup* pdManager);
98 
100 
105 
110 
114  vtkTypeInt64* NumberOfColsPositions;
115  vtkTypeInt64* NumberOfRowsPositions;
116 
121 
123 
124 private:
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:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:63
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 * GetDataSetName() override
void SetInputUpdateExtent(int piece, int numPieces)
void WriteAppendedPieceData(int index)
int WriteInlineMode(vtkIndent indent)
OffsetsManagerArray * RowsOM
For TimeStep support.
static vtkXMLTableWriter * New()
vtkTypeInt64 * NumberOfRowsPositions
void WriteAppendedPieceAttributes(int index)
~vtkXMLTableWriter() override
void WriteRowDataInline(vtkDataSetAttributes *ds, vtkIndent indent)
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
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)
vtkTable * GetInputAsTable()
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.
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