------------------------------------------------------------------------------
| 241 | |
| 242 | //------------------------------------------------------------------------------ |
| 243 | void 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 | //------------------------------------------------------------------------------ |
| 264 | void vtkDataArray::GetIntegerTuple(vtkIdType tupleIdx, vtkTypeInt64* tuple) |