------------------------------------------------------------------------------
| 187 | |
| 188 | //------------------------------------------------------------------------------ |
| 189 | vtkVolumeTexture::VolumeBlock* vtkVolumeTexture::GetNextBlock() |
| 190 | { |
| 191 | this->CurrentBlockIdx++; |
| 192 | // All blocks were already rendered |
| 193 | if (this->SortedVolumeBlocks.size() <= this->CurrentBlockIdx) |
| 194 | { |
| 195 | this->CurrentBlockIdx = 0; |
| 196 | return nullptr; |
| 197 | } |
| 198 | VolumeBlock* block = this->SortedVolumeBlocks[this->CurrentBlockIdx]; |
| 199 | |
| 200 | // Load current block |
| 201 | if (this->StreamBlocks) |
| 202 | { |
| 203 | this->LoadTexture(this->InterpolationType, block); |
| 204 | } |
| 205 | |
| 206 | return block; |
| 207 | } |
| 208 | |
| 209 | //------------------------------------------------------------------------------ |
| 210 | vtkVolumeTexture::VolumeBlock* vtkVolumeTexture::GetCurrentBlock() |
no test coverage detected