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 "vtkIOCoreModule.h" // For export macro
34 #include "vtkWriter.h"
35 
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43 
44  vtkSetMacro(TimeStep, int);
45  vtkGetMacro(TimeStep, int);
47 
49 
53  vtkSetMacro(TimeValue,double);
54  vtkGetMacro(TimeValue,double);
56 
58 
59  vtkSetStringMacro(FileName);
60  vtkGetStringMacro(FileName);
62 
64 
66  vtkSetMacro(CollectiveIO,int);
67  vtkGetMacro(CollectiveIO,int);
68  void SetWriteModeToCollective();
69  void SetWriteModeToIndependent();
71 
74  virtual void CloseFile() = 0;
75 
76 protected:
79 
80  virtual void WriteData() = 0; //internal method subclasses must respond to
82  int TimeStep;
83  double TimeValue;
84  char *FileName;
85 
86 private:
87  vtkAbstractParticleWriter(const vtkAbstractParticleWriter&); // Not implemented.
88  void operator=(const vtkAbstractParticleWriter&); // Not implemented.
89 };
90 
91 #endif
abstract class to write particle data to file
#define VTKIOCORE_EXPORT
abstract class to write data to file(s)
Definition: vtkWriter.h:44
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void WriteData()=0
void PrintSelf(ostream &os, vtkIndent indent)