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

Method HasTranslucentPolygonalGeometry

Rendering/Core/vtkCompositeCellGridMapper.cxx:738–782  ·  view source on GitHub ↗

------------------------------------------------------------------------------ look at children

Source from the content-addressed store, hash-verified

736//------------------------------------------------------------------------------
737// look at children
738bool 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
784VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 11

InvokeEventMethod · 0.80
GetInputDataObjectMethod · 0.80
GetInputAlgorithmMethod · 0.45
UpdateMethod · 0.45
GetLookupTableMethod · 0.45
ClearMethod · 0.45
AppendMethod · 0.45
GetMTimeMethod · 0.45
BuildMethod · 0.45

Tested by

no test coverage detected