------------------------------------------------------------------------------
| 867 | |
| 868 | //------------------------------------------------------------------------------ |
| 869 | void vtkVolumeTexture::SortBlocksBackToFront(vtkRenderer* ren, vtkMatrix4x4* volumeMat) |
| 870 | { |
| 871 | if (this->ImageDataBlocks.size() > 1) |
| 872 | { |
| 873 | vtkBlockSortHelper::BackToFront<vtkImageData> sortBlocks(ren, volumeMat); |
| 874 | vtkBlockSortHelper::Sort( |
| 875 | this->ImageDataBlocks.begin(), this->ImageDataBlocks.end(), sortBlocks); |
| 876 | |
| 877 | size_t const numBlocks = this->ImageDataBlocks.size(); |
| 878 | this->SortedVolumeBlocks.clear(); |
| 879 | this->SortedVolumeBlocks.reserve(numBlocks); |
| 880 | for (size_t i = 0; i < numBlocks; i++) |
| 881 | { |
| 882 | this->SortedVolumeBlocks.push_back(this->ImageDataBlockMap[this->ImageDataBlocks[i]]); |
| 883 | } |
| 884 | |
| 885 | // Load the first block |
| 886 | auto firstBlock = this->SortedVolumeBlocks.at(0); |
| 887 | this->LoadTexture(this->InterpolationType, firstBlock); |
| 888 | } |
| 889 | } |
| 890 | |
| 891 | //------------------------------------------------------------------------------ |
| 892 | void vtkVolumeTexture::SetPartitions(int x, int y, int z) |
no test coverage detected