VTK  9.3.20240329
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 
79 
84  vtkInformationVector* outputVector) override;
85 
90 
91  int Operator;
96 
97 private:
99  void operator=(const vtkTemporalArrayOperatorFilter&) = delete;
100 };
101 
102 VTK_ABI_NAMESPACE_END
103 #endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:155
general representation of visualization data
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that would like to make multiple time requests.
perform simple mathematical operation on a data array at different time
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
virtual vtkDataArray * ProcessDataArray(vtkDataArray *, vtkDataArray *)
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual vtkDataObject * Process(vtkDataObject *, vtkDataObject *)
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
static vtkTemporalArrayOperatorFilter * New()
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkTemporalArrayOperatorFilter() override
int Execute(vtkInformation *request, const std::vector< vtkSmartPointer< vtkDataObject >> &inputs, vtkInformationVector *outputVector) override
virtual vtkDataObject * ProcessDataObject(vtkDataObject *, vtkDataObject *)
@ vector
Definition: vtkX3D.h:237