VTK  9.2.6
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 =========================================================================*/
29 #ifndef vtkTemporalArrayOperatorFilter_h
30 #define vtkTemporalArrayOperatorFilter_h
31 
32 #include "vtkFiltersHybridModule.h" // For export macro
34 
35 class VTKFILTERSHYBRID_EXPORT vtkTemporalArrayOperatorFilter : public vtkMultiTimeStepAlgorithm
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43  {
44  ADD = 0,
45  SUB = 1,
46  MUL = 2,
47  DIV = 3
48  };
49 
51 
54  vtkSetMacro(Operator, int);
55  vtkGetMacro(Operator, int);
57 
59 
62  vtkSetMacro(FirstTimeStepIndex, int);
63  vtkGetMacro(FirstTimeStepIndex, int);
65 
67 
70  vtkSetMacro(SecondTimeStepIndex, int);
71  vtkGetMacro(SecondTimeStepIndex, int);
73 
75 
80  vtkSetStringMacro(OutputArrayNameSuffix);
81  vtkGetStringMacro(OutputArrayNameSuffix);
83 
84 protected:
87 
88  int FillInputPortInformation(int, vtkInformation*) override;
89  int FillOutputPortInformation(int, vtkInformation*) override;
90 
95  vtkInformationVector* outputVector) override;
96 
98  virtual vtkDataObject* Process(vtkDataObject*, vtkDataObject*);
99  virtual vtkDataObject* ProcessDataObject(vtkDataObject*, vtkDataObject*);
100  virtual vtkDataArray* ProcessDataArray(vtkDataArray*, vtkDataArray*);
101 
102  int Operator;
107 
108 private:
110  void operator=(const vtkTemporalArrayOperatorFilter&) = delete;
111 };
112 
113 #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:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
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:65
perform simple mathematical operation on a data array at different time