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

Method GetCellAttributeIds

Common/DataModel/vtkCellGridCopyQuery.cxx:144–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void vtkCellGridCopyQuery::GetCellAttributeIds(vtkIdList* ids) const
145{
146 if (!ids)
147 {
148 vtkErrorMacro("Null ids passed to " << __func__ << ".");
149 return;
150 }
151 ids->Initialize();
152 ids->SetNumberOfIds(this->CellAttributeIds.size());
153 int ii = 0;
154 for (const auto& id : this->CellAttributeIds)
155 {
156 ids->SetId(ii, id);
157 ++ii;
158 }
159}
160
161void vtkCellGridCopyQuery::ResetCellAttributeIds()
162{

Callers 1

Calls 4

SetNumberOfIdsMethod · 0.80
InitializeMethod · 0.45
sizeMethod · 0.45
SetIdMethod · 0.45

Tested by

no test coverage detected