VTK  9.2.6
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 =========================================================================*/
36 #ifndef vtkTemporalShiftScale_h
37 #define vtkTemporalShiftScale_h
38 
39 #include "vtkAlgorithm.h"
40 #include "vtkFiltersHybridModule.h" // For export macro
41 
42 class VTKFILTERSHYBRID_EXPORT vtkTemporalShiftScale : public vtkAlgorithm
43 {
44 public:
45  static vtkTemporalShiftScale* New();
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
50 
55  vtkSetMacro(PreShift, double);
56  vtkGetMacro(PreShift, double);
58 
60 
63  vtkSetMacro(PostShift, double);
64  vtkGetMacro(PostShift, double);
66 
68 
71  vtkSetMacro(Scale, double);
72  vtkGetMacro(Scale, double);
74 
76 
89  vtkSetMacro(Periodic, vtkTypeBool);
90  vtkGetMacro(Periodic, vtkTypeBool);
91  vtkBooleanMacro(Periodic, vtkTypeBool);
93 
95 
104  vtkSetMacro(PeriodicEndCorrection, vtkTypeBool);
105  vtkGetMacro(PeriodicEndCorrection, vtkTypeBool);
106  vtkBooleanMacro(PeriodicEndCorrection, vtkTypeBool);
108 
110 
115  vtkSetMacro(MaximumNumberOfPeriods, double);
116  vtkGetMacro(MaximumNumberOfPeriods, double);
118 
119 protected:
121  ~vtkTemporalShiftScale() override;
122 
123  double PreShift;
124  double PostShift;
125  double Scale;
129  //
130  double InRange[2];
131  double OutRange[2];
132  double PeriodicRange[2];
135 
140  vtkInformationVector* outputVector) override;
141 
142  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
143 
144  int FillInputPortInformation(int port, vtkInformation* info) override;
145  int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info) override;
146 
147  virtual int RequestDataObject(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
148 
149  virtual int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
150 
151  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
152 
153  double ForwardConvert(double T0);
154  double BackwardConvert(double T1);
155 
156 private:
158  void operator=(const vtkTemporalShiftScale&) = delete;
159 };
160 
161 #endif
Store vtkAlgorithm input/output information.
modify the time range/steps of temporal data
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
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
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:39
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()