| 3225 | } |
| 3226 | |
| 3227 | void vtkMultiBlockPLOT3DReader::SetScalarFunctionNumber(int num) |
| 3228 | { |
| 3229 | if (this->ScalarFunctionNumber == num) |
| 3230 | { |
| 3231 | return; |
| 3232 | } |
| 3233 | if (num >= 0) |
| 3234 | { |
| 3235 | // If this function is not in the list, add it. |
| 3236 | int found = 0; |
| 3237 | for (int i = 0; i < this->FunctionList->GetNumberOfTuples(); i++) |
| 3238 | { |
| 3239 | if (this->FunctionList->GetValue(i) == num) |
| 3240 | { |
| 3241 | found = 1; |
| 3242 | } |
| 3243 | } |
| 3244 | if (!found) |
| 3245 | { |
| 3246 | this->AddFunction(num); |
| 3247 | } |
| 3248 | } |
| 3249 | this->ScalarFunctionNumber = num; |
| 3250 | } |
| 3251 | |
| 3252 | void vtkMultiBlockPLOT3DReader::SetVectorFunctionNumber(int num) |
| 3253 | { |