Class ColoredPoint

This object defines a single control point on a transfer function.

Hierarchy

  • ColoredPoint

Index

Constructors

constructor

  • Copy constructor.

    Parameters

    Returns ColoredPoint

  • Constructs a new ColoredPoint

    Parameters

    • x: number

      Location of the point in dataset units.

    • color: Color

      A Fovia.Util.Color object representing the color and opacity of the point. RGB color components are stored in a range from 0 to 255. The opacity of the point is stored in the alpha component and has a range of 0 (fully transparent) to 1 (fully opaque).

    • lighting: boolean

      Set to true if lighting is enabled for this point, set to false otherwise.

    Returns ColoredPoint

Properties

color

color: Color

A Fovia.Util.Color object representing the color and opacity of the point. RGB color components are stored in a range from 0 to 255. The opacity of the point is stored in the alpha component and has a range of 0 (fully transparent) to 1 (fully opaque).

lighting

lighting: boolean

true if lighting is enabled for this point, false otherwise.

name

name: string = "ColoredPoint"

x

x: number

Location of the point in dataset units.

Static disableLighting

disableLighting: boolean = false

Predefined constant to disable lighting.

Static enableLighting

enableLighting: boolean = true

Predefined constant to enable lighting.

Methods

toString

  • toString(): string
  • Returns string