class Colix3D
extends java.lang.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
Modifier and Type | Field and Description |
---|---|
private static int[] |
argbs |
private static int[] |
argbsGreyscale |
private static int[][] |
ashades |
private static int[][] |
ashadesGreyscale |
private static Int2IntHash |
colixHash |
private static int |
colixMax |
(package private) static int[] |
predefinedArgbs |
private static int |
RAW_RGB_INT |
Constructor and Description |
---|
Colix3D() |
Modifier and Type | Method and Description |
---|---|
(package private) static int |
allocateColix(int argb) |
private static void |
calcArgbsGreyscale() |
(package private) static void |
flushShades() |
(package private) static int |
getArgb(short colix) |
(package private) static int |
getArgbGreyscale(short colix) |
(package private) static short |
getColix(int argb) |
(package private) static int[] |
getShades(int argb,
boolean asGrey) |
(package private) static int[] |
getShades(short colix) |
(package private) static int[] |
getShadesGreyscale(short colix) |
private static int colixMax
private static int[] argbs
private static int[] argbsGreyscale
private static int[][] ashades
private static int[][] ashadesGreyscale
private static final Int2IntHash colixHash
private static final int RAW_RGB_INT
static final int[] predefinedArgbs
static short getColix(int argb)
static int allocateColix(int argb)
private static void calcArgbsGreyscale()
static final int getArgb(short colix)
static final int getArgbGreyscale(short colix)
static final int[] getShades(int argb, boolean asGrey)
static final int[] getShades(short colix)
static final int[] getShadesGreyscale(short colix)
static final void flushShades()