VTK
|
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 =========================================================================*/ 00031 #ifndef vtkXMLPImageDataWriter_h 00032 #define vtkXMLPImageDataWriter_h 00033 00034 #include "vtkIOParallelXMLModule.h" // For export macro 00035 #include "vtkXMLPStructuredDataWriter.h" 00036 00037 class vtkImageData; 00038 00039 class VTKIOPARALLELXML_EXPORT vtkXMLPImageDataWriter : public vtkXMLPStructuredDataWriter 00040 { 00041 public: 00042 static vtkXMLPImageDataWriter* New(); 00043 vtkTypeMacro(vtkXMLPImageDataWriter,vtkXMLPStructuredDataWriter); 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 vtkXMLPImageDataWriter(); 00058 ~vtkXMLPImageDataWriter(); 00059 00060 const char* GetDataSetName(); 00061 void WritePrimaryElementAttributes(ostream &os, vtkIndent indent); 00062 vtkXMLStructuredDataWriter* CreateStructuredPieceWriter(); 00063 00064 // see algorithm for more info 00065 virtual int FillInputPortInformation(int port, vtkInformation* info); 00066 00067 private: 00068 vtkXMLPImageDataWriter(const vtkXMLPImageDataWriter&); // Not implemented. 00069 void operator=(const vtkXMLPImageDataWriter&); // Not implemented. 00070 }; 00071 00072 #endif