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 =========================================================================*/
57 #ifndef vtkTemporalInterpolator_h
58 #define vtkTemporalInterpolator_h
59 
60 #include "vtkFiltersHybridModule.h" // For export macro
62 
63 class vtkDataSet;
65 {
66 public:
69  void PrintSelf(ostream& os, vtkIndent indent);
70 
72 
79  vtkSetMacro(DiscreteTimeStepInterval, double);
80  vtkGetMacro(DiscreteTimeStepInterval, double);
82 
84 
91  vtkSetMacro(ResampleFactor, int);
92  vtkGetMacro(ResampleFactor, int);
94 
96 
98  vtkSetMacro(CacheData, bool);
99  vtkGetMacro(CacheData, bool);
101 
102 protected:
105 
106 
109 
112 
113 
117 
124 
128 
130 
133  vtkDataObject *in2,
134  double ratio);
136 
138 
142  vtkDataSet *in2,
143  double ratio);
145 
147 
149  virtual vtkDataArray *InterpolateDataArray(double ratio,
151  vtkIdType N);
153 
156  virtual bool 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:
167  vtkTemporalInterpolator(const vtkTemporalInterpolator&); // Not implemented.
168  void operator=(const vtkTemporalInterpolator&); // Not implemented.
169 };
170 
171 
172 
173 #endif
174 
175 
176 
vtkTemporalInterpolator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTemporalInterpolator::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkTemporalInterpolator::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkTemporalInterpolator::FillOutputPortInformation
virtual int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation *info)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkMultiTimeStepAlgorithm.h
vtkTemporalInterpolator::New
static vtkTemporalInterpolator * New()
vtkTemporalInterpolator::DiscreteTimeStepInterval
double DiscreteTimeStepInterval
Definition: vtkTemporalInterpolator.h:107
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkTemporalInterpolator::InterpolateDataSet
virtual vtkDataSet * InterpolateDataSet(vtkDataSet *in1, vtkDataSet *in2, double ratio)
vtkTemporalInterpolator::Ratio
double Ratio
Definition: vtkTemporalInterpolator.h:162
vtkTemporalInterpolator::vtkTemporalInterpolator
vtkTemporalInterpolator()
vtkTemporalInterpolator::InterpolateDataObject
vtkDataObject * InterpolateDataObject(vtkDataObject *in1, vtkDataObject *in2, double ratio)
vtkTemporalInterpolator::VerifyArrays
virtual bool VerifyArrays(vtkDataArray **arrays, int N)
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkNotUsed
#define vtkNotUsed(x)
Definition: vtkSetGet.h:557
VTKFILTERSHYBRID_EXPORT
#define VTKFILTERSHYBRID_EXPORT
Definition: vtkFiltersHybridModule.h:15
vtkTemporalInterpolator::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkTemporalInterpolator::DeltaT
double DeltaT
Definition: vtkTemporalInterpolator.h:163
vtkTemporalInterpolator::Tfrac
double Tfrac
Definition: vtkTemporalInterpolator.h:164
vtkgl::arrays
const GLuint * arrays
Definition: vtkgl.h:13636
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkFiltersHybridModule.h
vtkTemporalInterpolator::RequestDataObject
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkTemporalInterpolator
interpolate datasets between time steps to produce a new dataset
Definition: vtkTemporalInterpolator.h:65
vtkTemporalInterpolator::InterpolateDataArray
virtual vtkDataArray * InterpolateDataArray(double ratio, vtkDataArray **arrays, vtkIdType N)
vtkTemporalInterpolator::~vtkTemporalInterpolator
~vtkTemporalInterpolator()
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkTemporalInterpolator::ResampleFactor
int ResampleFactor
Definition: vtkTemporalInterpolator.h:108
vtkMultiTimeStepAlgorithm
Superclass for algorithms that would like to make multiple time requests.
Definition: vtkMultiTimeStepAlgorithm.h:39
vtkTemporalInterpolator::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)