VTK: IO/ParallelXML/vtkXMLPStructuredDataWriter.h Source File

| VTK 9.3.1

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
20 VTK_ABI_NAMESPACE_BEGIN
21 class vtkXMLStructuredDataWriter;
22
23 class VTKIOPARALLELXML_EXPORT vtkXMLPStructuredDataWriter : public vtkXMLPDataWriter
24 {
25 public:
26 vtkTypeMacro(vtkXMLPStructuredDataWriter, vtkXMLPDataWriter);
27 void PrintSelf(ostream& os, vtkIndent indent) override;
28
29 protected:
30 vtkXMLPStructuredDataWriter();
31 ~vtkXMLPStructuredDataWriter() override;
32
33 virtual vtkXMLStructuredDataWriter* CreateStructuredPieceWriter() = 0;
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
43 private:
44 vtkXMLPStructuredDataWriter(const vtkXMLPStructuredDataWriter&) = delete;
45 void operator=(const vtkXMLPStructuredDataWriter&) = delete;
46
47 typedef std::map<int, std::vector<int>> ExtentsType;
48 ExtentsType Extents;
49 };
50
51 VTK_ABI_NAMESPACE_END
52 #endif
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkXMLPDataWriter
Write data in a parallel XML format.
Definition: vtkXMLPDataWriter.h:24
vtkXMLPStructuredDataWriter
Superclass for PVTK XML structured data writers.
Definition: vtkXMLPStructuredDataWriter.h:24
vtkXMLPStructuredDataWriter::CreatePieceWriter
vtkXMLWriter * CreatePieceWriter(int index) override
vtkXMLPStructuredDataWriter::WritePiece
int WritePiece(int index) override
Write a piece of the dataset on disk.
vtkXMLPStructuredDataWriter::~vtkXMLPStructuredDataWriter
~vtkXMLPStructuredDataWriter() override
vtkXMLPStructuredDataWriter::WritePPieceAttributes
void WritePPieceAttributes(int index) override
Write the attributes of the piece at the given index.
vtkXMLPStructuredDataWriter::vtkXMLPStructuredDataWriter
vtkXMLPStructuredDataWriter()
vtkXMLPStructuredDataWriter::WriteInternal
int WriteInternal() override
Override writing method from superclass.
vtkXMLPStructuredDataWriter::PrepareSummaryFile
void PrepareSummaryFile() override
Collect information between ranks before writing the summary file.
vtkXMLPStructuredDataWriter::CreateStructuredPieceWriter
virtual vtkXMLStructuredDataWriter * CreateStructuredPieceWriter()=0
vtkXMLPStructuredDataWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkXMLPStructuredDataWriter::WritePrimaryElementAttributes
void WritePrimaryElementAttributes(ostream &os, vtkIndent indent) override
vtkXMLStructuredDataWriter
Superclass for VTK XML structured data writers.
Definition: vtkXMLStructuredDataWriter.h:23
vtkXMLWriter
Superclass for VTK's XML file writers.
Definition: vtkXMLWriter.h:54
vtkX3D::index
@ index
Definition: vtkX3D.h:246
vtkXMLPDataWriter.h