Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class 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 
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 =========================================================================*/
00038 #ifndef __vtkWriter_h
00039 #define __vtkWriter_h
00040 
00041 #include "vtkProcessObject.h"
00042 
00043 class vtkDataObject;
00044 
00045 #define VTK_ASCII 1
00046 #define VTK_BINARY 2
00047 
00048 class VTK_IO_EXPORT vtkWriter : public vtkProcessObject
00049 {
00050 public:
00051   vtkTypeRevisionMacro(vtkWriter,vtkProcessObject);
00052   void PrintSelf(ostream& os, vtkIndent indent);
00053   
00056   virtual void Write();
00057 
00059   void Update();
00060 
00063   void EncodeArrayName(char* resname, const char* name);
00064   
00065 //BTX
00066   vtkDataObject *GetInput();
00067 //ETX
00068 protected:
00069   vtkWriter();
00070   ~vtkWriter();
00071   
00072   virtual void WriteData() = 0; //internal method subclasses must respond to
00073   vtkTimeStamp WriteTime;
00074 private:
00075   vtkWriter(const vtkWriter&);  // Not implemented.
00076   void operator=(const vtkWriter&);  // Not implemented.
00077 };
00078 
00079 #endif
00080 
00081