| 142 | } |
| 143 | |
| 144 | void 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 | |
| 161 | void vtkCellGridCopyQuery::ResetCellAttributeIds() |
| 162 | { |
no test coverage detected