67 #ifndef vtkArrayCalculator_h
68 #define vtkArrayCalculator_h
70 #include "vtkFiltersCoreModule.h"
75 #define VTK_ATTRIBUTE_MODE_DEFAULT 0
76 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
77 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
78 #define VTK_ATTRIBUTE_MODE_USE_VERTEX_DATA 3
79 #define VTK_ATTRIBUTE_MODE_USE_EDGE_DATA 4
93 virtual void SetFunction(
const char*
function);
104 void AddScalarArrayName(
const char* arrayName,
int component = 0);
105 void AddVectorArrayName(
const char* arrayName,
int component0 = 0,
106 int component1 = 1,
int component2 = 2);
114 void AddScalarVariable(
const char* variableName,
const char* arrayName,
116 void AddVectorVariable(
const char* variableName,
const char* arrayName,
117 int component0 = 0,
int component1 = 1,
126 void AddCoordinateScalarVariable(
const char* variableName,
128 void AddCoordinateVectorVariable(
const char* variableName,
129 int component0 = 0,
int component1 = 1,
140 void SetResultArrayName(
const char*
name);
149 vtkGetMacro(ResultArrayType,
int);
160 vtkGetMacro(CoordinateResults,
int);
171 vtkGetMacro(ResultNormals,
bool);
182 vtkGetMacro(ResultTCoords,
bool);
197 vtkGetMacro(AttributeMode,
int);
208 const char *GetAttributeModeAsString();
214 void RemoveAllVariables();
219 virtual void RemoveScalarVariables();
224 virtual void RemoveVectorVariables();
229 virtual void RemoveCoordinateScalarVariables();
234 virtual void RemoveCoordinateVectorVariables();
241 char* GetScalarArrayName(
int i);
243 char* GetVectorArrayName(
int i);
245 char* GetScalarVariableName(
int i);
247 char* GetVectorVariableName(
int i);
249 int GetSelectedScalarComponent(
int i);
251 int* GetSelectedVectorComponents(
int i);
252 vtkGetMacro(NumberOfScalarArrays,
int);
253 vtkGetMacro(NumberOfVectorArrays,
int);
264 vtkGetMacro(ReplaceInvalidValues,
int);
267 vtkGetMacro(ReplacementValue,
double);
277 char * ResultArrayName;
278 char ** ScalarArrayNames;
279 char ** VectorArrayNames;
280 char ** ScalarVariableNames;
281 char ** VectorVariableNames;
282 int NumberOfScalarArrays;
283 int NumberOfVectorArrays;
285 int * SelectedScalarComponents;
286 int ** SelectedVectorComponents;
289 int ReplaceInvalidValues;
290 double ReplacementValue;
292 int CoordinateResults;
295 char ** CoordinateScalarVariableNames;
296 char ** CoordinateVectorVariableNames;
297 int * SelectedCoordinateScalarComponents;
298 int ** SelectedCoordinateVectorComponents;
299 int NumberOfCoordinateScalarArrays;
300 int NumberOfCoordinateVectorArrays;
#define VTK_ATTRIBUTE_MODE_USE_VERTEX_DATA
perform mathematical operations on data in field data arrays
#define VTK_ATTRIBUTE_MODE_DEFAULT
void SetAttributeModeToUseEdgeData()
Control whether the filter operates on point data or cell data.
#define VTK_ATTRIBUTE_MODE_USE_EDGE_DATA
int * GetSelectedScalarComponents()
Methods to get information about the current variables.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetAttributeModeToUseVertexData()
Control whether the filter operates on point data or cell data.
Parse and evaluate a mathematical expression.
a simple class to control print indentation
char ** GetVectorVariableNames()
Methods to get information about the current variables.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
#define VTK_ATTRIBUTE_MODE_USE_CELL_DATA
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
char ** GetVectorArrayNames()
Methods to get information about the current variables.
char ** GetScalarVariableNames()
Methods to get information about the current variables.
char ** GetScalarArrayNames()
Methods to get information about the current variables.
#define VTK_ATTRIBUTE_MODE_USE_POINT_DATA
void SetAttributeModeToUseCellData()
Control whether the filter operates on point data or cell data.
Superclass for algorithms that produce output of the same type as input.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
int ** GetSelectedVectorComponents()
Methods to get information about the current variables.
static vtkDataSetAlgorithm * New()
void SetAttributeModeToUsePointData()
Control whether the filter operates on point data or cell data.
void SetAttributeModeToDefault()
Control whether the filter operates on point data or cell data.