------------------------------------------------------------------------------ look at children
| 736 | //------------------------------------------------------------------------------ |
| 737 | // look at children |
| 738 | bool vtkCompositeCellGridMapper::HasTranslucentPolygonalGeometry() |
| 739 | { |
| 740 | // Make sure that we have been properly initialized. |
| 741 | if (this->GetInputAlgorithm() == nullptr) |
| 742 | { |
| 743 | return false; |
| 744 | } |
| 745 | |
| 746 | if (!this->Static) |
| 747 | { |
| 748 | this->InvokeEvent(vtkCommand::StartEvent, nullptr); |
| 749 | this->GetInputAlgorithm()->Update(); |
| 750 | this->InvokeEvent(vtkCommand::EndEvent, nullptr); |
| 751 | } |
| 752 | |
| 753 | auto input = this->GetInputDataObject(0, 0); |
| 754 | if (input == nullptr) |
| 755 | { |
| 756 | return false; |
| 757 | } |
| 758 | |
| 759 | // rebuild the render values if needed |
| 760 | vtkCompositeDataDisplayAttributes* cda = this->GetCompositeDataDisplayAttributes(); |
| 761 | vtkScalarsToColors* lut = this->ScalarVisibility ? this->GetLookupTable() : nullptr; |
| 762 | |
| 763 | this->TempState.Clear(); |
| 764 | this->TempState.Append(cda ? cda->GetMTime() : 0, "cda mtime"); |
| 765 | this->TempState.Append(lut ? lut->GetMTime() : 0, "lut mtime"); |
| 766 | this->TempState.Append(input->GetMTime(), "input mtime"); |
| 767 | if (this->TranslucentState != this->TempState) |
| 768 | { |
| 769 | this->TranslucentState = this->TempState; |
| 770 | if (lut) |
| 771 | { |
| 772 | // Ensure that the lookup table is built |
| 773 | lut->Build(); |
| 774 | } |
| 775 | |
| 776 | // Push base-values on the state stack. |
| 777 | unsigned int flat_index = 0; |
| 778 | this->HasTranslucentGeometry = this->RecursiveHasTranslucentGeometry(input, flat_index); |
| 779 | } |
| 780 | |
| 781 | return this->HasTranslucentGeometry; |
| 782 | } |
| 783 | |
| 784 | VTK_ABI_NAMESPACE_END |
nothing calls this directly
no test coverage detected