------------------------------------------------------------------------------
| 592 | |
| 593 | //------------------------------------------------------------------------------ |
| 594 | void 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 | //------------------------------------------------------------------------------ |
| 615 | void vtkVolumeTexture::SplitVolume(vtkImageData* imageData, Size3 const& part) |
no test coverage detected