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

Method SetTuple9

Common/Core/vtkDataArray.cxx:473–493  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

471}
472//------------------------------------------------------------------------------
473void vtkDataArray::SetTuple9(vtkIdType i, double val0, double val1, double val2, double val3,
474 double val4, double val5, double val6, double val7, double val8)
475{
476 double tuple[9];
477 int numComp = this->GetNumberOfComponents();
478 if (numComp != 9)
479 {
480 vtkErrorMacro(
481 "The number of components do not match the number requested: " << numComp << " != 9");
482 }
483 tuple[0] = val0;
484 tuple[1] = val1;
485 tuple[2] = val2;
486 tuple[3] = val3;
487 tuple[4] = val4;
488 tuple[5] = val5;
489 tuple[6] = val6;
490 tuple[7] = val7;
491 tuple[8] = val8;
492 this->SetTuple(i, tuple);
493}
494
495//------------------------------------------------------------------------------
496void vtkDataArray::InsertTuple1(vtkIdType i, double value)

Callers 3

AttachTensorToGridMethod · 0.80
doArrayTestFunction · 0.80

Calls 2

SetTupleMethod · 0.95
GetNumberOfComponentsMethod · 0.45

Tested by

no test coverage detected