Description: Set the scalar attribute to be processed. -1 means module.
| 409 | // Description: |
| 410 | // Set the scalar attribute to be processed. -1 means module. |
| 411 | void vtkGenericAttributeCollection::SetActiveAttribute(int attribute, int component) |
| 412 | { |
| 413 | assert("pre: not_empty" && !IsEmpty()); |
| 414 | assert("pre: valid_attribute" && (attribute >= 0) && (attribute < this->GetNumberOfAttributes())); |
| 415 | assert("pre: valid_component" && (component >= -1) && |
| 416 | (component < this->GetAttribute(attribute)->GetNumberOfComponents())); |
| 417 | |
| 418 | this->ActiveAttribute = attribute; |
| 419 | this->ActiveComponent = component; |
| 420 | |
| 421 | assert("post: is_set" && (this->GetActiveAttribute() == attribute) && |
| 422 | (this->GetActiveComponent() == component)); |
| 423 | } |
| 424 | |
| 425 | //------------------------------------------------------------------------------ |
| 426 | // Description: |
nothing calls this directly
no test coverage detected