VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkXMLImageDataWriter.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 =========================================================================*/ 00031 #ifndef vtkXMLImageDataWriter_h 00032 #define vtkXMLImageDataWriter_h 00033 00034 #include "vtkIOXMLModule.h" // For export macro 00035 #include "vtkXMLStructuredDataWriter.h" 00036 00037 class vtkImageData; 00038 00039 class VTKIOXML_EXPORT vtkXMLImageDataWriter : public vtkXMLStructuredDataWriter 00040 { 00041 public: 00042 static vtkXMLImageDataWriter* New(); 00043 vtkTypeMacro(vtkXMLImageDataWriter,vtkXMLStructuredDataWriter); 00044 void PrintSelf(ostream& os, vtkIndent indent); 00045 00046 //BTX 00048 00049 vtkImageData* GetInput(); 00050 //ETX 00052 00054 const char* GetDefaultFileExtension(); 00055 00056 protected: 00057 vtkXMLImageDataWriter(); 00058 ~vtkXMLImageDataWriter(); 00059 00060 // see algorithm for more info 00061 virtual int FillInputPortInformation(int port, vtkInformation* info); 00062 00063 void WritePrimaryElementAttributes(ostream &os, vtkIndent indent); 00064 void GetInputExtent(int* extent); 00065 const char* GetDataSetName(); 00066 00067 private: 00068 vtkXMLImageDataWriter(const vtkXMLImageDataWriter&); // Not implemented. 00069 void operator=(const vtkXMLImageDataWriter&); // Not implemented. 00070 }; 00071 00072 #endif