VTK  9.1.0
vtkXMLPartitionedDataSetWriter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkXMLPartitionedDataSetWriter.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=========================================================================*/
25#ifndef vtkXMLPartitionedDataSetWriter_h
26#define vtkXMLPartitionedDataSetWriter_h
27
28#include "vtkIOParallelXMLModule.h" // For export macro
29#include "vtkXMLWriter2.h"
30
31#include <string> // for std::string
32#include <vector> // for std::vector
33
35
36class VTKIOPARALLELXML_EXPORT vtkXMLPartitionedDataSetWriter : public vtkXMLWriter2
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
48
52 const char* GetDefaultFileExtension() override { return "vtpd"; }
53
54protected:
57
59
64 int GetDataSetMajorVersion() override { return 1; }
65 int GetDataSetMinorVersion() override { return 0; }
67
68 int FillInputPortInformation(int port, vtkInformation* info) override;
70
71private:
73 void operator=(const vtkXMLPartitionedDataSetWriter&) = delete;
74
75 bool WriteSummaryXML(vtkPartitionedDataSet* input, const std::vector<std::string>& allFilenames);
76};
77
78#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
composite dataset to encapsulates a dataset consisting of partitions.
XML writer for vtkPartitionedDataSet.
int GetDataSetMajorVersion() override
Methods to define the file's major and minor version numbers.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Methods for various pipeline passes that can be overridden by subclasses to do the work for the reque...
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.
static vtkXMLPartitionedDataSetWriter * New()
void SetInputData(vtkPartitionedDataSet *pd)
Primarily for backwards compatibility.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int GetDataSetMinorVersion() override
Methods to define the file's major and minor version numbers.
~vtkXMLPartitionedDataSetWriter() override
base class for new-style XML Writers
Definition: vtkXMLWriter2.h:49