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

Method SetTuple4

Common/Core/vtkDataArray.cxx:438–452  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

436}
437//------------------------------------------------------------------------------
438void vtkDataArray::SetTuple4(vtkIdType i, double val0, double val1, double val2, double val3)
439{
440 double tuple[4];
441 int numComp = this->GetNumberOfComponents();
442 if (numComp != 4)
443 {
444 vtkErrorMacro(
445 "The number of components do not match the number requested: " << numComp << " != 4");
446 }
447 tuple[0] = val0;
448 tuple[1] = val1;
449 tuple[2] = val2;
450 tuple[3] = val3;
451 this->SetTuple(i, tuple);
452}
453//------------------------------------------------------------------------------
454void vtkDataArray::SetTuple6(
455 vtkIdType i, double val0, double val1, double val2, double val3, double val4, double val5)

Callers 14

RequestDataMethod · 0.80
WriteSumStepsPolyDataMethod · 0.80
GenerateSelectionMethod · 0.80
doArrayTestFunction · 0.80
buildPolyDataItemMixedFunction · 0.80
buildSpiralPolyDataItemFunction · 0.80
LayoutMethod · 0.80
TestExtractionFunction · 0.80
TestExtractionExpressionFunction · 0.80

Calls 2

SetTupleMethod · 0.95
GetNumberOfComponentsMethod · 0.45

Tested by 4

TestExtractionFunction · 0.64
TestExtractionExpressionFunction · 0.64
CheckFrustumSelectionFunction · 0.64