net.jbeans.j3d.data
Class DefaultColorLookupTable
java.lang.Object
net.jbeans.j3d.data.AttributeArray
net.jbeans.j3d.data.LookupTable
net.jbeans.j3d.data.DefaultColorLookupTable
- Direct Known Subclasses:
- ColorLookupTable
- public class DefaultColorLookupTable
- extends LookupTable
DefaultColorLookupTable is an object that maps
scalar values into rgba (red-green-blue-alpha transparency) color
specification, or rgba into scalar values. The color table can be created
by direct insertion of color values, or by specifying hue, saturation,
value, and alpha range and generating a table.
- Version:
- $Revision: 1.3 $
- Author:
- Masahiro Takatsuka (masa@jbeans.net)
- See Also:
LookupTable
Method Summary |
protected void |
build()
Generate lookup table. |
AttributeArray |
makeObject()
Virtual constructor creates object of same type as this object. |
Methods inherited from class net.jbeans.j3d.data.LookupTable |
getNumberOfLookups, getTableRange, getTableValue, getTableValue, mapValue, mapValues, setNumberOfLookups, setNumberOfTableValues, setTableRange, setTableRange, setTableValue |
Methods inherited from class net.jbeans.j3d.data.AttributeArray |
allocate, copy, getData, getDataType, getDimension, initialize, 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 |
DefaultColorLookupTable
public DefaultColorLookupTable(int dataType,
int dim,
int size)
- Construct with range=(0,1); and hsv ranges set up for rainbow color
table (from blue to red).
DefaultColorLookupTable
public DefaultColorLookupTable(int dataType,
int dim)
DefaultColorLookupTable
public DefaultColorLookupTable()
makeObject
public AttributeArray makeObject()
- Virtual constructor creates object of same type as this object.
- Specified by:
makeObject
in class AttributeArray
build
protected void build()
- Generate lookup table.
- Specified by:
build
in class LookupTable
Copyright © 1995-2004 net.jbeans. All Rights Reserved.