org.jmol.g3d

Class Colix3D

class Colix3D extends Object

Implements a color index model using a colix as a COLor IndeX.

A colix is a color index represented as a short int.

The value 0 is considered a null value ... for no color. In Jmol this generally means that the value is inherited from some other object.

The value 1 is used to indicate that color only is to be inherited. 0x0001 INHERIT_OPAQUE -- opaque, but with the color coming from the parent. 0x4001 INHERIT_TRANSLUCENT -- translucent but with the color coming from the parent. The value 2 is used to indicate that one of the palettes is to be used. 0x0002 PALETTE, opaque 0x4002 PALETTE, translucent Palettes themselves are coded separately in a Palette ID that is tracked with

Author: Miguel, miguel@jmol.org

Field Summary
static int[]argbs
static int[]argbsGreyscale
static int[][]ashades
static int[][]ashadesGreyscale
static Int2IntHashcolixHash
static intcolixMax
static int[]predefinedArgbs
Constructor Summary
Colix3D()
Method Summary
static intallocateColix(int argb)
static voidcalcArgbsGreyscale()
static voidflushShades()
static intgetArgb(short colix)
static intgetArgbGreyscale(short colix)
static shortgetColix(int argb)
static int[]getShades(short colix)
static int[]getShadesGreyscale(short colix)

Field Detail

argbs

private static int[] argbs

argbsGreyscale

private static int[] argbsGreyscale

ashades

private static int[][] ashades

ashadesGreyscale

private static int[][] ashadesGreyscale

colixHash

private static final Int2IntHash colixHash

colixMax

private static int colixMax

predefinedArgbs

static final int[] predefinedArgbs

Constructor Detail

Colix3D

Colix3D()

Method Detail

allocateColix

private static int allocateColix(int argb)

calcArgbsGreyscale

private static void calcArgbsGreyscale()

flushShades

static final void flushShades()

getArgb

static final int getArgb(short colix)

getArgbGreyscale

static final int getArgbGreyscale(short colix)

getColix

static short getColix(int argb)

getShades

static final int[] getShades(short colix)

getShadesGreyscale

static final int[] getShadesGreyscale(short colix)