VTK  9.6.20260228
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
18
19#ifndef vtkAbstractParticleWriter_h
20#define vtkAbstractParticleWriter_h
21
22#include "vtkIOCoreModule.h" // For export macro
23#include "vtkWriter.h"
24
25VTK_ABI_NAMESPACE_BEGIN
26class VTKIOCORE_EXPORT vtkAbstractParticleWriter : public vtkWriter
27{
28public:
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
58
60
64 vtkSetMacro(CollectiveIO, int);
65 vtkGetMacro(CollectiveIO, int);
69
74 virtual void CloseFile() = 0;
75
76protected:
79
82 double TimeValue;
83 char* FileName;
84
85private:
87 void operator=(const vtkAbstractParticleWriter&) = delete;
88};
89
90VTK_ABI_NAMESPACE_END
91#endif
void SetWriteModeToCollective()
When running in parallel, this writer may be capable of Collective IO operations (HDF5).
vtkGetFilePathMacro(FileName)
Set/get the FileName that is being written to.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetWriteModeToIndependent()
When running in parallel, this writer may be capable of Collective IO operations (HDF5).
~vtkAbstractParticleWriter() override
virtual void CloseFile()=0
Close the file after a write.
vtkSetFilePathMacro(FileName)
Set/get the FileName that is being written to.
a simple class to control print indentation
Definition vtkIndent.h:108