VTK
dox/IO/XML/vtkXMLPImageDataWriter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkXMLPImageDataWriter.h
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 =========================================================================*/
00028 #ifndef __vtkXMLPImageDataWriter_h
00029 #define __vtkXMLPImageDataWriter_h
00030 
00031 #include "vtkIOXMLModule.h" // For export macro
00032 #include "vtkXMLPStructuredDataWriter.h"
00033 
00034 class vtkImageData;
00035 
00036 class VTKIOXML_EXPORT vtkXMLPImageDataWriter : public vtkXMLPStructuredDataWriter
00037 {
00038 public:
00039   static vtkXMLPImageDataWriter* New();
00040   vtkTypeMacro(vtkXMLPImageDataWriter,vtkXMLPStructuredDataWriter);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042 
00043   //BTX
00045 
00046   vtkImageData* GetInput();
00047   //ETX
00049 
00051   const char* GetDefaultFileExtension();
00052 
00053 protected:
00054   vtkXMLPImageDataWriter();
00055   ~vtkXMLPImageDataWriter();
00056 
00057   const char* GetDataSetName();
00058   void WritePrimaryElementAttributes(ostream &os, vtkIndent indent);
00059   vtkXMLStructuredDataWriter* CreateStructuredPieceWriter();
00060 
00061   // see algorithm for more info
00062   virtual int FillInputPortInformation(int port, vtkInformation* info);
00063 
00064 private:
00065   vtkXMLPImageDataWriter(const vtkXMLPImageDataWriter&);  // Not implemented.
00066   void operator=(const vtkXMLPImageDataWriter&);  // Not implemented.
00067 };
00068 
00069 #endif