MCPcopy Create free account
hub / github.com/Kitware/VTK / SetAttributesToInterpolate

Method SetAttributesToInterpolate

Common/DataModel/vtkGenericAttributeCollection.cxx:465–487  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Set the attributes to interpolate.

Source from the content-addressed store, hash-verified

463// Description:
464// Set the attributes to interpolate.
465void 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:

Callers

nothing calls this directly

Calls 3

IsEmptyMethod · 0.95
HasAttributeMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected