|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jbeans.j3d.data.AttributeArray
net.jbeans.j3d.data.LookupTable
LookupTable is an object that map scalar values into other scalar or vector values. This class is designed as a base class for derivation by other classes. The build() methods are abstract method and may require overloading in subclasses.
AttributeArray
Field Summary | |
protected net.jbeans.util.time.TimeStamp |
buildTime
|
protected net.jbeans.util.time.TimeStamp |
insertTime
|
protected int |
numberOfLookups
|
Fields inherited from class net.jbeans.j3d.data.AttributeArray |
data |
Constructor Summary | |
LookupTable(int dataType,
int dim)
|
|
LookupTable(int dataType,
int dim,
int size)
Construct with range=(0,1); and hsv ranges set up for rainbow color table (from red to blue). |
Method Summary | |
protected abstract void |
build()
Generate lookup table. |
int |
getNumberOfLookups()
|
double[] |
getTableRange()
|
double[] |
getTableValue(int id)
Return a value for the given index into the lookup table. |
void |
getTableValue(int id,
double[] value)
Return a rgba color value for the given index into the lookup table. |
double[] |
mapValue(double v)
Map one value through the lookup table. |
void |
mapValues(java.lang.Object input,
double[] output,
int numberOfValues,
int inputIncrement)
map a set of scalars through the lookup table |
void |
setNumberOfLookups(int number)
Set the number of colors in the lookup table. |
void |
setNumberOfTableValues(int number)
Specify the number of values (i.e., colors) in the lookup table. |
void |
setTableRange(double[] r)
Set/Get the minimum/maximum scalar values for scalar mapping. |
void |
setTableRange(double min,
double max)
|
void |
setTableValue(int indx,
double[] value)
Directly load values into lookup table. |
Methods inherited from class net.jbeans.j3d.data.AttributeArray |
allocate, copy, getData, getDataType, getDimension, initialize, makeObject, reset, setData, setDataType, setDataTypeToBit, setDataTypeToChar, setDataTypeToDouble, setDataTypeToFloat, setDataTypeToInt, setDataTypeToLong, setDataTypeToShort, setDataTypeToString, squeeze |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected net.jbeans.util.time.TimeStamp insertTime
protected net.jbeans.util.time.TimeStamp buildTime
protected int numberOfLookups
Constructor Detail |
public LookupTable(int dataType, int dim, int size)
public LookupTable(int dataType, int dim)
Method Detail |
protected abstract void build()
public void setNumberOfLookups(int number)
public int getNumberOfLookups()
public void setTableRange(double[] r) throws InvalidDataRangeException
InvalidDataRangeException
public void setTableRange(double min, double max) throws InvalidDataRangeException
InvalidDataRangeException
public double[] getTableRange()
public double[] mapValue(double v)
public void mapValues(java.lang.Object input, double[] output, int numberOfValues, int inputIncrement)
input
- an array of primitives (type, char, short, int, long, flost, double).public void setNumberOfTableValues(int number)
public void setTableValue(int indx, double[] value)
public double[] getTableValue(int id)
public void getTableValue(int id, double[] value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |