00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkBMPWriter.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00043 #ifndef __vtkBMPWriter_h 00044 #define __vtkBMPWriter_h 00045 00046 #include "vtkImageWriter.h" 00047 00048 class VTK_IO_EXPORT vtkBMPWriter : public vtkImageWriter 00049 { 00050 public: 00051 static vtkBMPWriter *New(); 00052 vtkTypeRevisionMacro(vtkBMPWriter,vtkImageWriter); 00053 virtual void PrintSelf(ostream& os, vtkIndent indent); 00054 00055 protected: 00056 vtkBMPWriter(); 00057 ~vtkBMPWriter() {}; 00058 00059 virtual void WriteFile(ofstream *file, vtkImageData *data, int ext[6]); 00060 virtual void WriteFileHeader(ofstream *, vtkImageData *); 00061 private: 00062 vtkBMPWriter(const vtkBMPWriter&); // Not implemented. 00063 void operator=(const vtkBMPWriter&); // Not implemented. 00064 }; 00065 00066 #endif 00067 00068