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

Method BlankCell

Common/DataModel/vtkStructuredGrid.cxx:303–312  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

301//------------------------------------------------------------------------------
302// Turn off a particular data cell.
303void vtkStructuredGrid::BlankCell(vtkIdType cellId)
304{
305 vtkUnsignedCharArray* ghosts = this->GetCellGhostArray();
306 if (!ghosts)
307 {
308 ghosts = this->AllocateCellGhostArray();
309 }
310 ghosts->SetValue(cellId, ghosts->GetValue(cellId) | vtkDataSetAttributes::HIDDENCELL);
311 assert(!this->IsCellVisible(cellId));
312}
313
314//------------------------------------------------------------------------------
315// 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