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=========================================================================*/
54
55#ifndef vtkTemporalInterpolator_h
56#define vtkTemporalInterpolator_h
57
58#include "vtkFiltersHybridModule.h" // For export macro
60
61class vtkDataSet;
62class VTKFILTERSHYBRID_EXPORT vtkTemporalInterpolator : public vtkMultiTimeStepAlgorithm
63{
64public:
67 void PrintSelf(ostream& os, vtkIndent indent) override;
68
70
79 vtkSetMacro(DiscreteTimeStepInterval, double);
80 vtkGetMacro(DiscreteTimeStepInterval, double);
82
84
93 vtkSetMacro(ResampleFactor, int);
94 vtkGetMacro(ResampleFactor, int);
96
98
102 vtkSetMacro(CacheData, bool);
103 vtkGetMacro(CacheData, bool);
105
106protected:
109
112
113 int FillInputPortInformation(int port, vtkInformation* info) override;
114 int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info) override;
115
119 int Execute(vtkInformation* request, const std::vector<vtkSmartPointer<vtkDataObject>>& inputs,
120 vtkInformationVector* outputVector) override;
121
127
133 virtual vtkDataSet* InterpolateDataSet(vtkDataSet* in1, vtkDataSet* in2, double ratio);
134
139 virtual vtkDataArray* InterpolateDataArray(double ratio, vtkDataArray** arrays, vtkIdType N);
140
148
153 virtual ArrayMatch VerifyArrays(vtkDataArray** arrays, int N);
154
155 // internally used : Ratio is {0,1} between two time steps
156 // DeltaT is time between current 2 steps.
157 // These are only valid when 2 time steps are interpolated
158 // Higher order schemes will require changes to the API
159 double Ratio;
160 double DeltaT;
161 double Tfrac;
162
163private:
165 void operator=(const vtkTemporalInterpolator&) = delete;
166};
167
168#endif
general representation of visualization data
abstract class to specify dataset behavior
Definition vtkDataSet.h:57
a simple class to control print indentation
Definition vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Hold a reference to a vtkObjectBase instance.
~vtkTemporalInterpolator() override
vtkDataObject * InterpolateDataObject(vtkDataObject *in1, vtkDataObject *in2, double ratio)
General interpolation routine for any type on input data.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int Execute(vtkInformation *request, const std::vector< vtkSmartPointer< vtkDataObject > > &inputs, vtkInformationVector *outputVector) override
virtual vtkDataSet * InterpolateDataSet(vtkDataSet *in1, vtkDataSet *in2, double ratio)
Root level interpolation for a concrete dataset object.
virtual ArrayMatch VerifyArrays(vtkDataArray **arrays, int N)
Called just before interpolation of each dataset to ensure each data array has the same number of tup...
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation *info) override
virtual vtkDataArray * InterpolateDataArray(double ratio, vtkDataArray **arrays, vtkIdType N)
Interpolate a single vtkDataArray.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkTemporalInterpolator * New()
ArrayMatch
Return values for VerifyArrays().
@ MATCHED
Arrays match in number of components and tuples.
@ MISMATCHED_COMPS
Arrays do not have the same number of components.
@ MISMATCHED_TUPLES
Arrays match number of components but not tuples.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
#define vtkDataArray
int vtkIdType
Definition vtkType.h:332