| 3250 | } |
| 3251 | |
| 3252 | void vtkMultiBlockPLOT3DReader::SetVectorFunctionNumber(int num) |
| 3253 | { |
| 3254 | if (this->VectorFunctionNumber == num) |
| 3255 | { |
| 3256 | return; |
| 3257 | } |
| 3258 | if (num >= 0) |
| 3259 | { |
| 3260 | // If this function is not in the list, add it. |
| 3261 | int found = 0; |
| 3262 | for (int i = 0; i < this->FunctionList->GetNumberOfTuples(); i++) |
| 3263 | { |
| 3264 | if (this->FunctionList->GetValue(i) == num) |
| 3265 | { |
| 3266 | found = 1; |
| 3267 | } |
| 3268 | } |
| 3269 | if (!found) |
| 3270 | { |
| 3271 | this->AddFunction(num); |
| 3272 | } |
| 3273 | } |
| 3274 | this->VectorFunctionNumber = num; |
| 3275 | } |
| 3276 | |
| 3277 | void vtkMultiBlockPLOT3DReader::RemoveFunction(int fnum) |
| 3278 | { |