VTK
vtkXMLMultiBlockDataWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLMultiBlockDataWriter.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 =========================================================================*/
23 #ifndef vtkXMLMultiBlockDataWriter_h
24 #define vtkXMLMultiBlockDataWriter_h
25 
26 #include "vtkIOXMLModule.h" // For export macro
28 
30 {
31 public:
34  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
35 
39  const char* GetDefaultFileExtension() VTK_OVERRIDE
40  { return "vtm"; }
41 
42 protected:
44  ~vtkXMLMultiBlockDataWriter() VTK_OVERRIDE;
45 
46  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
47 
48  // Internal method called recursively to create the xml tree for the children
49  // of compositeData.
50  int WriteComposite(vtkCompositeDataSet* compositeData,
51  vtkXMLDataElement* parent, int &writerIdx) VTK_OVERRIDE;
52 
53 private:
54  vtkXMLMultiBlockDataWriter(const vtkXMLMultiBlockDataWriter&) VTK_DELETE_FUNCTION;
55  void operator=(const vtkXMLMultiBlockDataWriter&) VTK_DELETE_FUNCTION;
56 
57 };
58 
59 #endif
60 
61 
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:33
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()