Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkWriter.h

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