VTK  9.1.0
vtkXMLPStructuredDataWriter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkXMLPStructuredDataWriter.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 vtkXMLPStructuredDataWriter_h
24#define vtkXMLPStructuredDataWriter_h
25
26#include "vtkIOParallelXMLModule.h" // For export macro
27#include "vtkXMLPDataWriter.h"
28
29#include <map> // for keeping track of extents
30#include <vector> // for keeping track of extents
31
33
34class VTKIOPARALLELXML_EXPORT vtkXMLPStructuredDataWriter : public vtkXMLPDataWriter
35{
36public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
40protected:
43
45 void WritePrimaryElementAttributes(ostream& os, vtkIndent indent) override;
46 void WritePPieceAttributes(int index) override;
48
49 int WriteInternal() override;
50
51 void PrepareSummaryFile() override;
52 int WritePiece(int index) override;
53
54private:
56 void operator=(const vtkXMLPStructuredDataWriter&) = delete;
57
58 typedef std::map<int, std::vector<int>> ExtentsType;
59 ExtentsType Extents;
60};
61
62#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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.
Definition: vtkXMLWriter.h:62
@ index
Definition: vtkX3D.h:252