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

Method GetNextBlock

Rendering/VolumeOpenGL2/vtkVolumeTexture.cxx:189–207  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

187
188//------------------------------------------------------------------------------
189vtkVolumeTexture::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//------------------------------------------------------------------------------
210vtkVolumeTexture::VolumeBlock* vtkVolumeTexture::GetCurrentBlock()

Callers 1

RenderSingleInputMethod · 0.80

Calls 2

LoadTextureMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected