VTK
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 
32 class VTKFILTERSHYBRID_EXPORT vtkTemporalArrayOperatorFilter :
34 {
35 public:
38  void PrintSelf(ostream &OS, vtkIndent indent) override;
39 
41  {
42  ADD = 0,
43  SUB = 1,
44  MUL = 2,
45  DIV = 3
46  };
47 
49 
52  vtkSetMacro(Operator, int);
53  vtkGetMacro(Operator, int);
55 
57 
60  vtkSetMacro(FirstTimeStepIndex, int);
61  vtkGetMacro(FirstTimeStepIndex, int);
63 
65 
68  vtkSetMacro(SecondTimeStepIndex, int);
69  vtkGetMacro(SecondTimeStepIndex, int);
71 
73 
78  vtkSetStringMacro(OutputArrayNameSuffix);
79  vtkGetStringMacro(OutputArrayNameSuffix);
81 
82 protected:
85 
86  int FillInputPortInformation(int, vtkInformation*) override;
87  int FillOutputPortInformation(int, vtkInformation*) override;
88 
90  vtkInformationVector*) override;
92  vtkInformationVector*) override;
94  vtkInformationVector*) override;
96  vtkInformationVector*) override;
97 
99  virtual vtkDataObject* Process(vtkDataObject*, vtkDataObject*);
100  virtual vtkDataObject* ProcessDataObject(vtkDataObject*, vtkDataObject*);
101  virtual vtkDataArray* ProcessDataArray(vtkDataArray*, vtkDataArray*);
102 
103  int Operator;
108 
109 private:
111  void operator=(const vtkTemporalArrayOperatorFilter &) = delete;
112 };
113 
114 #endif
vtkTemporalArrayOperatorFilter
perform simple mathematical operation on a data array at different time
Definition: vtkTemporalArrayOperatorFilter.h:32
vtkTemporalArrayOperatorFilter::NumberTimeSteps
int NumberTimeSteps
Definition: vtkTemporalArrayOperatorFilter.h:106
vtkMultiTimeStepAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkAlgorithm::GetInputArrayAssociation
int GetInputArrayAssociation(int idx, vtkInformationVector **inputVector)
Get the assocition of the actual data array for the input array specified by idx, this is only reason...
vtkMultiTimeStepAlgorithm.h
vtkTemporalArrayOperatorFilter::OperatorType
OperatorType
Definition: vtkTemporalArrayOperatorFilter.h:40
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkMultiTimeStepAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkMultiTimeStepAlgorithm.h:86
vtkTemporalArrayOperatorFilter::SecondTimeStepIndex
int SecondTimeStepIndex
Definition: vtkTemporalArrayOperatorFilter.h:105
vtkTemporalArrayOperatorFilter::FirstTimeStepIndex
int FirstTimeStepIndex
Definition: vtkTemporalArrayOperatorFilter.h:104
vtkMultiTimeStepAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkMultiTimeStepAlgorithm.h:95
vtkMultiTimeStepAlgorithm::New
static vtkMultiTimeStepAlgorithm * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTemporalArrayOperatorFilter::OutputArrayNameSuffix
char * OutputArrayNameSuffix
Definition: vtkTemporalArrayOperatorFilter.h:107
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkTemporalArrayOperatorFilter::Operator
int Operator
Definition: vtkTemporalArrayOperatorFilter.h:103
vtkMultiTimeStepAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkMultiTimeStepAlgorithm.h:76
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
vtkMultiTimeStepAlgorithm::RequestDataObject
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkMultiTimeStepAlgorithm.h:65
vtkMultiTimeStepAlgorithm
Superclass for algorithms that would like to make multiple time requests.
Definition: vtkMultiTimeStepAlgorithm.h:39