AbstractColourBall
ReferencesRepresents 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
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.
Pivot
#Gets the centre point of the pivot. This field will be unset before the first paint.
public PointF Pivot { get; }
Methods
AssignSphereState
#Most-derived type constructor invoke.
protected void AssignSphereState()
Returns: 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.
Implements: Draw
Implements: RespondToMouseDown
Implements: RespondToMouseMove
Implements: RespondToMouseUp
SetChannels
#Sets the three channel values.
Returns: True if new channels were successfully applied, false if some rounding/clipping was required.
Implements: SetChannels