Model.setqualitythresholdscolors#
- Model.setqualitythresholdscolors(double_array)#
Sets the color for all element quality index ranges. This function is related to the element quality view mode.
- Parameters:
double_array (hwDoubleList) –
The list of doubles containing the color values for each quality index range.
There are currently 5 quality index ranges that can be set. The color for each range must be specified, using a value of 1-64. The order of the parameters is:
0 - Ideal (ideal ≤ QI < good)
1 - Good (good ≤ QI < warn)
2 - Warn (warn ≤ QI < fail)
3 - Fail (fail ≤ QI < worst)
4 - Worst (worst ≤ QI)
Example#
Assign the quality index thresholds colors : ideal 56 ( green ) , good 41 ( cyan ) , warn 28 ( brown ) , fail 57 ( yellow ) and worst 3 ( red )#import hm import hm.entities as ent model = hm.Model() model.setqualitythresholdscolors(float_array=[56, 41, 28, 57, 3])