public sealed class HspBall : AbstractColourBall
Implements AbstractColourSphere for the Hue-Saturation-Perceived Luminance model.

Constructors

HspBall

#
public HspBall(Colour colour)
Create a new sphere.
colour (Colour)Initial colour of sphere.

Properties

Colour

public Colour Colour { get; }
Gets the colour currently selected.
inherited fromAbstractColourBall
Colour

Coordinate

public Point4d Coordinate { get; }
Gets or sets the sphere pivot location. The coordinate is normalised along all dimensions, with x representing the longitude, y the latitude, z the perpendicular and w the opacity.
inherited fromAbstractColourBall

Disc

public CircleF Disc { get; }
Gets the boundary of the disc. This field will be unset before the first paint.
inherited fromAbstractColourBall

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; }
Gets the description of this model.
inherited fromAbstractColourBall
Nomen

Pivot

public PointF Pivot { get; }
Gets the centre point of the pivot. This field will be unset before the first paint.
inherited fromAbstractColourBall

PivotVisible

public bool PivotVisible { get; }
Gets whether the pivot is on the visible part of the sphere.
inherited fromAbstractColourBall

Rotation

public SphereRotation Rotation { get; }
Gets the current rotation for this sphere.
inherited fromAbstractColourBall

Sphere

public Sphere Sphere { get; }
Gets the physical sphere.
inherited fromAbstractColourBall

Zoom

public float Zoom { get; }
Gets the zoom factor that was relevant during the most recent paint operation.
inherited fromAbstractColourBall

Methods

AssignSphereState

protected void AssignSphereState(Point4d point, Colour colour, SphereRotation rotation)
Most-derived type constructor invoke.
inherited fromAbstractColourBall
point (Point4d)New point.
colour (Colour)New colour.
rotation (SphereRotation)Rotation.
Must return new instance of the derived type.

Draw

public void Draw(Context context, RectangleF bounds, ColourModelVisuals visuals)
Render this sphere into a graphics context.
inherited fromAbstractColourBall
context (Context)Graphics context.
bounds (RectangleF)Sphere bounds.
visuals (ColourModelVisuals)Sphere 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)
Modify the point of this cube to match a certain colour.
inherited fromAbstractColourBall
colour (Colour)Colour to match.
Modified cube.
SetColour

ToColour

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

ToPoint

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