public sealed class LabCube : AbstractColourCube
Implementation of ColourCube for the CIE L*a*b* model.

Constructors

LabCube

#
public LabCube(Colour colour)
Create a new LAB cube centered on a specific colour.
colour (Colour)

Properties

Colour

public Colour Colour { get; }
inherited fromAbstractColourCube
Colour

Coordinate

public Point4d Coordinate { get; }
inherited fromAbstractColourCube

Filter

#
public override NamedPalette Filter { get; set; }

Format

#
public override string Format { get; }
Format the current model.

Icon

#
public override IIcon Icon { get; }

Nomen

public Nomen Nomen { get; }
inherited fromAbstractColourCube
Nomen

Pivot

public PointF Pivot { get; }
inherited fromAbstractColourCube

Slice

public RectangleF Slice { get; }
inherited fromAbstractColourCube

Zoom

public float Zoom { get; }
inherited fromAbstractColourCube

Methods

AssignCubeState

protected void AssignCubeState(Point4d point, Colour colour)
Most-derived type constructor invoke.
inherited fromAbstractColourCube
point (Point4d)New point.
colour (Colour)New colour.
Must return new instance of the derived type.

Draw

public void Draw(Context context, RectangleF bounds, ColourModelVisuals visuals)
Render this cube into a graphics context.
inherited fromAbstractColourCube
context (Context)Graphics context.
bounds (RectangleF)Target bounds. The height of the bounds is assumed to be the same as the width.
visuals (ColourModelVisuals)Drawing properties.
Draw

GetChannels

#
public override void GetChannels(out UiNumber channel1, out UiNumber channel2, out UiNumber channel3)
Gets the channel values of the current space.
channel1 (out UiNumber)Properties of first channel.
channel2 (out UiNumber)Properties of second channel.
channel3 (out UiNumber)Properties of third channel.

GetTexture

#
protected override IMultiResolutionTexture GetTexture()
Gets the texture for the current projection.

SetChannels

#
public override void SetChannels(UiNumber channel1, UiNumber channel2, UiNumber channel3)
Sets the three channel values.
channel1 (UiNumber)First channel.
channel2 (UiNumber)Second channel.
channel3 (UiNumber)Third channel.
True if new channels were successfully applied, false if some rounding/clipping was required.

SetColour

public void SetColour(Colour colour)
inherited fromAbstractColourCube
colour (Colour)
SetColour

ToColour

#
protected override Colour ToColour(Point4d point)
Convert from cube coordinate to colour.
point (Point4d)

ToPoint

#
protected override Point4d ToPoint(Colour colour)
Convert from colour to cube coordinate.
colour (Colour)