VTK
vtkXMLStructuredGridWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLStructuredGridWriter.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 =========================================================================*/
31 #ifndef __vtkXMLStructuredGridWriter_h
32 #define __vtkXMLStructuredGridWriter_h
33 
34 #include "vtkIOXMLModule.h" // For export macro
36 
37 class vtkStructuredGrid;
38 
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
46  //BTX
48 
50  //ETX
52 
54  const char* GetDefaultFileExtension();
55 
56 protected:
59 
60  // see algorithm for more info
62 
63  void WriteAppendedPiece(int index, vtkIndent indent);
64  void WriteAppendedPieceData(int index);
65  void WriteInlinePiece(vtkIndent indent);
66  void GetInputExtent(int* extent);
67  const char* GetDataSetName();
68  void CalculateSuperclassFraction(float* fractions);
69 
70  // The position of the appended data offset attribute for the points
71  // array.
72  OffsetsManagerGroup *PointsOM; //one per piece
73 
74  virtual void AllocatePositionArrays();
75  virtual void DeletePositionArrays();
76 
77 private:
78  vtkXMLStructuredGridWriter(const vtkXMLStructuredGridWriter&); // Not implemented.
79  void operator=(const vtkXMLStructuredGridWriter&); // Not implemented.
80 };
81 
82 #endif