VTK  9.3.1
vtkTemporalArrayOperatorFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkTemporalArrayOperatorFilter_h
18 #define vtkTemporalArrayOperatorFilter_h
19 
20 #include "vtkFiltersHybridModule.h" // For export macro
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class VTKFILTERSHYBRID_EXPORT vtkTemporalArrayOperatorFilter : public vtkMultiTimeStepAlgorithm
25 {
26 public:
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
32  {
33  ADD = 0,
34  SUB = 1,
35  MUL = 2,
36  DIV = 3
37  };
38 
40 
43  vtkSetMacro(Operator, int);
44  vtkGetMacro(Operator, int);
46 
48 
51  vtkSetMacro(FirstTimeStepIndex, int);
52  vtkGetMacro(FirstTimeStepIndex, int);
54 
56 
59  vtkSetMacro(SecondTimeStepIndex, int);
60  vtkGetMacro(SecondTimeStepIndex, int);
62 
64 
69  vtkSetStringMacro(OutputArrayNameSuffix);
70  vtkGetStringMacro(OutputArrayNameSuffix);
72 
73 protected:
76 
77  int FillInputPortInformation(int, vtkInformation*) override;
78  int FillOutputPortInformation(int, vtkInformation*) override;
79 
84  vtkInformationVector* outputVector) override;
85 
87  virtual vtkDataObject* Process(vtkDataObject*, vtkDataObject*);
88  virtual vtkDataObject* ProcessDataObject(vtkDataObject*, vtkDataObject*);
89  virtual vtkDataArray* ProcessDataArray(vtkDataArray*, vtkDataArray*);
90 
91  int Operator;
96 
97 private:
99  void operator=(const vtkTemporalArrayOperatorFilter&) = delete;
100 };
101 
102 VTK_ABI_NAMESPACE_END
103 #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 Execute(vtkInformation *vtkNotUsed(request), const std::vector< vtkSmartPointer< vtkDataObject >> &vtkNotUsed(inputs), vtkInformationVector *vtkNotUsed(outputVector))
Subclasses should override this method to do the actual execution.
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
static vtkMultiTimeStepAlgorithm * New()
int GetInputArrayAssociation(int idx, vtkInformationVector **inputVector)
Get the association of the actual data array for the input array specified by idx, this is only reasonable during the REQUEST_DATA pass.
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:28
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
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:54
perform simple mathematical operation on a data array at different time