Section: Visualization Toolkit Hybrid Classes
@TODO Higher order interpolation schemes will require changes to the API as most calls assume only two timesteps are used.
To create an instance of class vtkTemporalInterpolator, simply invoke its constructor as follows
obj = vtkTemporalInterpolator
obj
is an instance of the vtkTemporalInterpolator class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkTemporalInterpolator = obj.NewInstance ()
vtkTemporalInterpolator = obj.SafeDownCast (vtkObject o)
obj.SetDiscreteTimeStepInterval (double )
- If you require a discrete number of outputs steps, to be
generated from an input source - for example, you required
N steps separated by T, then set DiscreteTimeStepInterval to T
and you will get TIME_RANGE/DiscreteTimeStepInterval steps
This is a useful option to use if you have a dataset with one
missing time step and wish to 'fill-in' the missing data
with an interpolated value from the steps either side
double = obj.GetDiscreteTimeStepInterval ()
- If you require a discrete number of outputs steps, to be
generated from an input source - for example, you required
N steps separated by T, then set DiscreteTimeStepInterval to T
and you will get TIME_RANGE/DiscreteTimeStepInterval steps
This is a useful option to use if you have a dataset with one
missing time step and wish to 'fill-in' the missing data
with an interpolated value from the steps either side
obj.SetResampleFactor (int )
- When ResampleFactor is a non zero positive integer, each pair
of input time steps will be interpolated between with the number
of steps specified. For example an input of 1,2,3,4,5 and a resample factor
of 10, will produce steps 0f 1.0, 1.1, 1.2.....1.9, 2.0 etc
NB. Irregular input steps will produce irregular output steps.
Resample factor wuill only be used if DiscreteTimeStepInterval is zero
otherwise the DiscreteTimeStepInterval takes precedence
int = obj.GetResampleFactor ()
- When ResampleFactor is a non zero positive integer, each pair
of input time steps will be interpolated between with the number
of steps specified. For example an input of 1,2,3,4,5 and a resample factor
of 10, will produce steps 0f 1.0, 1.1, 1.2.....1.9, 2.0 etc
NB. Irregular input steps will produce irregular output steps.
Resample factor wuill only be used if DiscreteTimeStepInterval is zero
otherwise the DiscreteTimeStepInterval takes precedence