VTK  9.4.20250131
vtkSynchronizeTimeFilter.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
21#ifndef vtkSynchronizeTimeFilter_h
22#define vtkSynchronizeTimeFilter_h
23
24#include "vtkFiltersGeneralModule.h" // For export macro
26
27#include <vector> // Use of dynamically allocated array
28
29VTK_ABI_NAMESPACE_BEGIN
30class VTKFILTERSGENERAL_EXPORT vtkSynchronizeTimeFilter : public vtkPassInputTypeAlgorithm
31{
32public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
43
49 vtkSetClampMacro(RelativeTolerance, double, 0, VTK_DOUBLE_MAX);
50 vtkGetMacro(RelativeTolerance, double);
51
52protected:
55
60 double GetInputTimeValue(double outputTimeValue);
61 double GetOutputTimeValue(double inputTimeValue);
62
64 vtkInformationVector* outputVector) override;
65
67 vtkInformationVector* outputVector) override;
68
70
71private:
73 void operator=(const vtkSynchronizeTimeFilter&) = delete;
74
79 std::vector<double> InputTimeStepValues;
80 std::vector<double> OutputTimeStepValues;
81
86 double RelativeTolerance;
87};
88
89VTK_ABI_NAMESPACE_END
90#endif
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.
Set "close" time step values from the second input to the first.
~vtkSynchronizeTimeFilter() override
double GetInputTimeValue(double outputTimeValue)
Helper methods for getting the input time value or output time value given the output time value or i...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkSynchronizeTimeFilter * New()
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
Specify the input that we may potentially replace time steps with.
double GetOutputTimeValue(double inputTimeValue)
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called within ProcessRequest when a request asks for Information.
#define VTK_DOUBLE_MAX
Definition vtkType.h:154