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

Method GetUnorderedCellAttributeIds

Common/DataModel/vtkCellGrid.cxx:607–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605}
606
607std::vector<int> vtkCellGrid::GetUnorderedCellAttributeIds() const
608{
609 std::set<int> attributeIds;
610 for (const auto& entry : this->Attributes)
611 {
612 attributeIds.insert(entry.second->GetId());
613 }
614 std::vector<int> result(attributeIds.begin(), attributeIds.end());
615 return result;
616}
617
618std::vector<vtkSmartPointer<vtkCellAttribute>> vtkCellGrid::GetCellAttributeList() const
619{

Callers 3

GetAttributeArrayNameMethod · 0.80

Calls 4

insertMethod · 0.45
GetIdMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 2

GetAttributeArrayNameMethod · 0.64