VTK  9.3.1
vtkXMLMultiBlockDataWriter.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
14 #ifndef vtkXMLMultiBlockDataWriter_h
15 #define vtkXMLMultiBlockDataWriter_h
16 
17 #include "vtkIOXMLModule.h" // For export macro
19 
20 VTK_ABI_NAMESPACE_BEGIN
22 {
23 public:
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27 
31  const char* GetDefaultFileExtension() override { return "vtm"; }
32 
33 protected:
35  ~vtkXMLMultiBlockDataWriter() override;
36 
38 
39  // Internal method called recursively to create the xml tree for the children
40  // of compositeData.
41  int WriteComposite(
42  vtkCompositeDataSet* compositeData, vtkXMLDataElement* parent, int& writerIdx) override;
43 
44 private:
46  void operator=(const vtkXMLMultiBlockDataWriter&) = delete;
47 };
48 
49 VTK_ABI_NAMESPACE_END
50 #endif
writer for vtkMultiBlockDataSet.
Represents an XML element and those nested inside.
Store vtkAlgorithm input/output information.
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
virtual int WriteComposite(vtkCompositeDataSet *compositeData, vtkXMLDataElement *element, int &writerIdx)=0
Internal method called recursively to create the xml tree for the children of compositeData as well a...
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
Definition: vtkIndent.h:28
Writer for multi-group datasets.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkAlgorithm * New()