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

Method RequestUpdateExtent

Filters/ParallelFlowPaths/vtkPStreamTracer.cxx:1406–1435  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1404
1405//------------------------------------------------------------------------------
1406int vtkPStreamTracer::RequestUpdateExtent(vtkInformation* vtkNotUsed(request),
1407 vtkInformationVector** inputVector, vtkInformationVector* outputVector)
1408{
1409 vtkInformation* outInfo = outputVector->GetInformationObject(0);
1410 int piece = outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_PIECE_NUMBER());
1411 int numPieces = outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_PIECES());
1412 int ghostLevel = outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_GHOST_LEVELS());
1413
1414 int numInputs = this->GetNumberOfInputConnections(0);
1415 for (int idx = 0; idx < numInputs; ++idx)
1416 {
1417 vtkInformation* info = inputVector[0]->GetInformationObject(idx);
1418 if (info)
1419 {
1420 info->Set(vtkStreamingDemandDrivenPipeline::UPDATE_PIECE_NUMBER(), piece);
1421 info->Set(vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_PIECES(), numPieces);
1422 info->Set(vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_GHOST_LEVELS(), ghostLevel);
1423 }
1424 }
1425
1426 vtkInformation* sourceInfo = inputVector[1]->GetInformationObject(0);
1427 if (sourceInfo)
1428 {
1429 sourceInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_PIECE_NUMBER(), 0);
1430 sourceInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_PIECES(), 1);
1431 sourceInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_GHOST_LEVELS(), ghostLevel);
1432 }
1433
1434 return 1;
1435}
1436
1437//------------------------------------------------------------------------------
1438int vtkPStreamTracer::RequestData(

Callers

nothing calls this directly

Calls 4

GetInformationObjectMethod · 0.80
GetMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected