------------------------------------------------------------------------------ Description: Remove all attributes.
| 275 | // Description: |
| 276 | // Remove all attributes. |
| 277 | void vtkGenericAttributeCollection::Reset() |
| 278 | { |
| 279 | for (unsigned int i = 0; i < this->AttributeInternalVector->Vector.size(); ++i) |
| 280 | { |
| 281 | this->AttributeInternalVector->Vector[i]->Delete(); |
| 282 | } |
| 283 | this->AttributeInternalVector->Vector.clear(); |
| 284 | this->AttributeIndices->Vector.clear(); |
| 285 | this->Modified(); |
| 286 | |
| 287 | assert("post: is_empty" && this->IsEmpty()); |
| 288 | } |
| 289 | |
| 290 | //------------------------------------------------------------------------------ |
| 291 | // Description: |