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

Method SetUnsignedTuple

Common/Core/vtkDataArray.cxx:303–313  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

301
302//------------------------------------------------------------------------------
303void vtkDataArray::SetUnsignedTuple(vtkIdType tupleIdx, vtkTypeUInt64* tuple)
304{
305 static VTK_THREAD_LOCAL std::vector<double> data;
306 int numComp = this->GetNumberOfComponents();
307 data.resize(numComp);
308 for (int ii = 0; ii < numComp; ++ii)
309 {
310 data[ii] = static_cast<double>(tuple[ii]);
311 }
312 this->SetTuple(tupleIdx, data.data());
313}
314
315//------------------------------------------------------------------------------
316void vtkDataArray::CreateDefaultLookupTable()

Callers 3

GetSideSetMethod · 0.80
UpdateMethod · 0.80
QueryMethod · 0.80

Calls 4

SetTupleMethod · 0.95
GetNumberOfComponentsMethod · 0.45
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected