org.jmol.g3d
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
Field Summary | |
---|---|
static int[] | argbs |
static int[] | argbsGreyscale |
static int[][] | ashades |
static int[][] | ashadesGreyscale |
static Int2IntHash | colixHash |
static int | colixMax |
static int[] | predefinedArgbs |
Constructor Summary | |
---|---|
Colix3D() |
Method Summary | |
---|---|
static int | allocateColix(int argb) |
static void | calcArgbsGreyscale() |
static void | flushShades() |
static int | getArgb(short colix) |
static int | getArgbGreyscale(short colix) |
static short | getColix(int argb) |
static int[] | getShades(short colix) |
static int[] | getShadesGreyscale(short colix) |