VTK  9.1.0
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
32class VTKFILTERSHYBRID_EXPORT vtkTemporalArrayOperatorFilter : public vtkMultiTimeStepAlgorithm
33{
34public:
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
81protected:
84
87
91 int Execute(vtkInformation* request, const std::vector<vtkSmartPointer<vtkDataObject>>& inputs,
92 vtkInformationVector* outputVector) override;
93
98
104
105private:
107 void operator=(const vtkTemporalArrayOperatorFilter&) = delete;
108};
109
110#endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
general representation of visualization data
a simple class to control print indentation
Definition: vtkIndent.h:113
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