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

Method GetData

Common/Core/vtkDataArray.cxx:243–261  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

241
242//------------------------------------------------------------------------------
243void vtkDataArray::GetData(
244 vtkIdType tupleMin, vtkIdType tupleMax, int compMin, int compMax, vtkDoubleArray* data)
245{
246 int i;
247 vtkIdType j;
248 int numComp = this->GetNumberOfComponents();
249 double* tuple = new double[numComp];
250 double* ptr = data->WritePointer(0, (tupleMax - tupleMin + 1) * (compMax - compMin + 1));
251
252 for (j = tupleMin; j <= tupleMax; j++)
253 {
254 this->GetTuple(j, tuple);
255 for (i = compMin; i <= compMax; i++)
256 {
257 *ptr++ = tuple[i];
258 }
259 }
260 delete[] tuple;
261}
262
263//------------------------------------------------------------------------------
264void vtkDataArray::GetIntegerTuple(vtkIdType tupleIdx, vtkTypeInt64* tuple)

Callers 15

TransformPointsMethod · 0.45
TranslateMethod · 0.45
RotateMethod · 0.45
ScaleMethod · 0.45
TransformPointsMethod · 0.45
SetMatrixFunction · 0.45
GetP00DataMethod · 0.45
GetP01DataMethod · 0.45
GetP10DataMethod · 0.45
GetP11DataMethod · 0.45

Calls 3

GetNumberOfComponentsMethod · 0.45
WritePointerMethod · 0.45
GetTupleMethod · 0.45

Tested by 3

TestQuaternionSetGetFunction · 0.36
TestArrayAccessMethod · 0.36
TestArrayAccessConstMethod · 0.36