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

Method SetValue

Common/Core/vtkBitArray.h:386–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384vtkArrayDownCast_FastCastMacro(vtkBitArray);
385
386inline void vtkBitArray::SetValue(vtkIdType id, int value)
387{
388 const auto bitsetDiv = std::div(id, static_cast<vtkIdType>(8));
389 const vtkIdType &bitsetId = bitsetDiv.quot, &bitId = bitsetDiv.rem;
390 ValueType mask = 0x80 >> bitId; // NOLINT(clang-analyzer-core.BitwiseShift)
391 this->Array[bitsetId] = static_cast<ValueType>(
392 (value != 0) ? (this->Array[bitsetId] | mask) : (this->Array[bitsetId] & (~mask)));
393 this->DataChanged();
394}
395
396inline void vtkBitArray::InsertValue(vtkIdType id, int value)
397{

Callers 15

SetTupleMethod · 0.95
SetComponentMethod · 0.95
InsertValueMethod · 0.95
SetVariantValueMethod · 0.95
SetColumnVisibilityMethod · 0.45
SwapAxesMethod · 0.45
PopulateHistogramsFunction · 0.45
MoveColumnFunction · 0.45
SetColumnVisibilityMethod · 0.45
InsertVisibleColumnMethod · 0.45
SetColumnVisibilityMethod · 0.45

Calls 1

DataChangedMethod · 0.95

Tested by 15

TestLinePlotSelection2Function · 0.36
TestChartsOn3DFunction · 0.36
TestLinePlot3DFunction · 0.36
TestBarGraphShiftScaleFunction · 0.36
TestScatterPlotMatrixFunction · 0.36
TestChartDoubleColorsFunction · 0.36
TestChartXYInvertedAxisFunction · 0.36
PopulateMatrixPlotFunction · 0.36
TestBoxPlot2Function · 0.36
TestLinePlotAxisFontsFunction · 0.36
TestMultipleRenderersFunction · 0.36
TestBoxPlotFunction · 0.36