------------------------------------------------------------------------------ The execute method created by the subclass.
| 412 | //------------------------------------------------------------------------------ |
| 413 | // The execute method created by the subclass. |
| 414 | void 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 | //------------------------------------------------------------------------------ |
| 435 | void vtkThreadedImageAlgorithm::PrepareImageData(vtkInformationVector** inputVector, |
no test coverage detected