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

Method ProcessRequest

Common/ExecutionModel/vtkAlgorithm.cxx:940–964  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

938
939//------------------------------------------------------------------------------
940vtkTypeBool vtkAlgorithm::ProcessRequest(
941 vtkInformation* request, vtkCollection* inInfo, vtkInformationVector* outInfo)
942{
943 vtkSmartPointer<vtkCollectionIterator> iter;
944 iter.TakeReference(inInfo->NewIterator());
945
946 std::vector<vtkInformationVector*> ivectors;
947 for (iter->GoToFirstItem(); !iter->IsDoneWithTraversal(); iter->GoToNextItem())
948 {
949 vtkInformationVector* iv = vtkInformationVector::SafeDownCast(iter->GetCurrentObject());
950 if (!iv)
951 {
952 return 0;
953 }
954 ivectors.push_back(iv);
955 }
956 if (ivectors.empty())
957 {
958 return this->ProcessRequest(request, (vtkInformationVector**)nullptr, outInfo);
959 }
960 else
961 {
962 return this->ProcessRequest(request, ivectors.data(), outInfo);
963 }
964}
965
966//------------------------------------------------------------------------------
967vtkTypeBool vtkAlgorithm::ProcessRequest(

Callers 2

CallAlgorithmMethod · 0.45
ForwardUpstreamMethod · 0.45

Calls 9

GetCurrentObjectMethod · 0.80
TakeReferenceMethod · 0.45
NewIteratorMethod · 0.45
GoToFirstItemMethod · 0.45
IsDoneWithTraversalMethod · 0.45
GoToNextItemMethod · 0.45
push_backMethod · 0.45
emptyMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected