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 =========================================================================*/
22 #ifndef vtkXMLPStructuredDataWriter_h
23 #define vtkXMLPStructuredDataWriter_h
24 
25 #include "vtkIOParallelXMLModule.h" // For export macro
26 #include "vtkXMLPDataWriter.h"
27 
28 #include <map> // for keeping track of extents
29 #include <vector> // for keeping track of extents
30 
32 
34 {
35 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
39  // See the vtkAlgorithm for a description of what these do
40  virtual int ProcessRequest(vtkInformation* request,
41  vtkInformationVector** inputVector,
42  vtkInformationVector* outputVector);
43 
44 protected:
47 
48  virtual vtkXMLStructuredDataWriter* CreateStructuredPieceWriter()=0;
49  void WritePrimaryElementAttributes(ostream &os, vtkIndent indent);
50  void WritePPieceAttributes(int index);
52 
53  virtual int RequestUpdateExtent(vtkInformation* request,
54  vtkInformationVector** inputVector,
55  vtkInformationVector* outputVector);
56 
57  virtual int WriteInternal();
58 
59  virtual int WritePieces();
60  virtual int WritePiece(int index);
61 
62 private:
63  vtkXMLPStructuredDataWriter(const vtkXMLPStructuredDataWriter&); // Not implemented.
64  void operator=(const vtkXMLPStructuredDataWriter&); // Not implemented.
65 
66  typedef std::map<int, std::vector<int> > ExtentsType;
67  ExtentsType Extents;
68 };
69 
70 #endif
virtual int WritePiece(int index)
virtual void WritePPieceAttributes(int index)
Store vtkAlgorithm input/output information.
virtual int WritePieces()
#define VTKIOPARALLELXML_EXPORT
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:38
Write data in a parallel XML format.
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual void WritePrimaryElementAttributes(ostream &os, vtkIndent indent)
virtual vtkXMLWriter * CreatePieceWriter(int index)=0
Store zero or more vtkInformation instances.
Superclass for PVTK XML structured data writers.
void PrintSelf(ostream &os, vtkIndent indent)