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

Method BlankCell

Common/DataModel/vtkCartesianGrid.cxx:329–339  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

327//------------------------------------------------------------------------------
328// Turn off a particular data cell.
329void vtkCartesianGrid::BlankCell(vtkIdType cellId)
330{
331 vtkUnsignedCharArray* ghost = this->GetCellGhostArray();
332 if (!ghost)
333 {
334 this->AllocateCellGhostArray();
335 ghost = this->GetCellGhostArray();
336 }
337 ghost->SetValue(cellId, ghost->GetValue(cellId) | vtkDataSetAttributes::HIDDENCELL);
338 assert(!this->IsCellVisible(cellId));
339}
340
341//------------------------------------------------------------------------------
342void vtkCartesianGrid::BlankCell(int i, int j, int k)

Callers 4

ConvertMethod · 0.45
RequestDataMethod · 0.45

Calls 8

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

Tested by 1