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

Method InitializeFieldList

Common/DataModel/vtkDataSetAttributesFieldList.cxx:397–412  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

395
396//------------------------------------------------------------------------------
397void 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//------------------------------------------------------------------------------
415void vtkDataSetAttributesFieldList::IntersectFieldList(vtkDataSetAttributes* dsa)

Callers 10

IntersectFieldListMethod · 0.95
UnionFieldListMethod · 0.95
StructuredGridExecuteMethod · 0.80
TestFieldListFunction · 0.80
RequestDataMethod · 0.80
StartUGridMethod · 0.80
RequestDataMethod · 0.80
BuildFieldListMethod · 0.80
BuildFieldListMethod · 0.80

Calls 4

GetFieldsFunction · 0.70
ResetMethod · 0.45
GetNumberOfTuplesMethod · 0.45
frontMethod · 0.45

Tested by 1

TestFieldListFunction · 0.64