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 =========================================================================*/
33 #ifndef vtkTemporalShiftScale_h
34 #define vtkTemporalShiftScale_h
35 
36 #include "vtkFiltersHybridModule.h" // For export macro
37 #include "vtkAlgorithm.h"
38 
39 
40 class VTKFILTERSHYBRID_EXPORT vtkTemporalShiftScale: public vtkAlgorithm
41 {
42 public:
43  static vtkTemporalShiftScale *New();
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
53  vtkSetMacro(PreShift, double);
54  vtkGetMacro(PreShift, double);
56 
58 
61  vtkSetMacro(PostShift, double);
62  vtkGetMacro(PostShift, double);
64 
66 
69  vtkSetMacro(Scale, double);
70  vtkGetMacro(Scale, double);
72 
74 
87  vtkSetMacro(Periodic, vtkTypeBool);
88  vtkGetMacro(Periodic, vtkTypeBool);
89  vtkBooleanMacro(Periodic, vtkTypeBool);
91 
93 
102  vtkSetMacro(PeriodicEndCorrection, vtkTypeBool);
103  vtkGetMacro(PeriodicEndCorrection, vtkTypeBool);
104  vtkBooleanMacro(PeriodicEndCorrection, vtkTypeBool);
106 
108 
113  vtkSetMacro(MaximumNumberOfPeriods, double);
114  vtkGetMacro(MaximumNumberOfPeriods, double);
116 
117 protected:
119  ~vtkTemporalShiftScale() override;
120 
121  double PreShift;
122  double PostShift;
123  double Scale;
127  //
128  double InRange[2];
129  double OutRange[2];
130  double PeriodicRange[2];
133 
137  int ProcessRequest(vtkInformation* request,
138  vtkInformationVector** inputVector,
139  vtkInformationVector* outputVector) override;
140 
141  virtual int RequestUpdateExtent (vtkInformation *,
144 
145  int FillInputPortInformation(int port, vtkInformation* info) override;
146  int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info) override;
147 
148 
149  virtual int RequestDataObject(vtkInformation *,
152 
153 
154  virtual int RequestInformation (vtkInformation *,
157 
158  virtual int RequestData(vtkInformation *,
161 
162  double ForwardConvert(double T0);
163  double BackwardConvert(double T1);
164 
165 private:
167  void operator=(const vtkTemporalShiftScale&) = delete;
168 };
169 
170 
171 
172 #endif
173 
174 
175 
Store vtkAlgorithm input/output information.
modify the time range/steps of temporal data
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkTypeBool
Definition: vtkABI.h:69
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:53
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
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()