ParaView
vtkPVArrayCalculator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPVArrayCalculator.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 =========================================================================*/
31 #ifndef vtkPVArrayCalculator_h
32 #define vtkPVArrayCalculator_h
33 
34 #include "vtkArrayCalculator.h"
35 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
36 
37 class vtkDataObject;
38 class vtkDataSetAttributes;
39 
40 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkPVArrayCalculator : public vtkArrayCalculator
41 {
42 public:
43  vtkTypeMacro(vtkPVArrayCalculator, vtkArrayCalculator);
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
46  static vtkPVArrayCalculator* New();
47 
48 protected:
51 
52  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
53 
55 
64  void UpdateArrayAndVariableNames(vtkDataObject* theInputObj, vtkDataSetAttributes* inDataAttrs);
65 
66 private:
67  vtkPVArrayCalculator(const vtkPVArrayCalculator&) VTK_DELETE_FUNCTION;
68  void operator=(const vtkPVArrayCalculator&) VTK_DELETE_FUNCTION;
69 };
71 
72 #endif
perform mathematical operations on data in field data arrays