VTK
vtkXMLPStructuredDataWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLPStructuredDataWriter.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 vtkXMLPStructuredDataWriter_h
24 #define vtkXMLPStructuredDataWriter_h
25 
26 #include "vtkIOParallelXMLModule.h" // For export macro
27 #include "vtkXMLPDataWriter.h"
28 
29 #include <map> // for keeping track of extents
30 #include <vector> // for keeping track of extents
31 
33 
34 class VTKIOPARALLELXML_EXPORT vtkXMLPStructuredDataWriter : public vtkXMLPDataWriter
35 {
36 public:
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
40 protected:
43 
44  virtual vtkXMLStructuredDataWriter* CreateStructuredPieceWriter()=0;
45  void WritePrimaryElementAttributes(ostream &os, vtkIndent indent);
46  void WritePPieceAttributes(int index);
48 
49  virtual int WriteInternal();
50 
51  virtual void PrepareSummaryFile();
52  virtual int WritePiece(int index);
53 
54 private:
55  vtkXMLPStructuredDataWriter(const vtkXMLPStructuredDataWriter&) VTK_DELETE_FUNCTION;
56  void operator=(const vtkXMLPStructuredDataWriter&) VTK_DELETE_FUNCTION;
57 
58  typedef std::map<int, std::vector<int> > ExtentsType;
59  ExtentsType Extents;
60 };
61 
62 #endif
virtual int WritePiece(int index)
virtual void WritePPieceAttributes(int index)
Superclass for VTK XML structured data writers.
virtual int WriteInternal()
Superclass for VTK's XML file writers.
Definition: vtkXMLWriter.h:53
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)
virtual vtkXMLWriter * CreatePieceWriter(int index)=0
Superclass for PVTK XML structured data writers.
virtual void PrepareSummaryFile()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.