VTK  9.2.6
vtkTemporalInterpolator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTemporalInterpolator.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 =========================================================================*/
58 #ifndef vtkTemporalInterpolator_h
59 #define vtkTemporalInterpolator_h
60 
61 #include "vtkFiltersHybridModule.h" // For export macro
63 
64 class vtkDataSet;
65 class VTKFILTERSHYBRID_EXPORT vtkTemporalInterpolator : public vtkMultiTimeStepAlgorithm
66 {
67 public:
68  static vtkTemporalInterpolator* New();
70  void PrintSelf(ostream& os, vtkIndent indent) override;
71 
73 
82  vtkSetMacro(DiscreteTimeStepInterval, double);
83  vtkGetMacro(DiscreteTimeStepInterval, double);
85 
87 
96  vtkSetMacro(ResampleFactor, int);
97  vtkGetMacro(ResampleFactor, int);
99 
101 
105  vtkSetMacro(CacheData, bool);
106  vtkGetMacro(CacheData, bool);
108 
109 protected:
111  ~vtkTemporalInterpolator() override;
112 
115 
116  int FillInputPortInformation(int port, vtkInformation* info) override;
117  int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info) override;
118 
123  vtkInformationVector* outputVector) override;
124 
129  vtkDataObject* InterpolateDataObject(vtkDataObject* in1, vtkDataObject* in2, double ratio);
130 
136  virtual vtkDataSet* InterpolateDataSet(vtkDataSet* in1, vtkDataSet* in2, double ratio);
137 
142  virtual vtkDataArray* InterpolateDataArray(double ratio, vtkDataArray** arrays, vtkIdType N);
143 
146  {
147  MATCHED = 0,
148  MISMATCHED_TUPLES = 1,
149  MISMATCHED_COMPS = 2
150  };
151 
156  virtual ArrayMatch VerifyArrays(vtkDataArray** arrays, int N);
157 
158  // internally used : Ratio is {0,1} between two time steps
159  // DeltaT is time between current 2 steps.
160  // These are only valid when 2 time steps are interpolated
161  // Higher order schemes will require changes to the API
162  double Ratio;
163  double DeltaT;
164  double Tfrac;
165 
166 private:
168  void operator=(const vtkTemporalInterpolator&) = delete;
169 };
170 
171 #endif
ArrayMatch
Return values for VerifyArrays().
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
virtual int Execute(vtkInformation *vtkNotUsed(request), const std::vector< vtkSmartPointer< vtkDataObject >> &vtkNotUsed(inputs), vtkInformationVector *vtkNotUsed(outputVector))
Subclasses should override this method to do the actual execution.
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
static vtkMultiTimeStepAlgorithm * New()
int vtkIdType
Definition: vtkType.h:332
interpolate datasets between time steps to produce a new dataset
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
Superclass for algorithms that would like to make multiple time requests.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
general representation of visualization data
Definition: vtkDataObject.h:65