VTK  9.3.20240329
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 
29 VTK_ABI_NAMESPACE_BEGIN
30 class VTKFILTERSGENERAL_EXPORT vtkSynchronizeTimeFilter : public vtkPassInputTypeAlgorithm
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
43 
49  vtkSetClampMacro(RelativeTolerance, double, 0, VTK_DOUBLE_MAX);
50  vtkGetMacro(RelativeTolerance, double);
51 
52 protected:
55 
60  double GetInputTimeValue(double outputTimeValue);
61  double GetOutputTimeValue(double inputTimeValue);
62 
64  vtkInformationVector* outputVector) override;
65 
67  vtkInformationVector* outputVector) override;
68 
70 
71 private:
73  void operator=(const vtkSynchronizeTimeFilter&) = delete;
74 
79  std::vector<double> InputTimeStepValues;
80  std::vector<double> OutputTimeStepValues;
81 
86  double RelativeTolerance;
87 };
88 
89 VTK_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
static vtkSynchronizeTimeFilter * New()
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.
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