------------------------------------------------------------------------------
| 713 | |
| 714 | //------------------------------------------------------------------------------ |
| 715 | int vtkExecutive::CallAlgorithm(vtkInformation* request, int direction, |
| 716 | vtkInformationVector** inInfo, vtkInformationVector* outInfo) |
| 717 | { |
| 718 | // Copy default information in the direction of information flow. |
| 719 | this->CopyDefaultInformation(request, direction, inInfo, outInfo); |
| 720 | |
| 721 | // Invoke the request on the algorithm. |
| 722 | this->InAlgorithm = 1; |
| 723 | int result = this->Algorithm->ProcessRequest(request, inInfo, outInfo); |
| 724 | this->InAlgorithm = 0; |
| 725 | |
| 726 | // If the algorithm failed report it now. |
| 727 | if (!result) |
| 728 | { |
| 729 | vtkErrorMacro("Algorithm " << this->Algorithm->GetObjectDescription() |
| 730 | << " returned failure for request: " << *request); |
| 731 | } |
| 732 | |
| 733 | return result; |
| 734 | } |
| 735 | |
| 736 | //------------------------------------------------------------------------------ |
| 737 | int vtkExecutive::CheckAlgorithm(const char* method, vtkInformation* request) |
no test coverage detected