VTK  9.0.20200924
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 "vtkAlgorithm.h"
37 #include "vtkFiltersHybridModule.h" // For export macro
38 
39 class VTKFILTERSHYBRID_EXPORT vtkTemporalShiftScale : public vtkAlgorithm
40 {
41 public:
42  static vtkTemporalShiftScale* New();
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
52  vtkSetMacro(PreShift, double);
53  vtkGetMacro(PreShift, double);
55 
57 
60  vtkSetMacro(PostShift, double);
61  vtkGetMacro(PostShift, double);
63 
65 
68  vtkSetMacro(Scale, double);
69  vtkGetMacro(Scale, double);
71 
73 
86  vtkSetMacro(Periodic, vtkTypeBool);
87  vtkGetMacro(Periodic, vtkTypeBool);
88  vtkBooleanMacro(Periodic, vtkTypeBool);
90 
92 
101  vtkSetMacro(PeriodicEndCorrection, vtkTypeBool);
102  vtkGetMacro(PeriodicEndCorrection, vtkTypeBool);
103  vtkBooleanMacro(PeriodicEndCorrection, vtkTypeBool);
105 
107 
112  vtkSetMacro(MaximumNumberOfPeriods, double);
113  vtkGetMacro(MaximumNumberOfPeriods, double);
115 
116 protected:
118  ~vtkTemporalShiftScale() override;
119 
120  double PreShift;
121  double PostShift;
122  double Scale;
126  //
127  double InRange[2];
128  double OutRange[2];
129  double PeriodicRange[2];
132 
137  vtkInformationVector* outputVector) override;
138 
139  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
140 
141  int FillInputPortInformation(int port, vtkInformation* info) override;
142  int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info) override;
143 
144  virtual int RequestDataObject(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
145 
146  virtual int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
147 
148  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
149 
150  double ForwardConvert(double T0);
151  double BackwardConvert(double T1);
152 
153 private:
155  void operator=(const vtkTemporalShiftScale&) = delete;
156 };
157 
158 #endif
vtkTemporalShiftScale
modify the time range/steps of temporal data
Definition: vtkTemporalShiftScale.h:39
vtkTemporalShiftScale::TempMultiplier
double TempMultiplier
Definition: vtkTemporalShiftScale.h:131
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:63
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkTemporalShiftScale::PeriodicN
int PeriodicN
Definition: vtkTemporalShiftScale.h:130
vtkTemporalShiftScale::PeriodicEndCorrection
vtkTypeBool PeriodicEndCorrection
Definition: vtkTemporalShiftScale.h:124
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkTemporalShiftScale::PreShift
double PreShift
Definition: vtkTemporalShiftScale.h:120
vtkTemporalShiftScale::Periodic
vtkTypeBool Periodic
Definition: vtkTemporalShiftScale.h:123
vtkAlgorithm.h
vtkTemporalShiftScale::Scale
double Scale
Definition: vtkTemporalShiftScale.h:122
vtkX3D::port
Definition: vtkX3D.h:453
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkTemporalShiftScale::MaximumNumberOfPeriods
double MaximumNumberOfPeriods
Definition: vtkTemporalShiftScale.h:125
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
Definition: vtkX3D.h:382
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkTemporalShiftScale::PostShift
double PostShift
Definition: vtkTemporalShiftScale.h:121
vtkAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithm::ProcessRequest
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69