VTK  9.7.1
vtkAbstractParticleWriter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
19 #ifndef vtkAbstractParticleWriter_h
20 #define vtkAbstractParticleWriter_h
21 
22 #include "vtkIOCoreModule.h" // For export macro
23 #include "vtkWriter.h"
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 class VTKIOCORE_EXPORT vtkAbstractParticleWriter : public vtkWriter
27 {
28 public:
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
33 
36  vtkSetMacro(TimeStep, int);
37  vtkGetMacro(TimeStep, int);
39 
41 
47  vtkSetMacro(TimeValue, double);
48  vtkGetMacro(TimeValue, double);
50 
52 
55  vtkSetFilePathMacro(FileName);
56  vtkGetFilePathMacro(FileName);
58 
60 
64  vtkSetMacro(CollectiveIO, int);
65  vtkGetMacro(CollectiveIO, int);
66  void SetWriteModeToCollective();
67  void SetWriteModeToIndependent();
69 
74  virtual void CloseFile() = 0;
75 
76 protected:
78  ~vtkAbstractParticleWriter() override;
79 
81  int TimeStep;
82  double TimeValue;
83  char* FileName;
84 
85 private:
87  void operator=(const vtkAbstractParticleWriter&) = delete;
88 };
89 
90 VTK_ABI_NAMESPACE_END
91 #endif
abstract class to write particle data to file
abstract class to write data to file(s)
Definition: vtkWriter.h:35
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28