MCPcopy Create free account
hub / github.com/Kitware/VTK / GetVectorVariableValue

Method GetVectorVariableValue

Common/Misc/vtkFunctionParser.cxx:1041–1057  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1039
1040//------------------------------------------------------------------------------
1041double* vtkFunctionParser::GetVectorVariableValue(const char* inVariableName)
1042{
1043 char* variableName = this->RemoveSpacesFrom(inVariableName);
1044
1045 for (int i = 0, max = this->GetNumberOfVectorVariables(); i < max; i++)
1046 {
1047 if (this->VectorVariableNames[i] == variableName)
1048 {
1049 delete[] variableName;
1050 return this->VectorVariableValues[i].GetData();
1051 }
1052 }
1053 vtkErrorMacro(
1054 "GetVectorVariableValue: vector variable name " << variableName << " does not exist");
1055 delete[] variableName;
1056 return vtkParserVectorErrorResult;
1057}
1058
1059//------------------------------------------------------------------------------
1060double* vtkFunctionParser::GetVectorVariableValue(int i)

Callers 8

PrintSelfMethod · 0.95
GetVectorVariableValueFunction · 0.45
GetVectorVariableValueFunction · 0.45
TestMiscFunctionsFunction · 0.45
TestErrorsFunction · 0.45
TestMiscFunctionsFunction · 0.45
TestErrorsFunction · 0.45

Calls 2

RemoveSpacesFromMethod · 0.95
GetDataMethod · 0.45

Tested by 4

TestMiscFunctionsFunction · 0.36
TestErrorsFunction · 0.36
TestMiscFunctionsFunction · 0.36
TestErrorsFunction · 0.36