Page MenuHomePhabricator

Allow to use LookupTable opacity values
Closed, ResolvedPublic

Description

By default, the ImageMapperGL2D sets the opacity of the LookupTable to the value of opacity property:

LookupTableProp->GetLookupTable()->ChangeOpacityForAll( opacity );
LookupTableProp->GetLookupTable()->ChangeOpacity(0, 0.0);

Sometimes is desired to use custom opacity values for each color, using the opacity configuration of the LookupTable property.

Event Timeline

Resetting all bugs without active assignee flag to "CONFIRMED". Change status to IN_PROGRESS if you are working on it.

Nice to have. We will have a look at this.

Markus proposed to use both, the "opacity" property and the opacity of the property "Lookuptable" by setting the final value to:
opacity * LutAlpha.

If you set the value of either one to 1, only the one not 1 will be used. If both are set to e.g. 0.5 the result is an opacity of 0.25.

[c73b47]: Merge branch 'bug-8292-LutOpacity'

Merged commits:

2011-11-25 10:30:25 Thomas Kilgus [947a50]
Combined LUT opacity with global opacity.