VTK
vtkXMLPDataWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLPDataWriter.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 =========================================================================*/
25 #ifndef vtkXMLPDataWriter_h
26 #define vtkXMLPDataWriter_h
27 
28 #include "vtkIOParallelXMLModule.h" // For export macro
30 
31 class vtkCallbackCommand;
33 
34 class VTKIOPARALLELXML_EXPORT vtkXMLPDataWriter : public vtkXMLPDataObjectWriter
35 {
36 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
40 protected:
42  ~vtkXMLPDataWriter() override;
43 
44  virtual vtkXMLWriter* CreatePieceWriter(int index) = 0;
45 
46  void WritePData(vtkIndent indent) override;
47 
48  int WritePieceInternal() override;
49 
50  int WritePiece(int index) override;
51 
52  void WritePrimaryElementAttributes(ostream& os, vtkIndent indent) override;
53 
54 private:
55  vtkXMLPDataWriter(const vtkXMLPDataWriter&) = delete;
56  void operator=(const vtkXMLPDataWriter&) = delete;
57 
61  void SetupPieceFileNameExtension() override;
62 };
63 
64 #endif
virtual void SetupPieceFileNameExtension()
Initializes PieceFileNameExtension.
virtual int WritePiece(int index)=0
Write a piece of the dataset on disk.
virtual void WritePData(vtkIndent indent)=0
Write Data associated with the input dataset.
virtual int WritePieceInternal()=0
Method called by WriteInternal().
Write data in a parallel XML format.
supports function callbacks
Superclass for VTK's XML file writers.
Definition: vtkXMLWriter.h:62
a simple class to control print indentation
Definition: vtkIndent.h:39
Write data in a parallel XML format.
virtual void WritePrimaryElementAttributes(ostream &os, vtkIndent indent)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Multiprocessing communication superclass.