VTK
dox/IO/vtkAbstractParticleWriter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkAbstractParticleWriter.h
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 =========================================================================*/
00030 #ifndef __vtkAbstractParticleWriter_h
00031 #define __vtkAbstractParticleWriter_h
00032 
00033 #include "vtkWriter.h"
00034 
00035 class VTK_IO_EXPORT vtkAbstractParticleWriter : public vtkWriter
00036 {
00037 public:
00038   vtkTypeMacro(vtkAbstractParticleWriter,vtkWriter);
00039   void PrintSelf(ostream& os, vtkIndent indent);
00040 
00042 
00043   vtkSetMacro(TimeStep, int);
00044   vtkGetMacro(TimeStep, int);
00046 
00048 
00052   vtkSetMacro(TimeValue,double);
00053   vtkGetMacro(TimeValue,double);
00055 
00057 
00058   vtkSetStringMacro(FileName);
00059   vtkGetStringMacro(FileName);
00061 
00063 
00065   vtkSetMacro(CollectiveIO,int);
00066   vtkGetMacro(CollectiveIO,int);
00067   void SetWriteModeToCollective();
00068   void SetWriteModeToIndependent();  
00070 
00073   virtual void CloseFile() = 0;
00074 
00075 protected:
00076    vtkAbstractParticleWriter();
00077   ~vtkAbstractParticleWriter();
00078 
00079   virtual void WriteData() = 0; //internal method subclasses must respond to
00080   int          CollectiveIO;
00081   int          TimeStep;
00082   double       TimeValue;
00083   char        *FileName;
00084 
00085 private:
00086   vtkAbstractParticleWriter(const vtkAbstractParticleWriter&);  // Not implemented.
00087   void operator=(const vtkAbstractParticleWriter&);  // Not implemented.
00088 };
00089 
00090 #endif