icc.lut
Class LookUpTable32

java.lang.Object
  |
  +--icc.lut.LookUpTable
        |
        +--icc.lut.LookUpTable32
Direct Known Subclasses:
LookUpTable32Gamma, LookUpTable32Interp, LookUpTable32LinearSRGBtoSRGB

abstract class LookUpTable32
extends LookUpTable

Toplevel class for a int [] lut.


Field Summary
protected  int dwMaxOutput
          Maximum output value of the LUT
 int[] lut
          the lut values.
 
Fields inherited from class icc.lut.LookUpTable
curve, dwNumInput, eol
 
Constructor Summary
protected LookUpTable32(ICCCurveType curve, int dwNumInput, int dwMaxOutput)
          Construct a 16 bit lut from a given curve.
protected LookUpTable32(int dwNumInput, int dwMaxOutput)
          Construct an empty 32 bit
 
Method Summary
static LookUpTable32 createInstance(ICCCurveType curve, int dwNumInput, int dwMaxOutput)
          Factory method for getting a 32 bit lut from a given curve.
 int elementAt(int index)
          lut accessor
 java.lang.String toString()
          Create an abbreviated string representation of a 16 bit lut.
 java.lang.String toStringWholeLut()
          Create the string representation of a 32 bit lut.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dwMaxOutput

protected final int dwMaxOutput
Maximum output value of the LUT


lut

public final int[] lut
the lut values.

Constructor Detail

LookUpTable32

protected LookUpTable32(int dwNumInput,
                        int dwMaxOutput)
Construct an empty 32 bit

Parameters:
dwNumInput - the size of the lut t lut.
dwMaxOutput - max output value of the lut

LookUpTable32

protected LookUpTable32(ICCCurveType curve,
                        int dwNumInput,
                        int dwMaxOutput)
Construct a 16 bit lut from a given curve.

Parameters:
curve - the data
dwNumInput - the size of the lut t lut.
dwMaxOutput - max output value of the lut
Method Detail

toString

public java.lang.String toString()
Create an abbreviated string representation of a 16 bit lut.

Overrides:
toString in class java.lang.Object
Returns:
the lut as a String

toStringWholeLut

public java.lang.String toStringWholeLut()
Create the string representation of a 32 bit lut.

Returns:
the lut as a String

createInstance

public static LookUpTable32 createInstance(ICCCurveType curve,
                                           int dwNumInput,
                                           int dwMaxOutput)
Factory method for getting a 32 bit lut from a given curve.

Parameters:
curve - the data
dwNumInput - the size of the lut
dwMaxOutput - max output value of the lut
Returns:
the lookup table

elementAt

public final int elementAt(int index)
lut accessor

Parameters:
index - of the element
Returns:
the lut [index]