------------------------------------------------------------------------------
| 395 | |
| 396 | //------------------------------------------------------------------------------ |
| 397 | void vtkDataSetAttributesFieldList::InitializeFieldList(vtkDataSetAttributes* dsa) |
| 398 | { |
| 399 | this->Internals->Reset(); |
| 400 | this->Internals->Fields = detail::GetFields(dsa); |
| 401 | this->Internals->NumberOfTuples += dsa->GetNumberOfTuples(); |
| 402 | this->Internals->NumberOfInputs++; |
| 403 | |
| 404 | // initialize OutputLocation to match the input location for 0th input. This |
| 405 | // is to support legacy use-cases where FieldList was used without |
| 406 | // calling CopyAllocate. |
| 407 | for (auto& pair : this->Internals->Fields) |
| 408 | { |
| 409 | auto& fieldInfo = pair.second; |
| 410 | fieldInfo.OutputLocation = fieldInfo.Location.front(); |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | //------------------------------------------------------------------------------ |
| 415 | void vtkDataSetAttributesFieldList::IntersectFieldList(vtkDataSetAttributes* dsa) |