------------------------------------------------------------------------------
| 1039 | |
| 1040 | //------------------------------------------------------------------------------ |
| 1041 | double* 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 | //------------------------------------------------------------------------------ |
| 1060 | double* vtkFunctionParser::GetVectorVariableValue(int i) |