------------------------------------------------------------------------------
| 391 | |
| 392 | //------------------------------------------------------------------------------ |
| 393 | vtkInformation* vtkAlgorithm::GetInputArrayInformation(int idx) |
| 394 | { |
| 395 | // add this info into the algorithms info object |
| 396 | vtkInformationVector* inArrayVec = this->Information->Get(INPUT_ARRAYS_TO_PROCESS()); |
| 397 | if (!inArrayVec) |
| 398 | { |
| 399 | inArrayVec = vtkInformationVector::New(); |
| 400 | this->Information->Set(INPUT_ARRAYS_TO_PROCESS(), inArrayVec); |
| 401 | inArrayVec->Delete(); |
| 402 | } |
| 403 | vtkInformation* inArrayInfo = inArrayVec->GetInformationObject(idx); |
| 404 | if (!inArrayInfo) |
| 405 | { |
| 406 | inArrayInfo = vtkInformation::New(); |
| 407 | inArrayVec->SetInformationObject(idx, inArrayInfo); |
| 408 | inArrayInfo->Delete(); |
| 409 | } |
| 410 | return inArrayInfo; |
| 411 | } |
| 412 | |
| 413 | //------------------------------------------------------------------------------ |
| 414 | void vtkAlgorithm::SetInputArrayToProcess(int idx, vtkInformation* inInfo) |
no test coverage detected