VTK  9.6.20260422
vtkNanoVDBWriter.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
15
16#ifndef vtkNanoVDBWriter_h
17#define vtkNanoVDBWriter_h
18
19#include "vtkIONanoVDBModule.h" // needed for exports
20#include "vtkWriter.h"
21
22VTK_ABI_NAMESPACE_BEGIN
23class vtkImageData;
24class vtkInformation;
26
27class VTKIONANOVDB_EXPORT vtkNanoVDBWriter : public vtkWriter
28{
29public:
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
35
41
43
47 vtkSetMacro(WriteAllTimeSteps, bool);
48 vtkGetMacro(WriteAllTimeSteps, bool);
50
52
57 vtkGetObjectMacro(Controller, vtkMultiProcessController);
59
60protected:
63
64 bool WriteDataAndReturn() override;
65
66 // This writer only accepts vtkImageData input.
67 int FillInputPortInformation(int port, vtkInformation* info) override;
68
69 // Needed so we can request pieces and time steps.
71 vtkInformationVector* outputVector) override;
72
73private:
74 vtkNanoVDBWriter(const vtkNanoVDBWriter&) = delete;
75 void operator=(const vtkNanoVDBWriter&) = delete;
76
77 bool WriteImageData(vtkImageData* imageData);
78
80 char* FileName = nullptr;
81 bool WriteAllTimeSteps = false;
82
83 // The controller for the writer to work in parallel.
84 vtkMultiProcessController* Controller = nullptr;
85
87 int CurrentTimeIndex = 0;
88 int NumberOfTimeSteps = 1;
89};
90
91VTK_ABI_NAMESPACE_END
92#endif
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Multiprocessing communication superclass.
int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkSetFilePathMacro(FileName)
Get/Set the filename for the file.
static vtkNanoVDBWriter * New()
void SetController(vtkMultiProcessController *)
Get/Set the controller to use.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool WriteDataAndReturn() override
~vtkNanoVDBWriter() override
vtkGetFilePathMacro(FileName)
Get/Set the filename for the file.