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

Method SetIntegerTuple

Common/Core/vtkDataArray.cxx:277–287  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

275
276//------------------------------------------------------------------------------
277void vtkDataArray::SetIntegerTuple(vtkIdType tupleIdx, vtkTypeInt64* tuple)
278{
279 static VTK_THREAD_LOCAL std::vector<double> data;
280 int numComp = this->GetNumberOfComponents();
281 data.resize(numComp);
282 for (int ii = 0; ii < numComp; ++ii)
283 {
284 data[ii] = static_cast<double>(tuple[ii]);
285 }
286 this->SetTuple(tupleIdx, data.data());
287}
288
289//------------------------------------------------------------------------------
290void vtkDataArray::GetUnsignedTuple(vtkIdType tupleIdx, vtkTypeUInt64* tuple)

Callers 4

UpdateMethod · 0.80
AddCoordinatesFunction · 0.80
ProcessMethod · 0.80
ReduceMethod · 0.80

Calls 4

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

Tested by 1

AddCoordinatesFunction · 0.64