pl.webnet.JaTrac
Class RandomColorMap
java.lang.Object
|
+--pl.webnet.JaTrac.Texture
|
+--pl.webnet.JaTrac.RandomColorMap
- All Implemented Interfaces:
- Indexable, XmlSettable
- class RandomColorMap
- extends Texture
Method Summary |
java.lang.String[] |
getAttachArray()
Get object's attach array. |
java.lang.String |
getName()
|
java.lang.String[] |
getParamArray()
Get object's parameter array. |
int |
getProperties()
|
java.lang.Object |
initialize()
Initialize object's internal state after setting all params from XML file. |
void |
setName(java.lang.String name)
|
pl.webnet.JaTrac.Vec |
updateNormal(pl.webnet.JaTrac.Vec n,
pl.webnet.JaTrac.Vec tan,
pl.webnet.JaTrac.Point uv)
|
pl.webnet.JaTrac.Spectrum |
updateSpectrum(pl.webnet.JaTrac.Spectrum s,
double u,
double v)
|
pl.webnet.JaTrac.Spectrum |
updateSpectrum(pl.webnet.JaTrac.Spectrum s,
pl.webnet.JaTrac.Point uv)
|
double |
updateTransparency(pl.webnet.JaTrac.Point uv)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEXTURE_NORMALVEC
public static final int TEXTURE_NORMALVEC
- See Also:
- Constant Field Values
TEXTURE_SPECTRUM
public static final int TEXTURE_SPECTRUM
- See Also:
- Constant Field Values
TEXTURE_TRANSPARENCY
public static final int TEXTURE_TRANSPARENCY
- See Also:
- Constant Field Values
index
static java.util.List index
name
java.lang.String name
RandomColorMap
public RandomColorMap()
updateSpectrum
public pl.webnet.JaTrac.Spectrum updateSpectrum(pl.webnet.JaTrac.Spectrum s,
double u,
double v)
getParamArray
public java.lang.String[] getParamArray()
- Description copied from interface:
XmlSettable
- Get object's parameter array. The array maps XML element names to variable
names and, if setting one variable is not enough, lists names of functions
to call.
- Returns:
- object's parameter array.
getAttachArray
public java.lang.String[] getAttachArray()
- Description copied from interface:
XmlSettable
- Get object's attach array. The array specifies what functions to call to
attach children nodes to this object.
- Returns:
- object's attach array.
initialize
public java.lang.Object initialize()
- Description copied from interface:
XmlSettable
- Initialize object's internal state after setting all params from XML file.
Called after element's end tag is encountered in XML file.
getProperties
public int getProperties()
- Overrides:
getProperties
in class Texture
updateNormal
public pl.webnet.JaTrac.Vec updateNormal(pl.webnet.JaTrac.Vec n,
pl.webnet.JaTrac.Vec tan,
pl.webnet.JaTrac.Point uv)
updateSpectrum
public pl.webnet.JaTrac.Spectrum updateSpectrum(pl.webnet.JaTrac.Spectrum s,
pl.webnet.JaTrac.Point uv)
updateTransparency
public double updateTransparency(pl.webnet.JaTrac.Point uv)
setName
public void setName(java.lang.String name)
getName
public java.lang.String getName()
- Specified by:
getName
in interface Indexable