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

Method BlankCell

Common/DataModel/vtkExplicitStructuredGrid.cxx:691–700  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Turn off a particular data cell.

Source from the content-addressed store, hash-verified

689//------------------------------------------------------------------------------
690// Turn off a particular data cell.
691void vtkExplicitStructuredGrid::BlankCell(vtkIdType cellId)
692{
693 vtkUnsignedCharArray* ghosts = this->GetCellGhostArray();
694 if (!ghosts)
695 {
696 ghosts = this->AllocateCellGhostArray();
697 }
698 ghosts->SetValue(cellId, ghosts->GetValue(cellId) | vtkDataSetAttributes::HIDDENCELL);
699 assert(!this->IsCellVisible(cellId));
700}
701
702//------------------------------------------------------------------------------
703// Turn on a particular data cell.

Callers

nothing calls this directly

Calls 6

IsCellVisibleMethod · 0.95
GetCellGhostArrayMethod · 0.80
assertFunction · 0.50
SetValueMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected