public class TLcdLookupTable extends Object
sizes
. Each
entry has getComponentCount()
components of a specific type
. The
values that lie between the table entries are computed depending on the ELcdInterpolationType
.
The entries in the data buffer
are first ordered along the first dimension,
then along the second (if it exists), and so on. The components of an entry are consecutive.
You can use the builder
to conveniently create a lookup table.Modifier and Type | Class and Description |
---|---|
static class |
TLcdLookupTable.Builder
Builder for lookup tables.
|
static class |
TLcdLookupTable.ComponentType
An enumeration that defines the type of a component.
|
Constructor and Description |
---|
TLcdLookupTable(int[] aDimensions,
int aComponentCount,
TLcdLookupTable.ComponentType aComponentType,
ELcdInterpolationType aInterpolation,
Buffer aData)
Creates a lookup table with user-defined settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getComponentCount()
The number of components for a single entry in the table.
|
TLcdLookupTable.ComponentType |
getComponentType()
The type of a component.
|
Buffer |
getData()
Returns the buffer with the table data.
|
int |
getDimensionCount()
Returns the number of dimensions of the lookup table.
|
ELcdInterpolationType |
getInterpolation()
Returns the type of interpolation that is used for evaluating values that lie between table
entries.
|
ILcdInterval |
getInterval()
Returns the interval of values that should be mapped on the table data.
|
int |
getSize(int aDimension)
Returns the size of the table along the specified dimension.
|
int |
hashCode() |
static TLcdLookupTable.Builder |
newBuilder()
Creates a new builder with the default values.
|
String |
toString() |
public TLcdLookupTable(int[] aDimensions, int aComponentCount, TLcdLookupTable.ComponentType aComponentType, ELcdInterpolationType aInterpolation, Buffer aData)
aDimensions
entries with each
aComponentCount
components of type aComponentType
.aDimensions
- the size of the table along each dimension, the table must have at least 1 dimension and all sizes must be greater than 0aComponentCount
- the number of components for a single entryaComponentType
- the type of a componentaInterpolation
- the interpolation type for the componentsaData
- the buffer that contains the datapublic int getDimensionCount()
public int getSize(int aDimension)
aDimension
- the dimension in [0, getDimensionCount()
[.aDimension
'th dimensionpublic int getComponentCount()
public TLcdLookupTable.ComponentType getComponentType()
public ELcdInterpolationType getInterpolation()
public Buffer getData()
public ILcdInterval getInterval()
null
if it is unknownpublic static TLcdLookupTable.Builder newBuilder()