------------------------------------------------------------------------------
| 597 | |
| 598 | //------------------------------------------------------------------------------ |
| 599 | int vtkAlgorithm::GetInputArrayComponent(int idx) |
| 600 | { |
| 601 | vtkInformationVector* inArrayVec = this->Information->Get(INPUT_ARRAYS_TO_PROCESS()); |
| 602 | if (!inArrayVec) |
| 603 | { |
| 604 | vtkErrorMacro("Attempt to get an input array for an index that has not been specified"); |
| 605 | return vtkArrayComponents::AllComponents; |
| 606 | } |
| 607 | vtkInformation* inArrayInfo = inArrayVec->GetInformationObject(idx); |
| 608 | if (!inArrayInfo) |
| 609 | { |
| 610 | vtkErrorMacro("Attempt to get an input array for an index that has not been specified"); |
| 611 | return vtkArrayComponents::AllComponents; |
| 612 | } |
| 613 | |
| 614 | if (inArrayInfo->Has(vtkDataObject::FIELD_ATTRIBUTE_COMPONENT())) |
| 615 | { |
| 616 | int component = inArrayInfo->Get(vtkDataObject::FIELD_ATTRIBUTE_COMPONENT()); |
| 617 | return component; |
| 618 | } |
| 619 | return vtkArrayComponents::AllComponents; |
| 620 | } |
| 621 | |
| 622 | //------------------------------------------------------------------------------ |
| 623 | vtkDataArray* vtkAlgorithm::GetInputArrayToProcess(int idx, vtkInformationVector** inputVector) |
no test coverage detected