Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | 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 =========================================================================*/
00031 #ifndef __vtkXMLImageDataWriter_h
00032 #define __vtkXMLImageDataWriter_h
00033 
00034 #include "vtkXMLStructuredDataWriter.h"
00035 
00036 class vtkImageData;
00037 
00038 class VTK_IO_EXPORT vtkXMLImageDataWriter : public vtkXMLStructuredDataWriter
00039 {
00040 public:
00041   static vtkXMLImageDataWriter* New();
00042   vtkTypeRevisionMacro(vtkXMLImageDataWriter,vtkXMLStructuredDataWriter);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044   
00045   //BTX
00047 
00048   vtkImageData* GetInput();
00049   //ETX
00051   
00053   const char* GetDefaultFileExtension();
00054   
00055 protected:
00056   vtkXMLImageDataWriter();
00057   ~vtkXMLImageDataWriter();  
00058   
00059   // see algorithm for more info
00060   virtual int FillInputPortInformation(int port, vtkInformation* info);
00061 
00062   void WritePrimaryElementAttributes(ostream &os, vtkIndent indent);
00063   void GetInputExtent(int* extent);
00064   const char* GetDataSetName();
00065   
00066 private:
00067   vtkXMLImageDataWriter(const vtkXMLImageDataWriter&);  // Not implemented.
00068   void operator=(const vtkXMLImageDataWriter&);  // Not implemented.
00069 };
00070 
00071 #endif

Generated on Mon Jan 21 23:07:32 2008 for VTK by  doxygen 1.4.3-20050530