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
34class VTKIOPARALLELXML_EXPORT vtkXMLPStructuredDataWriter : public vtkXMLPDataWriter
35{
36public:
38 void PrintSelf(ostream& os, vtkIndent indent);
39
40protected:
43
45 void WritePrimaryElementAttributes(ostream &os, vtkIndent indent);
48
49 virtual int WriteInternal();
50
51 virtual void PrepareSummaryFile();
52 virtual int WritePiece(int index);
53
54private:
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
a simple class to control print indentation
Definition: vtkIndent.h:40
Write data in a parallel XML format.
Superclass for PVTK XML structured data writers.
virtual void PrepareSummaryFile()
vtkXMLWriter * CreatePieceWriter(int index)
virtual int WritePiece(int index)
void WritePPieceAttributes(int index)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void WritePrimaryElementAttributes(ostream &os, vtkIndent indent)
virtual vtkXMLStructuredDataWriter * CreateStructuredPieceWriter()=0
Superclass for VTK XML structured data writers.
Superclass for VTK's XML file writers.
Definition: vtkXMLWriter.h:54
@ index
Definition: vtkX3D.h:246