VTK  9.0.1
vtkTemporalArrayOperatorFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTemporalArrayOperatorFilter.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 =========================================================================*/
26 #ifndef vtkTemporalArrayOperatorFilter_h
27 #define vtkTemporalArrayOperatorFilter_h
28 
29 #include "vtkFiltersHybridModule.h" // For export macro
31 
32 class VTKFILTERSHYBRID_EXPORT vtkTemporalArrayOperatorFilter : public vtkMultiTimeStepAlgorithm
33 {
34 public:
37  void PrintSelf(ostream& OS, vtkIndent indent) override;
38 
40  {
41  ADD = 0,
42  SUB = 1,
43  MUL = 2,
44  DIV = 3
45  };
46 
48 
51  vtkSetMacro(Operator, int);
52  vtkGetMacro(Operator, int);
54 
56 
59  vtkSetMacro(FirstTimeStepIndex, int);
60  vtkGetMacro(FirstTimeStepIndex, int);
62 
64 
67  vtkSetMacro(SecondTimeStepIndex, int);
68  vtkGetMacro(SecondTimeStepIndex, int);
70 
72 
77  vtkSetStringMacro(OutputArrayNameSuffix);
78  vtkGetStringMacro(OutputArrayNameSuffix);
80 
81 protected:
84 
85  int FillInputPortInformation(int, vtkInformation*) override;
86  int FillOutputPortInformation(int, vtkInformation*) override;
87 
92 
94  virtual vtkDataObject* Process(vtkDataObject*, vtkDataObject*);
95  virtual vtkDataObject* ProcessDataObject(vtkDataObject*, vtkDataObject*);
96  virtual vtkDataArray* ProcessDataArray(vtkDataArray*, vtkDataArray*);
97 
98  int Operator;
103 
104 private:
106  void operator=(const vtkTemporalArrayOperatorFilter&) = delete;
107 };
108 
109 #endif
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
static vtkMultiTimeStepAlgorithm * New()
int GetInputArrayAssociation(int idx, vtkInformationVector **inputVector)
Get the assocition of the actual data array for the input array specified by idx, this is only reason...
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
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:49
Superclass for algorithms that would like to make multiple time requests.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
general representation of visualization data
Definition: vtkDataObject.h:59
perform simple mathematical operation on a data array at different time