63 #ifndef vtkArrayCalculator_h
64 #define vtkArrayCalculator_h
67 #include "vtkFiltersCoreModule.h"
72 VTK_ABI_NAMESPACE_BEGIN
87 vtkSetStringMacro(Function);
88 vtkGetStringMacro(Function);
102 void AddScalarArrayName(
const char* arrayName,
int component = 0);
103 void AddVectorArrayName(
104 const char* arrayName,
int component0 = 0,
int component1 = 1,
int component2 = 2);
114 void AddScalarVariable(
const char* variableName,
const char* arrayName,
int component = 0);
115 void AddVectorVariable(
const char* variableName,
const char* arrayName,
int component0 = 0,
116 int component1 = 1,
int component2 = 2);
126 void AddCoordinateScalarVariable(
const char* variableName,
int component = 0);
127 void AddCoordinateVectorVariable(
128 const char* variableName,
int component0 = 0,
int component1 = 1,
int component2 = 2);
138 vtkSetStringMacro(ResultArrayName);
139 vtkGetStringMacro(ResultArrayName);
147 vtkGetMacro(ResultArrayType,
int);
148 vtkSetMacro(ResultArrayType,
int);
169 vtkGetMacro(ResultNormals,
bool);
170 vtkSetMacro(ResultNormals,
bool);
171 vtkBooleanMacro(ResultNormals,
bool);
180 vtkGetMacro(ResultTCoords,
bool);
181 vtkSetMacro(ResultTCoords,
bool);
182 vtkBooleanMacro(ResultTCoords,
bool);
188 const char* GetAttributeTypeAsString();
190 static const int DEFAULT_ATTRIBUTE_TYPE = -1;
198 vtkSetMacro(AttributeType,
int);
199 vtkGetMacro(AttributeType,
int);
211 void RemoveAllVariables();
216 virtual void RemoveScalarVariables();
221 virtual void RemoveVectorVariables();
226 virtual void RemoveCoordinateScalarVariables();
231 virtual void RemoveCoordinateVectorVariables();
246 int GetSelectedScalarComponent(
int i);
249 return this->SelectedVectorComponents;
265 vtkBooleanMacro(ReplaceInvalidValues,
vtkTypeBool);
266 vtkSetMacro(ReplacementValue,
double);
267 vtkGetMacro(ReplacementValue,
double);
276 vtkSetMacro(IgnoreMissingArrays,
bool);
277 vtkGetMacro(IgnoreMissingArrays,
bool);
278 vtkBooleanMacro(IgnoreMissingArrays,
bool);
288 NumberOfFunctionParserTypes
296 vtkSetEnumMacro(FunctionParserType, FunctionParserTypes);
299 this->FunctionParserType = FunctionParserTypes::FunctionParser;
304 this->FunctionParserType = FunctionParserTypes::ExprTkFunctionParser;
307 vtkGetEnumMacro(FunctionParserType, FunctionParserTypes);
336 static std::string CheckValidVariableName(
const char* variableName);
369 template <
typename TFunctionParser>
373 VTK_ABI_NAMESPACE_END
vtkTypeBool ReplaceInvalidValues
const std::vector< vtkTuple< int, 3 > > & GetSelectedVectorComponents()
Methods to get information about the current variables.
std::vector< std::string > ScalarArrayNames
const std::vector< std::string > & GetScalarVariableNames()
Methods to get information about the current variables.
perform mathematical operations on data in field data arrays
abstract class to specify dataset behavior
void SetAttributeTypeToVertexData()
Control which AttributeType the filter operates on (point data or cell data for vtkDataSets).
void SetFunctionParserTypeToFunctionParser()
Set/Get the FunctionParser type that will be used.
void SetAttributeTypeToDefault()
Control which AttributeType the filter operates on (point data or cell data for vtkDataSets).
void SetAttributeTypeToPointData()
Control which AttributeType the filter operates on (point data or cell data for vtkDataSets).
const std::vector< int > & GetSelectedScalarComponents()
Methods to get information about the current variables.
void SetAttributeTypeToCellData()
Control which AttributeType the filter operates on (point data or cell data for vtkDataSets).
int GetNumberOfVectorArrays()
Methods to get information about the current variables.
std::vector< std::string > CoordinateVectorVariableNames
const std::vector< std::string > & GetVectorVariableNames()
Methods to get information about the current variables.
void SetFunctionParserTypeToExprTkFunctionParser()
Set/Get the FunctionParser type that will be used.
std::vector< std::string > VectorVariableNames
a simple class to control print indentation
int GetNumberOfScalarArrays()
Methods to get information about the current variables.
virtual void Modified()
Update the modification time for this object.
std::vector< std::string > CoordinateScalarVariableNames
std::vector< std::string > ScalarVariableNames
FunctionParserTypes FunctionParserType
std::vector< vtkTuple< int, 3 > > SelectedVectorComponents
const std::vector< std::string > & GetVectorArrayNames()
Methods to get information about the current variables.
std::vector< vtkTuple< int, 3 > > SelectedCoordinateVectorComponents
FunctionParserTypes
Enum that includes the types of parsers that can be used.
std::vector< std::string > VectorArrayNames
void SetAttributeTypeToEdgeData()
Control which AttributeType the filter operates on (point data or cell data for vtkDataSets).
const std::vector< std::string > & GetScalarArrayNames()
Methods to get information about the current variables.
vtkTypeBool CoordinateResults
general representation of visualization data
void SetAttributeTypeToRowData()
Control which AttributeType the filter operates on (point data or cell data for vtkDataSets).
std::vector< int > SelectedScalarComponents
std::vector< int > SelectedCoordinateScalarComponents