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

Method ProcessRequest

Common/ExecutionModel/vtkExecutive.cxx:499–539  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

497
498//------------------------------------------------------------------------------
499vtkTypeBool 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//------------------------------------------------------------------------------
542int vtkExecutive::ComputePipelineMTime(

Callers 2

ForwardUpstreamMethod · 0.45
CallAlgorithmMethod · 0.45

Calls 4

CallAlgorithmMethod · 0.95
ForwardUpstreamMethod · 0.95
HasMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected