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

Method ApplyBlockVisibilities

Rendering/HyperTreeGrid/vtkHyperTreeGridMapper.cxx:151–165  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

149
150//------------------------------------------------------------------------------
151void vtkHyperTreeGridMapper::ApplyBlockVisibilities()
152{
153 auto compositeMapper = vtkCompositePolyDataMapper::SafeDownCast(this->Mapper);
154 if (compositeMapper)
155 {
156 for (auto idx : this->BlocksShown)
157 {
158 compositeMapper->SetBlockVisibility(idx, true);
159 }
160 for (auto idx : this->BlocksHidden)
161 {
162 compositeMapper->SetBlockVisibility(idx, false);
163 }
164 }
165}
166
167//------------------------------------------------------------------------------
168void vtkHyperTreeGridMapper::SetBlockVisibility(unsigned int index, bool visible)

Callers 1

RenderMethod · 0.95

Calls 1

SetBlockVisibilityMethod · 0.45

Tested by

no test coverage detected