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

Method SetActiveAttribute

Common/DataModel/vtkGenericAttributeCollection.cxx:411–423  ·  view source on GitHub ↗

Description: Set the scalar attribute to be processed. -1 means module.

Source from the content-addressed store, hash-verified

409// Description:
410// Set the scalar attribute to be processed. -1 means module.
411void 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:

Callers

nothing calls this directly

Calls 5

GetNumberOfAttributesMethod · 0.95
GetAttributeMethod · 0.95
IsEmptyFunction · 0.70
assertFunction · 0.50
GetNumberOfComponentsMethod · 0.45

Tested by

no test coverage detected