VTK
vtkXMLRectilinearGridWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLRectilinearGridWriter.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 __vtkXMLRectilinearGridWriter_h
32 #define __vtkXMLRectilinearGridWriter_h
33 
35 
36 class vtkRectilinearGrid;
37 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
45  //BTX
47 
49  //ETX
51 
53  const char* GetDefaultFileExtension();
54 
55 protected:
58 
59  // see algorithm for more info
61 
62  int WriteAppendedMode(vtkIndent indent);
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();
69  void CalculateSuperclassFraction(float* fractions);
70 
71  // Coordinate array appended data positions.
73 
74  virtual void AllocatePositionArrays();
75  virtual void DeletePositionArrays();
76 
77 private:
78  vtkXMLRectilinearGridWriter(const vtkXMLRectilinearGridWriter&); // Not implemented.
79  void operator=(const vtkXMLRectilinearGridWriter&); // Not implemented.
80 };
81 
82 #endif