OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / include / vtk / vtkXMLImageDataWriter.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkXMLImageDataWriter.h,v $
5   Language:  C++
6   Date:      $Date: 2002/10/16 18:23:06 $
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 vtkXMLImageDataWriter - Write VTK XML ImageData files.
19 // .SECTION Description
20 // vtkXMLImageDataWriter writes the VTK XML ImageData file format.
21 // One image data input can be written into one file in any number of
22 // streamed pieces.  The standard extension for this writer's file
23 // format is "vti".  This writer is also used to write a single piece
24 // of the parallel file format.
25
26 // .SECTION See Also
27 // vtkXMLPImageDataWriter
28
29 #ifndef __vtkXMLImageDataWriter_h
30 #define __vtkXMLImageDataWriter_h
31
32 #include "vtkXMLStructuredDataWriter.h"
33
34 class vtkImageData;
35
36 class VTK_IO_EXPORT vtkXMLImageDataWriter : public vtkXMLStructuredDataWriter
37 {
38 public:
39   static vtkXMLImageDataWriter* New();
40   vtkTypeRevisionMacro(vtkXMLImageDataWriter,vtkXMLStructuredDataWriter);
41   void PrintSelf(ostream& os, vtkIndent indent);
42   
43   // Description:
44   // Get/Set the writer's input.
45   void SetInput(vtkImageData* input);
46   vtkImageData* GetInput();
47   
48   // Description:
49   // Get the default file extension for files written by this writer.
50   const char* GetDefaultFileExtension();
51   
52 protected:
53   vtkXMLImageDataWriter();
54   ~vtkXMLImageDataWriter();  
55   
56   void WritePrimaryElementAttributes();
57   void GetInputExtent(int* extent);
58   const char* GetDataSetName();
59   
60 private:
61   vtkXMLImageDataWriter(const vtkXMLImageDataWriter&);  // Not implemented.
62   void operator=(const vtkXMLImageDataWriter&);  // Not implemented.
63 };
64
65 #endif