modify the time range/steps of temporal data
More...
#include <vtkTemporalShiftScale.h>
Inherits vtkAlgorithm.
|
virtual vtkObjectBase * | NewInstanceInternal () const |
|
| vtkTemporalShiftScale () |
|
| ~vtkTemporalShiftScale () |
|
virtual int | RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
|
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
|
virtual int | FillOutputPortInformation (int vtkNotUsed(port), vtkInformation *info) |
|
virtual int | RequestDataObject (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
|
virtual int | RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
|
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
|
double | ForwardConvert (double T0) |
|
double | BackwardConvert (double T1) |
|
|
virtual int | ProcessRequest (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
|
modify the time range/steps of temporal data
vtkTemporalShiftScale modify the time range or time steps of the data without changing the data itself. The data is not resampled by this filter, only the information accompanying the data is modified.
- Thanks:
- Ken Martin (Kitware) and John Bidiscombe of CSCS - Swiss National Supercomputing Centre for creating and contributing this class. For related material, please refer to : John Biddiscombe, Berk Geveci, Ken Martin, Kenneth Moreland, David Thompson, "Time Dependent Processing in a Parallel Pipeline Architecture", IEEE Visualization 2007.
- Tests:
- vtkTemporalShiftScale (Tests)
Definition at line 42 of file vtkTemporalShiftScale.h.
vtkTemporalShiftScale::vtkTemporalShiftScale |
( |
| ) |
|
|
protected |
vtkTemporalShiftScale::~vtkTemporalShiftScale |
( |
| ) |
|
|
protected |
static int vtkTemporalShiftScale::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkTemporalShiftScale::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkTemporalShiftScale::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkTemporalShiftScale::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
virtual void vtkTemporalShiftScale::SetPreShift |
( |
double |
| ) |
|
|
virtual |
Apply a translation to the data before scaling. To convert T{5,100} to T{0,1} use Preshift=-5, Scale=1/95, PostShift=0 To convert T{5,105} to T{5,10} use Preshift=-5, Scale=5/100, PostShift=5
virtual double vtkTemporalShiftScale::GetPreShift |
( |
| ) |
|
|
virtual |
Apply a translation to the data before scaling. To convert T{5,100} to T{0,1} use Preshift=-5, Scale=1/95, PostShift=0 To convert T{5,105} to T{5,10} use Preshift=-5, Scale=5/100, PostShift=5
virtual void vtkTemporalShiftScale::SetPostShift |
( |
double |
| ) |
|
|
virtual |
Apply a translation to the time
virtual double vtkTemporalShiftScale::GetPostShift |
( |
| ) |
|
|
virtual |
Apply a translation to the time
virtual void vtkTemporalShiftScale::SetScale |
( |
double |
| ) |
|
|
virtual |
Apply a scale to the time.
virtual double vtkTemporalShiftScale::GetScale |
( |
| ) |
|
|
virtual |
Apply a scale to the time.
virtual void vtkTemporalShiftScale::SetPeriodic |
( |
int |
| ) |
|
|
virtual |
If Periodic is true, requests for time will be wrapped around so that the source appears to be a periodic time source. If data exists for times {0,N-1}, setting periodic to true will cause time 0 to be produced when time N, 2N, 2N etc is requested. This effectively gives the source the ability to generate time data indefinitely in a loop. When combined with Shift/Scale, the time becomes periodic in the shifted and scaled time frame of reference. Note: Since the input time may not start at zero, the wrapping of time from the end of one period to the start of the next, will subtract the initial time - a source with T{5..6} repeated periodicaly will have output time {5..6..7..8} etc.
virtual int vtkTemporalShiftScale::GetPeriodic |
( |
| ) |
|
|
virtual |
If Periodic is true, requests for time will be wrapped around so that the source appears to be a periodic time source. If data exists for times {0,N-1}, setting periodic to true will cause time 0 to be produced when time N, 2N, 2N etc is requested. This effectively gives the source the ability to generate time data indefinitely in a loop. When combined with Shift/Scale, the time becomes periodic in the shifted and scaled time frame of reference. Note: Since the input time may not start at zero, the wrapping of time from the end of one period to the start of the next, will subtract the initial time - a source with T{5..6} repeated periodicaly will have output time {5..6..7..8} etc.
virtual void vtkTemporalShiftScale::PeriodicOn |
( |
| ) |
|
|
virtual |
If Periodic is true, requests for time will be wrapped around so that the source appears to be a periodic time source. If data exists for times {0,N-1}, setting periodic to true will cause time 0 to be produced when time N, 2N, 2N etc is requested. This effectively gives the source the ability to generate time data indefinitely in a loop. When combined with Shift/Scale, the time becomes periodic in the shifted and scaled time frame of reference. Note: Since the input time may not start at zero, the wrapping of time from the end of one period to the start of the next, will subtract the initial time - a source with T{5..6} repeated periodicaly will have output time {5..6..7..8} etc.
virtual void vtkTemporalShiftScale::PeriodicOff |
( |
| ) |
|
|
virtual |
If Periodic is true, requests for time will be wrapped around so that the source appears to be a periodic time source. If data exists for times {0,N-1}, setting periodic to true will cause time 0 to be produced when time N, 2N, 2N etc is requested. This effectively gives the source the ability to generate time data indefinitely in a loop. When combined with Shift/Scale, the time becomes periodic in the shifted and scaled time frame of reference. Note: Since the input time may not start at zero, the wrapping of time from the end of one period to the start of the next, will subtract the initial time - a source with T{5..6} repeated periodicaly will have output time {5..6..7..8} etc.
virtual void vtkTemporalShiftScale::SetPeriodicEndCorrection |
( |
int |
| ) |
|
|
virtual |
if Periodic time is enabled, this flag determines if the last time step is the same as the first. If PeriodicEndCorrection is true, then it is assumed that the input data goes from 0-1 (or whatever scaled/shifted actual time) and time 1 is the same as time 0 so that steps will be 0,1,2,3...N,1,2,3...N,1,2,3 where step N is the same as 0 and step 0 is not repeated. When this flag is false the data is assumed to be literal and output is of the form 0,1,2,3...N,0,1,2,3... By default this flag is ON
virtual int vtkTemporalShiftScale::GetPeriodicEndCorrection |
( |
| ) |
|
|
virtual |
if Periodic time is enabled, this flag determines if the last time step is the same as the first. If PeriodicEndCorrection is true, then it is assumed that the input data goes from 0-1 (or whatever scaled/shifted actual time) and time 1 is the same as time 0 so that steps will be 0,1,2,3...N,1,2,3...N,1,2,3 where step N is the same as 0 and step 0 is not repeated. When this flag is false the data is assumed to be literal and output is of the form 0,1,2,3...N,0,1,2,3... By default this flag is ON
virtual void vtkTemporalShiftScale::PeriodicEndCorrectionOn |
( |
| ) |
|
|
virtual |
if Periodic time is enabled, this flag determines if the last time step is the same as the first. If PeriodicEndCorrection is true, then it is assumed that the input data goes from 0-1 (or whatever scaled/shifted actual time) and time 1 is the same as time 0 so that steps will be 0,1,2,3...N,1,2,3...N,1,2,3 where step N is the same as 0 and step 0 is not repeated. When this flag is false the data is assumed to be literal and output is of the form 0,1,2,3...N,0,1,2,3... By default this flag is ON
virtual void vtkTemporalShiftScale::PeriodicEndCorrectionOff |
( |
| ) |
|
|
virtual |
if Periodic time is enabled, this flag determines if the last time step is the same as the first. If PeriodicEndCorrection is true, then it is assumed that the input data goes from 0-1 (or whatever scaled/shifted actual time) and time 1 is the same as time 0 so that steps will be 0,1,2,3...N,1,2,3...N,1,2,3 where step N is the same as 0 and step 0 is not repeated. When this flag is false the data is assumed to be literal and output is of the form 0,1,2,3...N,0,1,2,3... By default this flag is ON
virtual void vtkTemporalShiftScale::SetMaximumNumberOfPeriods |
( |
double |
| ) |
|
|
virtual |
if Periodic time is enabled, this controls how many time periods time is reported for. A filter cannot output an infinite number of time steps and therefore a finite number of periods is generated when reporting time.
virtual double vtkTemporalShiftScale::GetMaximumNumberOfPeriods |
( |
| ) |
|
|
virtual |
if Periodic time is enabled, this controls how many time periods time is reported for. A filter cannot output an infinite number of time steps and therefore a finite number of periods is generated when reporting time.
virtual int vtkTemporalShiftScale::ProcessRequest |
( |
vtkInformation * |
request, |
|
|
vtkInformationVector ** |
inputVector, |
|
|
vtkInformationVector * |
outputVector |
|
) |
| |
|
protectedvirtual |
see vtkAlgorithm for details
virtual int vtkTemporalShiftScale::RequestUpdateExtent |
( |
vtkInformation * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protectedvirtual |
virtual int vtkTemporalShiftScale::FillInputPortInformation |
( |
int |
port, |
|
|
vtkInformation * |
info |
|
) |
| |
|
protectedvirtual |
virtual int vtkTemporalShiftScale::FillOutputPortInformation |
( |
int |
vtkNotUsedport, |
|
|
vtkInformation * |
info |
|
) |
| |
|
protectedvirtual |
virtual int vtkTemporalShiftScale::RequestDataObject |
( |
vtkInformation * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protectedvirtual |
virtual int vtkTemporalShiftScale::RequestInformation |
( |
vtkInformation * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protectedvirtual |
virtual int vtkTemporalShiftScale::RequestData |
( |
vtkInformation * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protectedvirtual |
double vtkTemporalShiftScale::ForwardConvert |
( |
double |
T0 | ) |
|
|
protected |
double vtkTemporalShiftScale::BackwardConvert |
( |
double |
T1 | ) |
|
|
protected |
double vtkTemporalShiftScale::PreShift |
|
protected |
double vtkTemporalShiftScale::PostShift |
|
protected |
double vtkTemporalShiftScale::Scale |
|
protected |
int vtkTemporalShiftScale::Periodic |
|
protected |
int vtkTemporalShiftScale::PeriodicEndCorrection |
|
protected |
double vtkTemporalShiftScale::MaximumNumberOfPeriods |
|
protected |
double vtkTemporalShiftScale::InRange[2] |
|
protected |
double vtkTemporalShiftScale::OutRange[2] |
|
protected |
double vtkTemporalShiftScale::PeriodicRange[2] |
|
protected |
int vtkTemporalShiftScale::PeriodicN |
|
protected |
double vtkTemporalShiftScale::TempMultiplier |
|
protected |
The documentation for this class was generated from the following file: