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

Method AddArray

Common/DataModel/vtkFieldData.cxx:628–645  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

626
627//------------------------------------------------------------------------------
628int vtkFieldData::AddArray(vtkAbstractArray* array)
629{
630 if (!array)
631 {
632 return -1;
633 }
634
635 int index;
636 this->GetAbstractArray(array->GetName(), index);
637
638 if (index == -1)
639 {
640 index = this->NumberOfActiveArrays;
641 this->NumberOfActiveArrays++;
642 }
643 this->SetArray(index, array);
644 return index;
645}
646
647//------------------------------------------------------------------------------
648bool vtkFieldData::GetRange(const char* name, double range[2], int comp)

Callers

nothing calls this directly

Calls 3

GetAbstractArrayMethod · 0.95
SetArrayMethod · 0.95
GetNameMethod · 0.45

Tested by

no test coverage detected