61 #ifndef vtkArrayCalculator_h 62 #define vtkArrayCalculator_h 64 #include "vtkFiltersCoreModule.h" 69 #define VTK_ATTRIBUTE_MODE_DEFAULT 0 70 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1 71 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2 72 #define VTK_ATTRIBUTE_MODE_USE_VERTEX_DATA 3 73 #define VTK_ATTRIBUTE_MODE_USE_EDGE_DATA 4 87 virtual void SetFunction(
const char*
function);
98 void AddScalarArrayName(
const char* arrayName,
int component = 0);
99 void AddVectorArrayName(
const char* arrayName,
int component0 = 0,
100 int component1 = 1,
int component2 = 2);
108 void AddScalarVariable(
const char* variableName,
const char* arrayName,
110 void AddVectorVariable(
const char* variableName,
const char* arrayName,
111 int component0 = 0,
int component1 = 1,
120 void AddCoordinateScalarVariable(
const char* variableName,
122 void AddCoordinateVectorVariable(
const char* variableName,
123 int component0 = 0,
int component1 = 1,
134 void SetResultArrayName(
const char*
name);
143 vtkGetMacro(ResultArrayType,
int);
154 vtkGetMacro(CoordinateResults,
int);
165 vtkGetMacro(ResultNormals,
bool);
176 vtkGetMacro(ResultTCoords,
bool);
191 vtkGetMacro(AttributeMode,
int);
202 const char *GetAttributeModeAsString();
208 void RemoveAllVariables();
213 virtual void RemoveScalarVariables();
218 virtual void RemoveVectorVariables();
223 virtual void RemoveCoordinateScalarVariables();
228 virtual void RemoveCoordinateVectorVariables();
235 char* GetScalarArrayName(
int i);
237 char* GetVectorArrayName(
int i);
239 char* GetScalarVariableName(
int i);
241 char* GetVectorVariableName(
int i);
243 int GetSelectedScalarComponent(
int i);
245 int* GetSelectedVectorComponents(
int i);
246 vtkGetMacro(NumberOfScalarArrays,
int);
247 vtkGetMacro(NumberOfVectorArrays,
int);
258 vtkGetMacro(ReplaceInvalidValues,
int);
261 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