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

Method SMPRequestData

Common/ExecutionModel/vtkThreadedImageAlgorithm.cxx:414–432  ·  view source on GitHub ↗

------------------------------------------------------------------------------ The execute method created by the subclass.

Source from the content-addressed store, hash-verified

412//------------------------------------------------------------------------------
413// The execute method created by the subclass.
414void vtkThreadedImageAlgorithm::SMPRequestData(vtkInformation* request,
415 vtkInformationVector** inputVector, vtkInformationVector* outputVector, vtkImageData*** inData,
416 vtkImageData** outData, vtkIdType begin, vtkIdType end, vtkIdType numPieces, int extent[6])
417{
418 for (vtkIdType piece = begin; piece < end; piece++)
419 {
420 int splitExt[6] = { 0, -1, 0, -1, 0, -1 };
421
422 vtkIdType total = this->SplitExtent(splitExt, extent, piece, numPieces);
423
424 // check for valid piece and extent
425 if (piece < total && splitExt[0] <= splitExt[1] && splitExt[2] <= splitExt[3] &&
426 splitExt[4] <= splitExt[5])
427 {
428 this->ThreadedRequestData(
429 request, inputVector, outputVector, inData, outData, splitExt, piece);
430 }
431 }
432}
433
434//------------------------------------------------------------------------------
435void vtkThreadedImageAlgorithm::PrepareImageData(vtkInformationVector** inputVector,

Callers 3

operator()Method · 0.80
operator()Method · 0.80
operator()Method · 0.80

Calls 2

SplitExtentMethod · 0.95
ThreadedRequestDataMethod · 0.95

Tested by

no test coverage detected