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 =========================================================================*/
36 #ifndef vtkTemporalShiftScale_h
37 #define vtkTemporalShiftScale_h
38 
39 #include "vtkFiltersHybridModule.h" // For export macro
40 #include "vtkAlgorithm.h"
41 
42 
43 class VTKFILTERSHYBRID_EXPORT vtkTemporalShiftScale: public vtkAlgorithm
44 {
45 public:
46  static vtkTemporalShiftScale *New();
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
56  vtkSetMacro(PreShift, double);
57  vtkGetMacro(PreShift, double);
59 
61 
64  vtkSetMacro(PostShift, double);
65  vtkGetMacro(PostShift, double);
67 
69 
72  vtkSetMacro(Scale, double);
73  vtkGetMacro(Scale, double);
75 
77 
90  vtkSetMacro(Periodic, int);
91  vtkGetMacro(Periodic, int);
92  vtkBooleanMacro(Periodic, int);
94 
96 
105  vtkSetMacro(PeriodicEndCorrection, int);
106  vtkGetMacro(PeriodicEndCorrection, int);
107  vtkBooleanMacro(PeriodicEndCorrection, int);
109 
111 
116  vtkSetMacro(MaximumNumberOfPeriods, double);
117  vtkGetMacro(MaximumNumberOfPeriods, double);
119 
120 protected:
123 
124  double PreShift;
125  double PostShift;
126  double Scale;
127  int Periodic;
130  //
131  double InRange[2];
132  double OutRange[2];
133  double PeriodicRange[2];
136 
140  virtual int ProcessRequest(vtkInformation* request,
141  vtkInformationVector** inputVector,
142  vtkInformationVector* outputVector);
143 
144  virtual int RequestUpdateExtent (vtkInformation *,
147 
149  virtual int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info);
150 
151 
152  virtual int RequestDataObject(vtkInformation *,
155 
156 
157  virtual int RequestInformation (vtkInformation *,
160 
161  virtual int RequestData(vtkInformation *,
164 
165  double ForwardConvert(double T0);
166  double BackwardConvert(double T1);
167 
168 private:
169  vtkTemporalShiftScale(const vtkTemporalShiftScale&) VTK_DELETE_FUNCTION;
170  void operator=(const vtkTemporalShiftScale&) VTK_DELETE_FUNCTION;
171 };
172 
173 
174 
175 #endif
176 
177 
178 
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.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
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.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.