75 #ifndef vtkArrayCalculator_h
76 #define vtkArrayCalculator_h
79 #include "vtkFiltersCoreModule.h"
98 vtkSetStringMacro(Function);
99 vtkGetStringMacro(Function);
113 void AddScalarArrayName(
const char* arrayName,
int component = 0);
114 void AddVectorArrayName(
115 const char* arrayName,
int component0 = 0,
int component1 = 1,
int component2 = 2);
125 void AddScalarVariable(
const char* variableName,
const char* arrayName,
int component = 0);
126 void AddVectorVariable(
const char* variableName,
const char* arrayName,
int component0 = 0,
127 int component1 = 1,
int component2 = 2);
137 void AddCoordinateScalarVariable(
const char* variableName,
int component = 0);
138 void AddCoordinateVectorVariable(
139 const char* variableName,
int component0 = 0,
int component1 = 1,
int component2 = 2);
149 vtkSetStringMacro(ResultArrayName);
150 vtkGetStringMacro(ResultArrayName);
158 vtkGetMacro(ResultArrayType,
int);
159 vtkSetMacro(ResultArrayType,
int);
180 vtkGetMacro(ResultNormals,
bool);
181 vtkSetMacro(ResultNormals,
bool);
182 vtkBooleanMacro(ResultNormals,
bool);
191 vtkGetMacro(ResultTCoords,
bool);
192 vtkSetMacro(ResultTCoords,
bool);
193 vtkBooleanMacro(ResultTCoords,
bool);
199 const char* GetAttributeTypeAsString();
201 static const int DEFAULT_ATTRIBUTE_TYPE = -1;
209 vtkSetMacro(AttributeType,
int);
210 vtkGetMacro(AttributeType,
int);
222 void RemoveAllVariables();
227 virtual void RemoveScalarVariables();
232 virtual void RemoveVectorVariables();
237 virtual void RemoveCoordinateScalarVariables();
242 virtual void RemoveCoordinateVectorVariables();
257 int GetSelectedScalarComponent(
int i);
260 return this->SelectedVectorComponents;
276 vtkBooleanMacro(ReplaceInvalidValues,
vtkTypeBool);
277 vtkSetMacro(ReplacementValue,
double);
278 vtkGetMacro(ReplacementValue,
double);
287 vtkSetMacro(IgnoreMissingArrays,
bool);
288 vtkGetMacro(IgnoreMissingArrays,
bool);
289 vtkBooleanMacro(IgnoreMissingArrays,
bool);
299 NumberOfFunctionParserTypes
307 vtkSetEnumMacro(FunctionParserType, FunctionParserTypes);
310 this->FunctionParserType = FunctionParserTypes::FunctionParser;
315 this->FunctionParserType = FunctionParserTypes::ExprTkFunctionParser;
318 vtkGetEnumMacro(FunctionParserType, FunctionParserTypes);
347 static std::string CheckValidVariableName(
const char* variableName);
380 template <
typename TFunctionParser>
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