VTK  9.4.20250421
vtkXMLPStructuredDataWriter.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
11#ifndef vtkXMLPStructuredDataWriter_h
12#define vtkXMLPStructuredDataWriter_h
13
14#include "vtkIOParallelXMLModule.h" // For export macro
15#include "vtkXMLPDataWriter.h"
16
17#include <map> // for keeping track of extents
18#include <vector> // for keeping track of extents
19
20VTK_ABI_NAMESPACE_BEGIN
22
23class VTKIOPARALLELXML_EXPORT vtkXMLPStructuredDataWriter : public vtkXMLPDataWriter
24{
25public:
27 void PrintSelf(ostream& os, vtkIndent indent) override;
28
29protected:
32
34 void WritePrimaryElementAttributes(ostream& os, vtkIndent indent) override;
35 void WritePPieceAttributes(int index) override;
36 vtkXMLWriter* CreatePieceWriter(int index) override;
37
38 int WriteInternal() override;
39
40 void PrepareSummaryFile() override;
41 int WritePiece(int index) override;
42
43private:
45 void operator=(const vtkXMLPStructuredDataWriter&) = delete;
46
47 typedef std::map<int, std::vector<int>> ExtentsType;
48 ExtentsType Extents;
49};
50
51VTK_ABI_NAMESPACE_END
52#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Write data in a parallel XML format.
Superclass for PVTK XML structured data writers.
int WritePiece(int index) override
Write a piece of the dataset on disk.
~vtkXMLPStructuredDataWriter() override
void WritePPieceAttributes(int index) override
Write the attributes of the piece at the given index.
vtkXMLWriter * CreatePieceWriter(int index) override
int WriteInternal() override
Override writing method from superclass.
void PrepareSummaryFile() override
Collect information between ranks before writing the summary file.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual vtkXMLStructuredDataWriter * CreateStructuredPieceWriter()=0
void WritePrimaryElementAttributes(ostream &os, vtkIndent indent) override
Superclass for VTK XML structured data writers.
Superclass for VTK's XML file writers.