VTK
vtkTemporalShiftScale.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTemporalShiftScale.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 =========================================================================*/
35 #ifndef vtkTemporalShiftScale_h
36 #define vtkTemporalShiftScale_h
37 
38 #include "vtkFiltersHybridModule.h" // For export macro
39 #include "vtkAlgorithm.h"
40 
41 
43 {
44 public:
45  static vtkTemporalShiftScale *New();
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
53  vtkSetMacro(PreShift, double);
54  vtkGetMacro(PreShift, double);
56 
58 
59  vtkSetMacro(PostShift, double);
60  vtkGetMacro(PostShift, double);
62 
64 
65  vtkSetMacro(Scale, double);
66  vtkGetMacro(Scale, double);
68 
70 
81  vtkSetMacro(Periodic, int);
82  vtkGetMacro(Periodic, int);
83  vtkBooleanMacro(Periodic, int);
85 
87 
95  vtkSetMacro(PeriodicEndCorrection, int);
96  vtkGetMacro(PeriodicEndCorrection, int);
97  vtkBooleanMacro(PeriodicEndCorrection, int);
99 
101 
105  vtkSetMacro(MaximumNumberOfPeriods, double);
106  vtkGetMacro(MaximumNumberOfPeriods, double);
108 
109 protected:
112 
113  double PreShift;
114  double PostShift;
115  double Scale;
116  int Periodic;
119  //
120  double InRange[2];
121  double OutRange[2];
122  double PeriodicRange[2];
125 
127 
128  virtual int ProcessRequest(vtkInformation* request,
129  vtkInformationVector** inputVector,
130  vtkInformationVector* outputVector);
132 
133  virtual int RequestUpdateExtent (vtkInformation *,
136 
138  virtual int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info);
139 
140 
141  virtual int RequestDataObject(vtkInformation *,
144 
145 
146  virtual int RequestInformation (vtkInformation *,
149 
150  virtual int RequestData(vtkInformation *,
153 
154  double ForwardConvert(double T0);
155  double BackwardConvert(double T1);
156 
157 private:
158  vtkTemporalShiftScale(const vtkTemporalShiftScale&); // Not implemented.
159  void operator=(const vtkTemporalShiftScale&); // Not implemented.
160 };
161 
162 
163 
164 #endif
165 
166 
167 
Store vtkAlgorithm input/output information.
modify the time range/steps of temporal data
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSHYBRID_EXPORT
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)