VTK
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 =========================================================================*/
55 #ifndef vtkTemporalInterpolator_h
56 #define vtkTemporalInterpolator_h
57 
58 #include "vtkFiltersHybridModule.h" // For export macro
60 
61 class vtkDataSet;
62 class VTKFILTERSHYBRID_EXPORT vtkTemporalInterpolator : public vtkMultiTimeStepAlgorithm
63 {
64 public:
65  static vtkTemporalInterpolator *New();
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 
106 protected:
108  ~vtkTemporalInterpolator() override;
109 
110 
113 
114  int FillInputPortInformation(int port, vtkInformation* info) override;
115  int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info) override;
116 
117 
120  vtkInformationVector *) override;
121 
124  vtkInformationVector *) override;
127  vtkInformationVector *) override;
128 
131  vtkInformationVector *) override;
132 
137  vtkDataObject *InterpolateDataObject(vtkDataObject *in1,
138  vtkDataObject *in2,
139  double ratio);
140 
146  virtual vtkDataSet *InterpolateDataSet(vtkDataSet *in1,
147  vtkDataSet *in2,
148  double ratio);
149 
154  virtual vtkDataArray *InterpolateDataArray(double ratio,
155  vtkDataArray **arrays,
156  vtkIdType N);
157 
162  virtual bool VerifyArrays(vtkDataArray **arrays, int N);
163 
164  // internally used : Ratio is {0,1} between two time steps
165  // DeltaT is time between current 2 steps.
166  // These are only valid when 2 time steps are interpolated
167  // Higher order schemes will require changes to the API
168  double Ratio;
169  double DeltaT;
170  double Tfrac;
171 
172 private:
174  void operator=(const vtkTemporalInterpolator&) = delete;
175 };
176 
177 
178 
179 #endif
180 
181 
182 
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:56
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
static vtkMultiTimeStepAlgorithm * New()
int vtkIdType
Definition: vtkType.h:347
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:33
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
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:58