------------------------------------------------------------------------------
| 497 | |
| 498 | //------------------------------------------------------------------------------ |
| 499 | vtkTypeBool vtkExecutive::ProcessRequest( |
| 500 | vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outInfo) |
| 501 | { |
| 502 | if (request->Has(FORWARD_DIRECTION())) |
| 503 | { |
| 504 | // Request will be forwarded. |
| 505 | if (request->Get(FORWARD_DIRECTION()) == vtkExecutive::RequestUpstream) |
| 506 | { |
| 507 | if (this->Algorithm && request->Get(ALGORITHM_BEFORE_FORWARD())) |
| 508 | { |
| 509 | if (!this->CallAlgorithm(request, vtkExecutive::RequestUpstream, inInfo, outInfo)) |
| 510 | { |
| 511 | return 0; |
| 512 | } |
| 513 | } |
| 514 | if (!this->ForwardUpstream(request)) |
| 515 | { |
| 516 | return 0; |
| 517 | } |
| 518 | if (this->Algorithm && request->Get(ALGORITHM_AFTER_FORWARD())) |
| 519 | { |
| 520 | if (!this->CallAlgorithm(request, vtkExecutive::RequestDownstream, inInfo, outInfo)) |
| 521 | { |
| 522 | return 0; |
| 523 | } |
| 524 | } |
| 525 | } |
| 526 | if (request->Get(FORWARD_DIRECTION()) == vtkExecutive::RequestDownstream) |
| 527 | { |
| 528 | vtkErrorMacro("Downstream forwarding not yet implemented."); |
| 529 | return 0; |
| 530 | } |
| 531 | } |
| 532 | else |
| 533 | { |
| 534 | // Request will not be forwarded. |
| 535 | vtkErrorMacro("Non-forwarded requests are not yet implemented."); |
| 536 | return 0; |
| 537 | } |
| 538 | return 1; |
| 539 | } |
| 540 | |
| 541 | //------------------------------------------------------------------------------ |
| 542 | int vtkExecutive::ComputePipelineMTime( |
no test coverage detected