Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkXMLImageDataWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkXMLImageDataWriter.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00038 #ifndef __vtkXMLImageDataWriter_h
00039 #define __vtkXMLImageDataWriter_h
00040 
00041 #include "vtkXMLStructuredDataWriter.h"
00042 
00043 class vtkImageData;
00044 
00045 class VTK_IO_EXPORT vtkXMLImageDataWriter : public vtkXMLStructuredDataWriter
00046 {
00047 public:
00048   static vtkXMLImageDataWriter* New();
00049   vtkTypeRevisionMacro(vtkXMLImageDataWriter,vtkXMLStructuredDataWriter);
00050   void PrintSelf(ostream& os, vtkIndent indent);
00051   
00053 
00054   void SetInput(vtkImageData* input);
00055   vtkImageData* GetInput();
00057   
00059   const char* GetDefaultFileExtension();
00060   
00061 protected:
00062   vtkXMLImageDataWriter();
00063   ~vtkXMLImageDataWriter();  
00064   
00065   void WritePrimaryElementAttributes();
00066   void GetInputExtent(int* extent);
00067   const char* GetDataSetName();
00068   
00069 private:
00070   vtkXMLImageDataWriter(const vtkXMLImageDataWriter&);  // Not implemented.
00071   void operator=(const vtkXMLImageDataWriter&);  // Not implemented.
00072 };
00073 
00074 #endif