caLib_abstract.palette

This module defines the notion of a $(PALETTE). $(PALETTE)s abstract the process of determining how to render the cells in a $(LATTICE) by the $(RENDERER), Allowing for more customization. * It provides templates for testing whether a given object is a $(PALETTE), and what kind of $(PALETTE) it is. * $(CALIB_ABSTRACT_DESC) *

Members

Structs

ColorPalette
struct ColorPalette(Ct)

Example of a ColorPalette

Palette
struct Palette(Ct, Dv)

Example of a Palette

Templates

isAnyColorPalette
template isAnyColorPalette(T)

$(IS_ANY ColorPalette)

isAnyPalette
template isAnyPalette(T)

$(IS_ANY Palette)

isPalette
template isPalette(T, Ct, Dv)

Tests if something is a Palette. * Returns true if T is a Palette where Dv is the type of the value specifing how a $(RENDERER) should display a cell of type Ct * A Palette is the most basic for of a $(PALETTE) defining the primitives:
Dv getDisplayValue(string behaviour)(Ct cellState) and Dv getDisplayValue(Ct cellState) where Dv is the type of the value describing how the cell cellState of type Ct should be rendererd. *

Meta