VTK
vtkAbstractParticleWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAbstractParticleWriter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
30 #ifndef __vtkAbstractParticleWriter_h
31 #define __vtkAbstractParticleWriter_h
32 
33 #include "vtkWriter.h"
34 
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
43  vtkSetMacro(TimeStep, int);
44  vtkGetMacro(TimeStep, int);
46 
48 
52  vtkSetMacro(TimeValue,double);
53  vtkGetMacro(TimeValue,double);
55 
57 
58  vtkSetStringMacro(FileName);
59  vtkGetStringMacro(FileName);
61 
63 
65  vtkSetMacro(CollectiveIO,int);
66  vtkGetMacro(CollectiveIO,int);
67  void SetWriteModeToCollective();
68  void SetWriteModeToIndependent();
70 
73  virtual void CloseFile() = 0;
74 
75 protected:
78 
79  virtual void WriteData() = 0; //internal method subclasses must respond to
81  int TimeStep;
82  double TimeValue;
83  char *FileName;
84 
85 private:
86  vtkAbstractParticleWriter(const vtkAbstractParticleWriter&); // Not implemented.
87  void operator=(const vtkAbstractParticleWriter&); // Not implemented.
88 };
89 
90 #endif