VTK  9.5.20250718
vtkFidesWriter.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
3
53#ifndef vtkFidesWriter_h
54#define vtkFidesWriter_h
55
56#include "vtkIOFidesModule.h" // For export macro
57#include "vtkNew.h" // For vtkNew
58#include "vtkWriter.h"
59
60#include <memory> // for std::unique_ptr
61
62VTK_ABI_NAMESPACE_BEGIN
66
67class VTKIOFIDES_EXPORT vtkFidesWriter : public vtkWriter
68{
69public:
71 {
72 BPFile
73 };
74
76 vtkTypeMacro(vtkFidesWriter, vtkWriter);
77 void PrintSelf(ostream& os, vtkIndent indent) override;
78
80
86
88
95 vtkSetMacro(ChooseFieldsToWrite, bool);
96 vtkGetMacro(ChooseFieldsToWrite, bool);
97 vtkBooleanMacro(ChooseFieldsToWrite, bool);
99
101
109
111
119 vtkSetVector2Macro(TimeStepRange, int);
120 vtkGetVector2Macro(TimeStepRange, int);
121 vtkSetClampMacro(TimeStepStride, int, 1, VTK_INT_MAX);
122 vtkGetMacro(TimeStepStride, int);
124
126
129 vtkSetMacro(Engine, int);
130 vtkGetMacro(Engine, int);
132
134
140 vtkGetObjectMacro(Controller, vtkMultiProcessController);
142
143protected:
145 ~vtkFidesWriter() override;
146
147 int FillInputPortInformation(int port, vtkInformation* info) override;
151 vtkInformationVector* outputVector);
153 vtkInformationVector* outputVector) override;
154
155 void WriteData() override;
156
157private:
158 vtkFidesWriter(const vtkFidesWriter&) = delete;
159 void operator=(const vtkFidesWriter&) = delete;
160
161 struct FidesWriterImpl;
162 std::unique_ptr<FidesWriterImpl> Impl;
163
164 vtkMultiProcessController* Controller;
165 char* FileName;
166 bool ChooseFieldsToWrite;
167 int TimeStepRange[2];
168 int TimeStepStride;
169 int Engine;
170
171 vtkNew<vtkDataArraySelection> ArraySelection[3];
172};
173
174VTK_ABI_NAMESPACE_END
175#endif
Store on/off settings for data arrays, etc.
Write ADIOS2 streams using Fides data model.
vtkDataArraySelection * GetFieldDataArraySelection()
Returns the array selection object for point, cell, or field data.
void WriteData() override
~vtkFidesWriter() override
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkSetFilePathMacro(FileName)
Set/Get the filename to be written.
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkDataArraySelection * GetCellDataArraySelection()
Returns the array selection object for point, cell, or field data.
void SetController(vtkMultiProcessController *)
Get/Set the controller to use when working in parallel.
vtkDataArraySelection * GetPointDataArraySelection()
Returns the array selection object for point, cell, or field data.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkFidesWriter * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataArraySelection * GetArraySelection(int association)
Returns the array selection object for point, cell, or field data.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGetFilePathMacro(FileName)
Set/Get the filename to be written.
a simple class to control print indentation
Definition vtkIndent.h:108
Key for integer values in vtkInformation.
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Multiprocessing communication superclass.
Allocate and hold a VTK object.
Definition vtkNew.h:167
abstract class to write data to file(s)
Definition vtkWriter.h:35
#define VTK_INT_MAX
Definition vtkType.h:161