------------------------------------------------------------------------------ Description: Set the attributes to interpolate.
| 463 | // Description: |
| 464 | // Set the attributes to interpolate. |
| 465 | void vtkGenericAttributeCollection::SetAttributesToInterpolate(int size, int* attributes) |
| 466 | { |
| 467 | assert("pre: not_empty" && !this->IsEmpty()); |
| 468 | assert("pre: positive_size" && size >= 0); |
| 469 | assert("pre: magic_number" && size <= 10); |
| 470 | assert("pre: valid_attributes" && |
| 471 | ((!(size > 0)) || (attributes != nullptr))); // size>0 => attributes!=0 (A=>B: !A||B ) |
| 472 | assert("pre: valid_attributes_contents" && |
| 473 | (!(attributes != nullptr) || |
| 474 | !(!this->HasAttribute(size, attributes, |
| 475 | this |
| 476 | ->GetActiveAttribute())))); // attributes!=0 => |
| 477 | // !this->HasAttribute(size,attributes,this->GetActiveAttribute()) |
| 478 | // (A=>B: !A||B ) |
| 479 | |
| 480 | this->NumberOfAttributesToInterpolate = size; |
| 481 | for (int i = 0; i < size; ++i) |
| 482 | { |
| 483 | this->AttributesToInterpolate[i] = attributes[i]; |
| 484 | } |
| 485 | |
| 486 | assert("post: is_set" && (this->GetNumberOfAttributesToInterpolate() == size)); |
| 487 | } |
| 488 | |
| 489 | //------------------------------------------------------------------------------ |
| 490 | // Description: |
nothing calls this directly
no test coverage detected