VTK: IO/ParallelXML/vtkXMLPartitionedDataSetCollectionWriter.h Source File

| VTK 9.3.1

vtkXMLPartitionedDataSetCollectionWriter.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
16 #ifndef vtkXMLPartitionedDataSetCollectionWriter_h
17 #define vtkXMLPartitionedDataSetCollectionWriter_h
18
19 #include "vtkIOParallelXMLModule.h" // For export macro
20 #include "vtkXMLWriter2.h"
21
22 VTK_ABI_NAMESPACE_BEGIN
23 class vtkPartitionedDataSetCollection;
24
25 class VTKIOPARALLELXML_EXPORT vtkXMLPartitionedDataSetCollectionWriter : public vtkXMLWriter2
26 {
27 public:
28 static vtkXMLPartitionedDataSetCollectionWriter* New();
29 vtkTypeMacro(vtkXMLPartitionedDataSetCollectionWriter, vtkXMLWriter2);
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
36 void SetInputData(vtkPartitionedDataSetCollection* pd);
37
41 const char* GetDefaultFileExtension() override { return "vtpc"; }
42
43 protected:
44 vtkXMLPartitionedDataSetCollectionWriter();
45 ~vtkXMLPartitionedDataSetCollectionWriter() override;
46
48
53 int GetDataSetMajorVersion() override { return 1; }
54 int GetDataSetMinorVersion() override { return 0; }
56
57 int FillInputPortInformation(int port, vtkInformation* info) override;
58 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
59
60 private:
61 vtkXMLPartitionedDataSetCollectionWriter(
62 const vtkXMLPartitionedDataSetCollectionWriter&) = delete;
63 void operator=(const vtkXMLPartitionedDataSetCollectionWriter&) = delete;
64
65 bool WriteSummaryXML(vtkPartitionedDataSetCollection* input,
66 const std::vector<std::vector<std::string>>& allFilenames);
67 };
68
69 VTK_ABI_NAMESPACE_END
70 #endif
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkPartitionedDataSetCollection
Composite dataset that groups datasets as a collection.
Definition: vtkPartitionedDataSetCollection.h:30
vtkXMLPartitionedDataSetCollectionWriter
writer for vtkPartitionedDataSetCollection.
Definition: vtkXMLPartitionedDataSetCollectionWriter.h:26
vtkXMLPartitionedDataSetCollectionWriter::~vtkXMLPartitionedDataSetCollectionWriter
~vtkXMLPartitionedDataSetCollectionWriter() override
vtkXMLPartitionedDataSetCollectionWriter::GetDefaultFileExtension
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
Definition: vtkXMLPartitionedDataSetCollectionWriter.h:41
vtkXMLPartitionedDataSetCollectionWriter::vtkXMLPartitionedDataSetCollectionWriter
vtkXMLPartitionedDataSetCollectionWriter()
vtkXMLPartitionedDataSetCollectionWriter::New
static vtkXMLPartitionedDataSetCollectionWriter * New()
vtkXMLPartitionedDataSetCollectionWriter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkXMLPartitionedDataSetCollectionWriter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Methods for various pipeline passes that can be overridden by subclasses to do the work for the reque...
vtkXMLPartitionedDataSetCollectionWriter::GetDataSetMinorVersion
int GetDataSetMinorVersion() override
Methods to define the file's major and minor version numbers.
Definition: vtkXMLPartitionedDataSetCollectionWriter.h:54
vtkXMLPartitionedDataSetCollectionWriter::GetDataSetMajorVersion
int GetDataSetMajorVersion() override
Methods to define the file's major and minor version numbers.
Definition: vtkXMLPartitionedDataSetCollectionWriter.h:53
vtkXMLPartitionedDataSetCollectionWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkXMLPartitionedDataSetCollectionWriter::SetInputData
void SetInputData(vtkPartitionedDataSetCollection *pd)
Primarily for backwards compatibility.
vtkXMLWriter2
base class for new-style XML Writers
Definition: vtkXMLWriter2.h:38
vtkX3D::vector
@ vector
Definition: vtkX3D.h:237
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkXMLWriter2.h