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

Method SetTuple2

Common/Core/vtkDataArray.cxx:409–421  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

407}
408//------------------------------------------------------------------------------
409void vtkDataArray::SetTuple2(vtkIdType i, double val0, double val1)
410{
411 double tuple[2];
412 int numComp = this->GetNumberOfComponents();
413 if (numComp != 2)
414 {
415 vtkErrorMacro(
416 "The number of components do not match the number requested: " << numComp << " != 2");
417 }
418 tuple[0] = val0;
419 tuple[1] = val1;
420 this->SetTuple(i, tuple);
421}
422//------------------------------------------------------------------------------
423void vtkDataArray::SetTuple3(vtkIdType i, double val0, double val1, double val2)
424{

Callers 15

RequestDataMethod · 0.80
TestFunctionalBagPlotFunction · 0.80
Test_fft_cplxFunction · 0.80
doArrayTestFunction · 0.80
TestMultiTexturingFunction · 0.80
CreateCurvedPlaneFunction · 0.80
CreateCurvedPlaneFunction · 0.80
RequestDataMethod · 0.80
vtkTextMapperMethod · 0.80
TestTextureWrapFunction · 0.80
ConfigureScalarBarMethod · 0.80

Calls 2

SetTupleMethod · 0.95
GetNumberOfComponentsMethod · 0.45

Tested by 9

TestFunctionalBagPlotFunction · 0.64
Test_fft_cplxFunction · 0.64
TestMultiTexturingFunction · 0.64
CreateCurvedPlaneFunction · 0.64
CreateCurvedPlaneFunction · 0.64
TestTextureWrapFunction · 0.64
InitializeTableComplexFunction · 0.64
TestGaussianFieldArrayFunction · 0.64
TestExtractionExpressionFunction · 0.64