Page MenuHomePhabricator

Enhance ImageGLMapper2D to allow for hover and selection effects
Closed, ResolvedPublic

Description

Analogous to the PlanarFigureMapper, the ImageMapper2D shall be enhanced to support for hover and selection effect by means of the property-mechanism.

Event Timeline

Looks good. Just instead of writing

if (!smartPointer.IsNull())
{
}

you could use

if ( smartPointer.IsNotNull() )
{
}

which reduces the probability of anybody overlooking the "not".

[SVN revision 27366]
ENH (#5958): Enhance ImageGLMapper2D to allow for hover and selection effects
Analogous to the PlanarFigureMapper, the ImageMapper2D shall be enhanced to
support for hover and selection effect by means of the property-mechanism.

[SVN revision 27456]
ENH (#5958): Fixed ColorProperty bug where "selected" property is set, but no specific color is defined. Using default color, again.

Now the color of binary images is different between 2d and 3d paintings:

2D takes binaryimage.selectedcolor and color
3D takes color