AbstractColourCube

References
public abstract class AbstractColourCube : IColourSpace
Represents an immutable, generic colour cube with a normalised 4d coordinate. W is always assumed to represent transparency.

Constructors

AbstractColourCube

#
Create a new cube.
protected AbstractColourCube(
nomen,
point,
colour
)

Properties

Colour

#
public Colour Colour { get; }
Colour

Coordinate

#
public Point4d Coordinate { get; }

Cube

#
public BoxFAxo Cube { get; }

Filter

#
public abstract NamedPalette Filter { get; set; }
Filter

Format

#
public abstract string Format { get; }
Format

Icon

#
public abstract IIcon Icon { get; }
Icon

Nomen

#
public Nomen Nomen { get; }
Nomen

Pivot

#
public PointF Pivot { get; }

Slice

#
public RectangleF Slice { get; }

Zoom

#
public float Zoom { get; }

Methods

AssignCubeState

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

Draw

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

GetChannels

#
public abstract void GetChannels(
channel1,
channel2,
channel3
)
GetChannels

GetTexture

#
protected abstract IMultiResolutionTexture GetTexture()
Explicit

IColourSpace.RespondToMouseDown

#
object IColourSpace.RespondToMouseDown(
PointF
mouse,
MouseButtons
buttons
)
RespondToMouseDown
Explicit

IColourSpace.RespondToMouseMove

#
void IColourSpace.RespondToMouseMove(
mouseRecord,
PointF
mouse,
MouseButtons
buttons,
Keys
keys
)
RespondToMouseMove
Explicit

IColourSpace.RespondToMouseUp

#
void IColourSpace.RespondToMouseUp(
motionData,
PointF
mouse,
MouseButtons
buttons,
Keys
keys
)
RespondToMouseUp

SetChannels

#
public abstract void SetChannels(
channel1,
channel2,
channel3
)
SetChannels

SetColour

#
public void SetColour(
colour
)
SetColour

ToColour

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

ToPoint

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