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

Method ClearBlocks

Rendering/VolumeOpenGL2/vtkVolumeTexture.cxx:594–612  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

592
593//------------------------------------------------------------------------------
594void vtkVolumeTexture::ClearBlocks()
595{
596 if (this->ImageDataBlocks.empty())
597 {
598 return;
599 }
600
601 size_t const numBlocks = this->ImageDataBlocks.size();
602 for (size_t i = 0; i < numBlocks; i++)
603 {
604 this->ImageDataBlocks.at(i)->Delete();
605 delete this->SortedVolumeBlocks.at(i);
606 }
607
608 this->CurrentBlockIdx = 0;
609 this->ImageDataBlocks.clear();
610 this->SortedVolumeBlocks.clear();
611 this->ImageDataBlockMap.clear();
612}
613
614//------------------------------------------------------------------------------
615void vtkVolumeTexture::SplitVolume(vtkImageData* imageData, Size3 const& part)

Callers 2

~vtkVolumeTextureMethod · 0.95
LoadVolumeMethod · 0.95

Calls 5

DeleteMethod · 0.65
emptyMethod · 0.45
sizeMethod · 0.45
atMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected