OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / include / vtk / vtkXMLStructuredGridWriter.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkXMLStructuredGridWriter.h,v $
5   Language:  C++
6   Date:      $Date: 2002/10/16 18:23:07 $
7   Version:   $Revision: 1.1 $
8
9   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
10   All rights reserved.
11   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
12
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.
16
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.
25
26 // .SECTION See Also
27 // vtkXMLPStructuredGridWriter
28
29 #ifndef __vtkXMLStructuredGridWriter_h
30 #define __vtkXMLStructuredGridWriter_h
31
32 #include "vtkXMLStructuredDataWriter.h"
33
34 class vtkStructuredGrid;
35
36 class VTK_IO_EXPORT vtkXMLStructuredGridWriter : public vtkXMLStructuredDataWriter
37 {
38 public:
39   static vtkXMLStructuredGridWriter* New();
40   vtkTypeRevisionMacro(vtkXMLStructuredGridWriter,vtkXMLStructuredDataWriter);
41   void PrintSelf(ostream& os, vtkIndent indent);
42   
43   // Description:
44   // Get/Set the writer's input.
45   void SetInput(vtkStructuredGrid* input);
46   vtkStructuredGrid* GetInput();
47   
48   // Description:
49   // Get the default file extension for files written by this writer.
50   const char* GetDefaultFileExtension();
51   
52 protected:
53   vtkXMLStructuredGridWriter();
54   ~vtkXMLStructuredGridWriter();  
55   
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();
62   
63   // The position of the appended data offset attribute for the points
64   // array.
65   unsigned long* PointsPosition;
66   
67 private:
68   vtkXMLStructuredGridWriter(const vtkXMLStructuredGridWriter&);  // Not implemented.
69   void operator=(const vtkXMLStructuredGridWriter&);  // Not implemented.
70 };
71
72 #endif