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
virtual const char * GetDataSetName()=0
void PrintSelf(ostream &os, vtkIndent indent)
vtkDataObject * GetInput()
Definition: vtkXMLWriter.h:196
Store vtkAlgorithm input/output information.
virtual void GetInputExtent(int *extent)=0
Superclass for VTK XML structured data writers.
virtual void WriteAppendedPiece(int index, vtkIndent indent)
virtual void DeletePositionArrays()
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKIOXML_EXPORT
virtual const char * GetDefaultFileExtension()=0
virtual int FillInputPortInformation(int port, vtkInformation *info)
virtual void WriteAppendedPieceData(int index)
topologically regular array of data
virtual void AllocatePositionArrays()
static vtkAlgorithm * New()
virtual void WriteInlinePiece(vtkIndent indent)
Write VTK XML StructuredGrid files.