VTK  9.2.6
vtkXMLPartitionedDataSetCollectionWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLPartitionedDataSetCollectionWriter.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 vtkXMLPartitionedDataSetCollectionWriter_h
29 #define vtkXMLPartitionedDataSetCollectionWriter_h
30 
31 #include "vtkIOParallelXMLModule.h" // For export macro
32 #include "vtkXMLWriter2.h"
33 
35 
36 class VTKIOPARALLELXML_EXPORT vtkXMLPartitionedDataSetCollectionWriter : public vtkXMLWriter2
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
47  void SetInputData(vtkPartitionedDataSetCollection* pd);
48 
52  const char* GetDefaultFileExtension() override { return "vtpc"; }
53 
54 protected:
57 
59 
64  int GetDataSetMajorVersion() override { return 1; }
65  int GetDataSetMinorVersion() override { return 0; }
67 
70 
71 private:
74  void operator=(const vtkXMLPartitionedDataSetCollectionWriter&) = delete;
75 
76  bool WriteSummaryXML(vtkPartitionedDataSetCollection* input,
77  const std::vector<std::vector<std::string>>& allFilenames);
78 };
79 
80 #endif
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...
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
Store vtkAlgorithm input/output information.
int GetDataSetMajorVersion() override
Methods to define the file's major and minor version numbers.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
int GetDataSetMinorVersion() override
Methods to define the file's major and minor version numbers.
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()
Composite dataset that groups datasets as a collection.