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

Method BlankPoint

Common/DataModel/vtkStructuredGrid.cxx:278–287  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Turn off a particular data point.

Source from the content-addressed store, hash-verified

276//------------------------------------------------------------------------------
277// Turn off a particular data point.
278void vtkStructuredGrid::BlankPoint(vtkIdType ptId)
279{
280 vtkUnsignedCharArray* ghosts = this->GetPointGhostArray();
281 if (!ghosts)
282 {
283 ghosts = this->AllocatePointGhostArray();
284 }
285 ghosts->SetValue(ptId, ghosts->GetValue(ptId) | vtkDataSetAttributes::HIDDENPOINT);
286 assert(!this->IsPointVisible(ptId));
287}
288
289//------------------------------------------------------------------------------
290// Turn on a particular data point.

Callers

nothing calls this directly

Calls 6

IsPointVisibleMethod · 0.95
GetPointGhostArrayMethod · 0.80
assertFunction · 0.50
SetValueMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected