AbstractColourBall

References
public abstract class AbstractColourBall : IColourSpace
Represents an immutable, generic colour sphere with a normalised 4d coordinate. X equals longitude and ranges from zero to 360, Y equals latitude and ranges from -90 to +90, Z is a normalised perpendicular dimension used only by the texture cache, and W is always assumed to represent transparency.

Constructors

AbstractColourBall

#
Create a new sphere.
protected AbstractColourBall(
nomen,
Description of ball.
point,
Sphere coordinate.
colour,
Colour associated with coordinate.
rotation = null
Optional rotation.
)

Properties

Colour

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

Coordinate

#
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.
public Point4d Coordinate { get; }

Disc

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

Filter

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

Format

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

Icon

#
public abstract IIcon Icon { get; }
Icon

Nomen

#
Gets the description of this model.
public Nomen Nomen { get; }
Nomen

Pivot

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

PivotVisible

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

Rotation

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

Sphere

#
Gets the physical sphere.
public Sphere Sphere { get; }

Zoom

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

Methods

AssignSphereState

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

Draw

#
Render this sphere into a graphics context.
public void Draw(
context,
Graphics context.
RectangleF
bounds,
Sphere bounds.
visuals
Sphere drawing properties.
)
Draw

GetChannels

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

GetTexture

#
Gets the texture for the current projection.
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

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

SetColour

#
Modify the point of this cube to match a certain colour.
public void SetColour(
colour
Colour to match.
)
Modified cube.
SetColour

ToColour

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

ToPoint

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