| 575 | } |
| 576 | |
| 577 | void vtkCellGrid::ClearRangeCache(const std::string& attributeName) |
| 578 | { |
| 579 | if (attributeName.empty()) |
| 580 | { |
| 581 | this->RangeCache.clear(); |
| 582 | return; |
| 583 | } |
| 584 | auto* att = this->GetCellAttributeByName(attributeName); |
| 585 | if (!att) |
| 586 | { |
| 587 | return; |
| 588 | } |
| 589 | auto it = this->RangeCache.find(att); |
| 590 | if (it == this->RangeCache.end()) |
| 591 | { |
| 592 | return; |
| 593 | } |
| 594 | this->RangeCache.erase(it); |
| 595 | } |
| 596 | |
| 597 | std::set<int> vtkCellGrid::GetCellAttributeIds() const |
| 598 | { |