pl.webnet.JaTrac
Class Surface
java.lang.Object
|
+--pl.webnet.JaTrac.Surface
- All Implemented Interfaces:
- Indexable, XmlSettable
- class Surface
- extends java.lang.Object
- implements XmlSettable, Indexable
Constructor Summary |
Surface()
|
Surface(java.lang.String name,
double d,
double s,
double ss,
double r,
double t,
double ref,
double w)
|
Method Summary |
static pl.webnet.JaTrac.Surface |
averageSurfaces(java.util.Vector mappings)
|
java.lang.String[] |
getAttachArray()
Get object's attach array. |
java.lang.String |
getName()
|
java.lang.String[] |
getParamArray()
Get object's parameter array. |
java.lang.Object |
initialize()
Initialize object's internal state after setting all params from XML file. |
void |
setName(java.lang.String name)
|
void |
setSpecularSize(java.lang.String size)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
diffuseCoeff
double diffuseCoeff
specularCoeff
double specularCoeff
specularSizeCoeff
double specularSizeCoeff
reflectionCoeff
double reflectionCoeff
transmissionCoeff
double transmissionCoeff
refractionIndex
double refractionIndex
texture
pl.webnet.JaTrac.Texture texture
weight
double weight
index
static java.util.List index
name
java.lang.String name
Surface
public Surface()
Surface
public Surface(java.lang.String name,
double d,
double s,
double ss,
double r,
double t,
double ref,
double w)
setName
public void setName(java.lang.String name)
getName
public java.lang.String getName()
- Specified by:
getName
in interface Indexable
setSpecularSize
public void setSpecularSize(java.lang.String size)
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.
- Specified by:
getParamArray
in interface XmlSettable
- 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.
- Specified by:
getAttachArray
in interface XmlSettable
- 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.
- Specified by:
initialize
in interface XmlSettable
averageSurfaces
public static pl.webnet.JaTrac.Surface averageSurfaces(java.util.Vector mappings)