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

Method SetValue

Common/DataModel/Testing/Cxx/MockDataArray.h:22–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 void* GetVoidPointer(vtkIdType idx) override { return this->Buffer->GetBuffer() + idx; }
21 ValueType GetValue(vtkIdType valueIdx) const { return this->Buffer->GetBuffer()[valueIdx]; }
22 void SetValue(vtkIdType valueIdx, ValueType value)
23 {
24 this->Buffer->GetBuffer()[valueIdx] = value;
25 }
26 void GetTypedTuple(vtkIdType tupleIdx, ValueType* tuple) const
27 {
28 const vtkIdType valueIdx = tupleIdx * this->NumberOfComponents;

Calls 1

GetBufferMethod · 0.45

Tested by 15

testDenseArrayMethod · 0.36
testSparseArrayMethod · 0.36
RequestDataMethod · 0.36
RequestDataMethod · 0.36
RequestDataMethod · 0.36
RequestDataMethod · 0.36
TestPolyDataRemoveCellFunction · 0.36
TestArrayListTemplateFunction · 0.36
TestSortFieldDataFunction · 0.36
TestPolyhedronDecomposeFunction · 0.36