Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

IO/vtkWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkWriter.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 =========================================================================*/
00056 #ifndef __vtkWriter_h
00057 #define __vtkWriter_h
00058 
00059 #include "vtkProcessObject.h"
00060 
00061 class vtkDataObject;
00062 
00063 #define VTK_ASCII 1
00064 #define VTK_BINARY 2
00065 
00066 class VTK_IO_EXPORT vtkWriter : public vtkProcessObject
00067 {
00068 public:
00069   vtkTypeRevisionMacro(vtkWriter,vtkProcessObject);
00070   void PrintSelf(ostream& os, vtkIndent indent);
00071   
00074   virtual void Write();
00075 
00077   void Update();
00078 
00081   void EncodeArrayName(char* resname, const char* name);
00082   
00083 //BTX
00084   vtkDataObject *GetInput();
00085 //ETX
00086 protected:
00087   vtkWriter();
00088   ~vtkWriter();
00089   
00090   virtual void WriteData() = 0; //internal method subclasses must respond to
00091   vtkTimeStamp WriteTime;
00092 private:
00093   vtkWriter(const vtkWriter&);  // Not implemented.
00094   void operator=(const vtkWriter&);  // Not implemented.
00095 };
00096 
00097 #endif
00098 
00099