VTK  9.4.20250203
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
23VTK_ABI_NAMESPACE_BEGIN
24class VTKFILTERSHYBRID_EXPORT vtkTemporalArrayOperatorFilter : public vtkMultiTimeStepAlgorithm
25{
26public:
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
73protected:
76
79
83 int Execute(vtkInformation* request, const std::vector<vtkSmartPointer<vtkDataObject>>& inputs,
84 vtkInformationVector* outputVector) override;
85
90
96
97private:
99 void operator=(const vtkTemporalArrayOperatorFilter&) = delete;
100};
101
102VTK_ABI_NAMESPACE_END
103#endif
abstract superclass for arrays of numeric data
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.
Hold a reference to a vtkObjectBase instance.
perform simple mathematical operation on a data array at different time
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
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.
static vtkTemporalArrayOperatorFilter * New()
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
virtual vtkDataObject * ProcessDataObject(vtkDataObject *, vtkDataObject *)
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
virtual vtkDataObject * Process(vtkDataObject *, vtkDataObject *)
virtual vtkDataArray * ProcessDataArray(vtkDataArray *, vtkDataArray *)
int Execute(vtkInformation *request, const std::vector< vtkSmartPointer< vtkDataObject > > &inputs, vtkInformationVector *outputVector) override
~vtkTemporalArrayOperatorFilter() override