VTK  9.2.6
vtkSynchronizeTimeFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSynchronizeTimeFilter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
33 #ifndef vtkSynchronizeTimeFilter_h
34 #define vtkSynchronizeTimeFilter_h
35 
36 #include "vtkFiltersGeneralModule.h" // For export macro
38 
39 #include <vector> // Use of dynamically allocated array
40 
41 class VTKFILTERSGENERAL_EXPORT vtkSynchronizeTimeFilter : public vtkPassInputTypeAlgorithm
42 {
43 public:
44  static vtkSynchronizeTimeFilter* New();
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
53  void SetSourceConnection(vtkAlgorithmOutput* algOutput);
54 
60  vtkSetClampMacro(RelativeTolerance, double, 0, VTK_DOUBLE_MAX);
61  vtkGetMacro(RelativeTolerance, double);
62 
63 protected:
65  ~vtkSynchronizeTimeFilter() override;
66 
71  double GetInputTimeValue(double outputTimeValue);
72  double GetOutputTimeValue(double inputTimeValue);
73 
74  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
75  vtkInformationVector* outputVector) override;
76 
77  int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
78  vtkInformationVector* outputVector) override;
79 
81 
82 private:
84  void operator=(const vtkSynchronizeTimeFilter&) = delete;
85 
90  std::vector<double> InputTimeStepValues;
91  std::vector<double> OutputTimeStepValues;
92 
97  double RelativeTolerance;
98 };
99 
100 #endif
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
Proxy object to connect input/output ports.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
a simple class to control print indentation
Definition: vtkIndent.h:39
Set "close" time step values from the second input to the first.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store zero or more vtkInformation instances.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkPassInputTypeAlgorithm * New()