------------------------------------------------------------------------------ Description: Return the index of the first component of attribute `i' in an array of format attrib0comp0 attrib0comp1 ... attrib4comp0 ... \pre valid_i: i>=0 && i GetCentering()==vtkPointCentered
| 198 | // \pre valid_i: i>=0 && i<GetNumberOfAttributes() |
| 199 | // \pre is_point_centered: GetAttribute(i)->GetCentering()==vtkPointCentered |
| 200 | int vtkGenericAttributeCollection::GetAttributeIndex(int i) |
| 201 | { |
| 202 | assert("pre: valid_i" && i >= 0 && i < this->GetNumberOfAttributes()); |
| 203 | assert("pre: is_point_centered" && this->GetAttribute(i)->GetCentering() == vtkPointCentered); |
| 204 | this->ComputeNumbers(); |
| 205 | return this->AttributeIndices->Vector[i]; |
| 206 | } |
| 207 | |
| 208 | //------------------------------------------------------------------------------ |
| 209 | // Description: |
no test coverage detected