MCPcopy Create free account
hub / github.com/Kitware/VTK / PropagateTime

Method PropagateTime

Common/ExecutionModel/vtkStreamingDemandDrivenPipeline.cxx:720–753  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

718
719//------------------------------------------------------------------------------
720int 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//------------------------------------------------------------------------------
756int vtkStreamingDemandDrivenPipeline::UpdateTimeDependentInformation(int port)

Callers 1

UpdateMethod · 0.95

Calls 7

CheckAlgorithmMethod · 0.80
NewFunction · 0.50
SetMethod · 0.45
ProcessRequestMethod · 0.45
GetInputInformationMethod · 0.45
GetOutputInformationMethod · 0.45

Tested by

no test coverage detected