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

Method GetComponent

Common/Core/vtkDataArray.cxx:185–194  ·  view source on GitHub ↗

------------------------------------------------------------------------------ These can be overridden for more efficiency

Source from the content-addressed store, hash-verified

183//------------------------------------------------------------------------------
184// These can be overridden for more efficiency
185double vtkDataArray::GetComponent(vtkIdType tupleIdx, int compIdx)
186{
187 double *tuple = new double[this->NumberOfComponents], c;
188
189 this->GetTuple(tupleIdx, tuple);
190 c = tuple[compIdx];
191 delete[] tuple;
192
193 return c;
194}
195
196//------------------------------------------------------------------------------
197void vtkDataArray::SetComponent(vtkIdType tupleIdx, int compIdx, double value)

Callers 15

WriteScalarFileMethod · 0.45
MakeInternalMeshMethod · 0.45
testReader3DMethod · 0.45
testReader2DMethod · 0.45
CheckArrayPointDataFunction · 0.45
GenerateSubGridFunction · 0.45
TestExampleFileFunction · 0.45
TestFDSReader3Function · 0.45
TestFDSReader2Function · 0.45
XdmfSubsetToVTKMethod · 0.45

Calls 1

GetTupleMethod · 0.45

Tested by 15

CheckArrayPointDataFunction · 0.36
TestExampleFileFunction · 0.36
TestFDSReader3Function · 0.36
TestFDSReader2Function · 0.36
TestFieldFunction · 0.36
CheckArrayValuesFunction · 0.36
TestUGTemporalBaseFunction · 0.36
TestPolyDataTemporalBaseFunction · 0.36