HspBall
AbstractColourBallImplements AbstractColourSphere for the Hue-Saturation-Perceived Luminance model.
Constructors
Properties
Implements: 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.
Disc
Gets the boundary of the disc. This field will be unset before the first paint.
Implements: Nomen
Pivot
public PointF Pivot { get; }
Gets the centre point of the pivot. This field will be unset before the first paint.
PivotVisible
Gets whether the pivot is on the visible part of the sphere.
Zoom
Gets the zoom factor that was relevant during the most recent paint operation.
Methods
AssignSphereState
Most-derived type constructor invoke.
Parameters:
| point (Point4d) | New point. |
| colour (Colour) | New colour. |
| rotation (SphereRotation) | Rotation. |
Returns: Must return new instance of the derived type.
Draw
Render this sphere into a graphics context.
Parameters:
| context (Context) | Graphics context. |
| bounds (RectangleF) | Sphere bounds. |
| visuals (ColourModelVisuals) | Sphere drawing properties. |
Implements: Draw
GetChannels
#Gets the channel values of the current space.
Parameters:
| channel1 (out UiNumber) | Properties of first channel. |
| channel2 (out UiNumber) | Properties of second channel. |
| channel3 (out UiNumber) | Properties of third channel. |
Overrides: AbstractColourBall.GetChannels
SetChannels
#Sets the three channel values.
Parameters:
| channel1 (UiNumber) | First channel. |
| channel2 (UiNumber) | Second channel. |
| channel3 (UiNumber) | Third channel. |
Returns: True if new channels were successfully applied, false if some rounding/clipping was required.
Overrides: AbstractColourBall.SetChannels
SetColour
Modify the point of this cube to match a certain colour.
ToColour
#Convert from sphere coordinate to colour.
Parameters:
| point (Point4d) |
Overrides: AbstractColourBall.ToColour
ToPoint
#Convert from colour to sphere coordinate.
Parameters:
| colour (Colour) |
Overrides: AbstractColourBall.ToPoint