1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkXMLStructuredGridWriter.h,v $
6 Date: $Date: 2002/10/16 18:23:07 $
7 Version: $Revision: 1.1 $
9 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
11 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notice for more information.
17 =========================================================================*/
18 // .NAME vtkXMLStructuredGridWriter - Write VTK XML StructuredGrid files.
19 // .SECTION Description
20 // vtkXMLStructuredGridWriter writes the VTK XML StructuredGrid file
21 // format. One structured grid input can be written into one file in
22 // any number of streamed pieces. The standard extension for this
23 // writer's file format is "vts". This writer is also used to write a
24 // single piece of the parallel file format.
27 // vtkXMLPStructuredGridWriter
29 #ifndef __vtkXMLStructuredGridWriter_h
30 #define __vtkXMLStructuredGridWriter_h
32 #include "vtkXMLStructuredDataWriter.h"
34 class vtkStructuredGrid;
36 class VTK_IO_EXPORT vtkXMLStructuredGridWriter : public vtkXMLStructuredDataWriter
39 static vtkXMLStructuredGridWriter* New();
40 vtkTypeRevisionMacro(vtkXMLStructuredGridWriter,vtkXMLStructuredDataWriter);
41 void PrintSelf(ostream& os, vtkIndent indent);
44 // Get/Set the writer's input.
45 void SetInput(vtkStructuredGrid* input);
46 vtkStructuredGrid* GetInput();
49 // Get the default file extension for files written by this writer.
50 const char* GetDefaultFileExtension();
53 vtkXMLStructuredGridWriter();
54 ~vtkXMLStructuredGridWriter();
56 void WriteAppendedMode(vtkIndent indent);
57 void WriteAppendedPiece(int index, vtkIndent indent);
58 void WriteAppendedPieceData(int index);
59 void WriteInlinePiece(int index, vtkIndent indent);
60 void GetInputExtent(int* extent);
61 const char* GetDataSetName();
63 // The position of the appended data offset attribute for the points
65 unsigned long* PointsPosition;
68 vtkXMLStructuredGridWriter(const vtkXMLStructuredGridWriter&); // Not implemented.
69 void operator=(const vtkXMLStructuredGridWriter&); // Not implemented.