61 #ifndef vtkArrayCalculator_h 62 #define vtkArrayCalculator_h 65 #include "vtkFiltersCoreModule.h" 71 #ifndef VTK_LEGACY_REMOVE 72 #define VTK_ATTRIBUTE_MODE_DEFAULT 0 73 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1 74 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2 75 #define VTK_ATTRIBUTE_MODE_USE_VERTEX_DATA 3 76 #define VTK_ATTRIBUTE_MODE_USE_EDGE_DATA 4 91 virtual void SetFunction(
const char*
function);
92 vtkGetStringMacro(Function);
102 void AddScalarArrayName(
const char* arrayName,
int component = 0);
103 void AddVectorArrayName(
const char* arrayName,
int component0 = 0,
104 int component1 = 1,
int component2 = 2);
112 void AddScalarVariable(
const char* variableName,
const char* arrayName,
114 void AddVectorVariable(
const char* variableName,
const char* arrayName,
115 int component0 = 0,
int component1 = 1,
124 void AddCoordinateScalarVariable(
const char* variableName,
126 void AddCoordinateVectorVariable(
const char* variableName,
127 int component0 = 0,
int component1 = 1,
138 void SetResultArrayName(
const char*
name);
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);
196 #ifndef VTK_LEGACY_REMOVE 197 VTK_LEGACY(
void SetAttributeMode(
int newMode);)
198 VTK_LEGACY(
int GetAttributeMode();)
200 {this->SetAttributeType(DEFAULT_ATTRIBUTE_TYPE);};
209 VTK_LEGACY(
const char *GetAttributeModeAsString());
216 const char *GetAttributeTypeAsString();
218 static const int DEFAULT_ATTRIBUTE_TYPE = -1;
226 vtkSetMacro(AttributeType,
int);
227 vtkGetMacro(AttributeType,
int);
229 {this->SetAttributeType(DEFAULT_ATTRIBUTE_TYPE);}
245 void RemoveAllVariables();
250 virtual void RemoveScalarVariables();
255 virtual void RemoveVectorVariables();
260 virtual void RemoveCoordinateScalarVariables();
265 virtual void RemoveCoordinateVectorVariables();
272 char* GetScalarArrayName(
int i);
274 char* GetVectorArrayName(
int i);
276 char* GetScalarVariableName(
int i);
278 char* GetVectorVariableName(
int i);
280 int GetSelectedScalarComponent(
int i);
282 int* GetSelectedVectorComponents(
int i);
283 vtkGetMacro(NumberOfScalarArrays,
int);
284 vtkGetMacro(NumberOfVectorArrays,
int);
297 vtkSetMacro(ReplacementValue,
double);
298 vtkGetMacro(ReplacementValue,
double);
int NumberOfCoordinateVectorArrays
vtkTypeBool ReplaceInvalidValues
int ** SelectedCoordinateVectorComponents
int * SelectedScalarComponents
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 SetAttributeTypeToDefault()
Control which AttributeType the filter operates on (point data or cell data for vtkDataSets).
void SetAttributeModeToUseEdgeData()
Control whether the filter operates on point data or cell data.
int NumberOfCoordinateScalarArrays
void SetAttributeTypeToPointData()
Control which AttributeType the filter operates on (point data or cell data for vtkDataSets).
void SetAttributeTypeToCellData()
Control which AttributeType the filter operates on (point data or cell data for vtkDataSets).
vtkFunctionParser * FunctionParser
int * GetSelectedScalarComponents()
Methods to get information about the current variables.
char ** CoordinateVectorVariableNames
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.
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.
void SetAttributeTypeToEdgeData()
Control which AttributeType the filter operates on (point data or cell data for vtkDataSets).
void SetAttributeModeToUseCellData()
Control whether the filter operates on point data or cell data.
int * SelectedCoordinateScalarComponents
int ** GetSelectedVectorComponents()
Methods to get information about the current variables.
vtkTypeBool CoordinateResults
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
void SetAttributeTypeToRowData()
Control which AttributeType the filter operates on (point data or cell data for vtkDataSets).
int ** SelectedVectorComponents