VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkBMPWriter.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 __vtkBMPWriter_h 00029 #define __vtkBMPWriter_h 00030 00031 #include "vtkIOImageModule.h" // For export macro 00032 #include "vtkImageWriter.h" 00033 00034 class VTKIOIMAGE_EXPORT vtkBMPWriter : public vtkImageWriter 00035 { 00036 public: 00037 static vtkBMPWriter *New(); 00038 vtkTypeMacro(vtkBMPWriter,vtkImageWriter); 00039 virtual void PrintSelf(ostream& os, vtkIndent indent); 00040 00041 protected: 00042 vtkBMPWriter(); 00043 ~vtkBMPWriter() {}; 00044 00045 virtual void WriteFile(ofstream *file, vtkImageData *data, int ext[6], int wExt[6]); 00046 virtual void WriteFileHeader(ofstream *, vtkImageData *, int wExt[6]); 00047 private: 00048 vtkBMPWriter(const vtkBMPWriter&); // Not implemented. 00049 void operator=(const vtkBMPWriter&); // Not implemented. 00050 }; 00051 00052 #endif 00053 00054