VTK  9.2.6
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 =========================================================================*/
28 #ifndef vtkXMLPartitionedDataSetWriter_h
29 #define vtkXMLPartitionedDataSetWriter_h
30 
31 #include "vtkIOParallelXMLModule.h" // For export macro
32 #include "vtkXMLWriter2.h"
33 
34 #include <string> // for std::string
35 #include <vector> // for std::vector
36 
38 
39 class VTKIOPARALLELXML_EXPORT vtkXMLPartitionedDataSetWriter : public vtkXMLWriter2
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
50  void SetInputData(vtkPartitionedDataSet* pd);
51 
55  const char* GetDefaultFileExtension() override { return "vtpd"; }
56 
57 protected:
60 
62 
67  int GetDataSetMajorVersion() override { return 1; }
68  int GetDataSetMinorVersion() override { return 0; }
70 
73 
74 private:
76  void operator=(const vtkXMLPartitionedDataSetWriter&) = delete;
77 
78  bool WriteSummaryXML(vtkPartitionedDataSet* input, const std::vector<std::string>& allFilenames);
79 };
80 
81 #endif
composite dataset to encapsulates a dataset consisting of partitions.
int GetDataSetMajorVersion() override
Methods to define the file's major and minor version numbers.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)=0
Methods for various pipeline passes that can be overridden by subclasses to do the work for the reque...
int GetDataSetMinorVersion() override
Methods to define the file's major and minor version numbers.
Store vtkAlgorithm input/output information.
a simple class to control print indentation
Definition: vtkIndent.h:39
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
base class for new-style XML Writers
Definition: vtkXMLWriter2.h:48
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
XML writer for vtkPartitionedDataSet.