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

Method SetTuple3

Common/Core/vtkDataArray.cxx:423–436  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

421}
422//------------------------------------------------------------------------------
423void vtkDataArray::SetTuple3(vtkIdType i, double val0, double val1, double val2)
424{
425 double tuple[3];
426 int numComp = this->GetNumberOfComponents();
427 if (numComp != 3)
428 {
429 vtkErrorMacro(
430 "The number of components do not match the number requested: " << numComp << " != 3");
431 }
432 tuple[0] = val0;
433 tuple[1] = val1;
434 tuple[2] = val2;
435 this->SetTuple(i, tuple);
436}
437//------------------------------------------------------------------------------
438void vtkDataArray::SetTuple4(vtkIdType i, double val0, double val1, double val2, double val3)
439{

Callers 15

RequestDataMethod · 0.80
SampleVdbGridMethod · 0.80
TestXMLTableIO.pyFile · 0.80
RequestDataMethod · 0.80
ReadColorElementMethod · 0.80
PropagateBranchColorMethod · 0.80
AttachVectorToGridMethod · 0.80
TestHistogram2DComponentFunction · 0.80
TestHistogram2DMagnitudeFunction · 0.80
TestVTKMWarpVectorFunction · 0.80
MakeTestDataSetFunction · 0.80

Calls 2

SetTupleMethod · 0.95
GetNumberOfComponentsMethod · 0.45

Tested by 15

TestHistogram2DComponentFunction · 0.64
TestHistogram2DMagnitudeFunction · 0.64
TestVTKMWarpVectorFunction · 0.64
MakeTestDataSetFunction · 0.64
TestMemkindDataFunction · 0.64
TestPathTracerMaterialsFunction · 0.64
TestOSPRayRenderMeshFunction · 0.64
TestAnariRenderMeshFunction · 0.64
TestImageNoDirectionFunction · 0.64
TestImageWithDirectionFunction · 0.64
TestInterpolateRowFunction · 0.64