00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkStructuredGridWriter.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 =========================================================================*/ 00044 #ifndef __vtkStructuredGridWriter_h 00045 #define __vtkStructuredGridWriter_h 00046 00047 #include "vtkDataWriter.h" 00048 00049 class vtkStructuredGrid; 00050 00051 class VTK_IO_EXPORT vtkStructuredGridWriter : public vtkDataWriter 00052 { 00053 public: 00054 static vtkStructuredGridWriter *New(); 00055 vtkTypeRevisionMacro(vtkStructuredGridWriter,vtkDataWriter); 00056 void PrintSelf(ostream& os, vtkIndent indent); 00057 00059 00060 void SetInput(vtkStructuredGrid *input); 00061 vtkStructuredGrid *GetInput(); 00063 00064 protected: 00065 vtkStructuredGridWriter() {}; 00066 ~vtkStructuredGridWriter() {}; 00067 00068 void WriteData(); 00069 void WriteBlanking(ostream *fp, vtkStructuredGrid *ds); 00070 00071 private: 00072 vtkStructuredGridWriter(const vtkStructuredGridWriter&); // Not implemented. 00073 void operator=(const vtkStructuredGridWriter&); // Not implemented. 00074 }; 00075 00076 #endif 00077 00078