vtkPVArrayCalculator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-License-Identifier: BSD-3-Clause
20 #ifndef vtkPVArrayCalculator_h
21 #define vtkPVArrayCalculator_h
22 
23 #include "vtkArrayCalculator.h"
24 #include "vtkPVVTKExtensionsFiltersGeneralModule.h" //needed for exports
25 
26 class vtkDataObject;
28 
30 {
31 public:
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
35  static vtkPVArrayCalculator* New();
36 
38 
44  {
45  this->SetFunctionParserType(static_cast<FunctionParserTypes>(type));
46  }
48 
49 protected:
51  ~vtkPVArrayCalculator() override;
52 
54 
58  int GetAttributeTypeFromInput(vtkDataObject* input);
59 
63  void ResetArrayAndVariableNames();
64 
68  void AddCoordinateVariableNames();
69 
78  void AddArrayAndVariableNames(vtkDataObject* theInputObj, vtkDataSetAttributes* inDataAttrs);
79 
80 private:
82  void operator=(const vtkPVArrayCalculator&) = delete;
83 };
85 
86 #endif
void SetFunctionParserTypeFromInt(int type)
Convenience function to set parser type via int equivalent to FunctionParserTypes enum...
static vtkArrayCalculator * New()
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKPVVTKEXTENSIONSFILTERSGENERAL_EXPORT
perform mathematical operations on data in field data arrays
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void operator=(const vtkObjectBase &)