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(
104 const char* arrayName,
int component0 = 0,
int component1 = 1,
int component2 = 2);
112 void AddScalarVariable(
const char* variableName,
const char* arrayName,
int component = 0);
113 void AddVectorVariable(
const char* variableName,
const char* arrayName,
int component0 = 0,
114 int component1 = 1,
int component2 = 2);
122 void AddCoordinateScalarVariable(
const char* variableName,
int component = 0);
123 void AddCoordinateVectorVariable(
124 const char* variableName,
int component0 = 0,
int component1 = 1,
int component2 = 2);
134 void SetResultArrayName(
const char*
name);
135 vtkGetStringMacro(ResultArrayName);
143 vtkGetMacro(ResultArrayType,
int);
144 vtkSetMacro(ResultArrayType,
int);
165 vtkGetMacro(ResultNormals,
bool);
166 vtkSetMacro(ResultNormals,
bool);
167 vtkBooleanMacro(ResultNormals,
bool);
176 vtkGetMacro(ResultTCoords,
bool);
177 vtkSetMacro(ResultTCoords,
bool);
178 vtkBooleanMacro(ResultTCoords,
bool);
192 #ifndef VTK_LEGACY_REMOVE 193 VTK_LEGACY(
void SetAttributeMode(
int newMode);)
194 VTK_LEGACY(
int GetAttributeMode();)
206 VTK_LEGACY(
const char* GetAttributeModeAsString());
213 const char* GetAttributeTypeAsString();
215 static const int DEFAULT_ATTRIBUTE_TYPE = -1;
223 vtkSetMacro(AttributeType,
int);
224 vtkGetMacro(AttributeType,
int);
236 void RemoveAllVariables();
241 virtual void RemoveScalarVariables();
246 virtual void RemoveVectorVariables();
251 virtual void RemoveCoordinateScalarVariables();
256 virtual void RemoveCoordinateVectorVariables();
263 char* GetScalarArrayName(
int i);
265 char* GetVectorArrayName(
int i);
267 char* GetScalarVariableName(
int i);
269 char* GetVectorVariableName(
int i);
271 int GetSelectedScalarComponent(
int i);
273 int* GetSelectedVectorComponents(
int i);
274 vtkGetMacro(NumberOfScalarArrays,
int);
275 vtkGetMacro(NumberOfVectorArrays,
int);
287 vtkBooleanMacro(ReplaceInvalidValues,
vtkTypeBool);
288 vtkSetMacro(ReplacementValue,
double);
289 vtkGetMacro(ReplacementValue,
double);
299 vtkSetMacro(IgnoreMissingArrays,
bool);
300 vtkGetMacro(IgnoreMissingArrays,
bool);
301 vtkBooleanMacro(IgnoreMissingArrays,
bool);
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
general representation of visualization data
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