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

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