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);
int NumberOfCoordinateVectorArrays
#define VTK_ATTRIBUTE_MODE_USE_VERTEX_DATA
int ** SelectedCoordinateVectorComponents
int * SelectedScalarComponents
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.
int NumberOfCoordinateScalarArrays
vtkFunctionParser * FunctionParser
#define VTK_ATTRIBUTE_MODE_USE_EDGE_DATA
int * GetSelectedScalarComponents()
Methods to get information about the current variables.
char ** CoordinateVectorVariableNames
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.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
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 ** VectorVariableNames
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.
int * SelectedCoordinateScalarComponents
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()
char ** CoordinateScalarVariableNames
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.
char ** ScalarVariableNames
int ** SelectedVectorComponents