67 #ifndef vtkArrayCalculator_h 68 #define vtkArrayCalculator_h 71 #include "vtkFiltersCoreModule.h" 77 #ifndef VTK_LEGACY_REMOVE 78 #define VTK_ATTRIBUTE_MODE_DEFAULT 0 79 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1 80 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2 81 #define VTK_ATTRIBUTE_MODE_USE_VERTEX_DATA 3 82 #define VTK_ATTRIBUTE_MODE_USE_EDGE_DATA 4 97 virtual void SetFunction(
const char*
function);
98 vtkGetStringMacro(Function);
108 void AddScalarArrayName(
const char* arrayName,
int component = 0);
109 void AddVectorArrayName(
const char* arrayName,
int component0 = 0,
110 int component1 = 1,
int component2 = 2);
118 void AddScalarVariable(
const char* variableName,
const char* arrayName,
120 void AddVectorVariable(
const char* variableName,
const char* arrayName,
121 int component0 = 0,
int component1 = 1,
130 void AddCoordinateScalarVariable(
const char* variableName,
132 void AddCoordinateVectorVariable(
const char* variableName,
133 int component0 = 0,
int component1 = 1,
144 void SetResultArrayName(
const char*
name);
145 vtkGetStringMacro(ResultArrayName);
153 vtkGetMacro(ResultArrayType,
int);
154 vtkSetMacro(ResultArrayType,
int);
175 vtkGetMacro(ResultNormals,
bool);
176 vtkSetMacro(ResultNormals,
bool);
177 vtkBooleanMacro(ResultNormals,
bool);
186 vtkGetMacro(ResultTCoords,
bool);
187 vtkSetMacro(ResultTCoords,
bool);
188 vtkBooleanMacro(ResultTCoords,
bool);
202 #ifndef VTK_LEGACY_REMOVE 203 VTK_LEGACY(
void SetAttributeMode(
int newMode);)
204 VTK_LEGACY(
int GetAttributeMode();)
206 {this->SetAttributeType(DEFAULT_ATTRIBUTE_TYPE);};
215 VTK_LEGACY(
const char *GetAttributeModeAsString());
222 const char *GetAttributeTypeAsString();
224 static const int DEFAULT_ATTRIBUTE_TYPE = -1;
232 vtkSetMacro(AttributeType,
int);
233 vtkGetMacro(AttributeType,
int);
235 {this->SetAttributeType(DEFAULT_ATTRIBUTE_TYPE);}
251 void RemoveAllVariables();
256 virtual void RemoveScalarVariables();
261 virtual void RemoveVectorVariables();
266 virtual void RemoveCoordinateScalarVariables();
271 virtual void RemoveCoordinateVectorVariables();
278 char* GetScalarArrayName(
int i);
280 char* GetVectorArrayName(
int i);
282 char* GetScalarVariableName(
int i);
284 char* GetVectorVariableName(
int i);
286 int GetSelectedScalarComponent(
int i);
288 int* GetSelectedVectorComponents(
int i);
289 vtkGetMacro(NumberOfScalarArrays,
int);
290 vtkGetMacro(NumberOfVectorArrays,
int);
303 vtkSetMacro(ReplacementValue,
double);
304 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