------------------------------------------------------------------------------
| 718 | |
| 719 | //------------------------------------------------------------------------------ |
| 720 | int vtkStreamingDemandDrivenPipeline::PropagateTime(int outputPort) |
| 721 | { |
| 722 | // The algorithm should not invoke anything on the executive. |
| 723 | if (!this->CheckAlgorithm("PropagateTime", nullptr)) |
| 724 | { |
| 725 | return 0; |
| 726 | } |
| 727 | |
| 728 | // Range check. |
| 729 | if (outputPort < -1 || outputPort >= this->Algorithm->GetNumberOfOutputPorts()) |
| 730 | { |
| 731 | vtkErrorMacro("PropagateUpdateTime given output port index " |
| 732 | << outputPort << " on an algorithm with " << this->Algorithm->GetNumberOfOutputPorts() |
| 733 | << " output ports."); |
| 734 | return 0; |
| 735 | } |
| 736 | |
| 737 | // Setup the request for update extent propagation. |
| 738 | if (!this->UpdateTimeRequest) |
| 739 | { |
| 740 | this->UpdateTimeRequest = vtkInformation::New(); |
| 741 | this->UpdateTimeRequest->Set(REQUEST_UPDATE_TIME()); |
| 742 | // The request is forwarded upstream through the pipeline. |
| 743 | this->UpdateTimeRequest->Set(vtkExecutive::FORWARD_DIRECTION(), vtkExecutive::RequestUpstream); |
| 744 | // Algorithms process this request before it is forwarded. |
| 745 | this->UpdateTimeRequest->Set(vtkExecutive::ALGORITHM_BEFORE_FORWARD(), 1); |
| 746 | } |
| 747 | |
| 748 | this->UpdateTimeRequest->Set(FROM_OUTPUT_PORT(), outputPort); |
| 749 | |
| 750 | // Send the request. |
| 751 | return this->ProcessRequest( |
| 752 | this->UpdateTimeRequest, this->GetInputInformation(), this->GetOutputInformation()); |
| 753 | } |
| 754 | |
| 755 | //------------------------------------------------------------------------------ |
| 756 | int vtkStreamingDemandDrivenPipeline::UpdateTimeDependentInformation(int port) |
no test coverage detected