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

Method GetArrayForCellTypeAndRole

Common/DataModel/vtkCellAttribute.cxx:145–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145vtkAbstractArray* vtkCellAttribute::GetArrayForCellTypeAndRole(
146 vtkStringToken cellType, vtkStringToken arrayRole) const
147{
148 auto it = this->AllArrays.find(cellType);
149 if (it == this->AllArrays.end())
150 {
151 return nullptr;
152 }
153 auto it2 = it->second.ArraysByRole.find(arrayRole);
154 if (it2 == it->second.ArraysByRole.end())
155 {
156 return nullptr;
157 }
158 return it2->second;
159}
160
161bool vtkCellAttribute::SetCellTypeInfo(vtkStringToken cellType, const CellTypeInfo& cellTypeInfo)
162{

Callers 3

PrepareHelperMethod · 0.80
checkAttributeMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 1

checkAttributeMethod · 0.64