|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSurfaceProperties
public class SurfaceProperties
A class to contain the surface properties of an object.
Constructor Summary | |
---|---|
SurfaceProperties()
|
|
SurfaceProperties(javax.vecmath.Color3f diff,
javax.vecmath.Color3f att,
double specCoeff,
double specExp,
double elecPerm,
double magPerm)
Constructs a SurfaceProperties object with the specified parameters. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a copy of the object. |
javax.vecmath.Color3f |
getAttenuation()
Returns the attenuation. |
javax.vecmath.Color3f |
getDiffuse()
Returns the diffuse color. |
double |
getElectricPermittivity()
Returns the electric permittivity. |
double |
getIndexOfRefraction()
Returns the index of refraction as defined by the electric permittivity and the magnetic permeability. |
double |
getMagneticPermeability()
Returns the magnetic permeability. |
double |
getSpecularCoefficient()
Returns the specular coefficient. |
double |
getSpecularExponent()
Returns the specular exponent. |
void |
setAttenuation(javax.vecmath.Color3f attenuation)
Sets the attenuation. |
void |
setDiffuse(javax.vecmath.Color3f diffuse)
Sets the diffuse color. |
void |
setElectricPermittivity(double electricPermittivity)
Sets the electric permittivity. |
void |
setMagneticPermeability(double magneticPermeability)
Sets the magnetic permeability. |
void |
setSpecularCoefficient(double specularCoefficient)
Sets the specular coefficient. |
void |
setSpecularExponent(double specularExponent)
Sets the specular exponent. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SurfaceProperties()
public SurfaceProperties(javax.vecmath.Color3f diff, javax.vecmath.Color3f att, double specCoeff, double specExp, double elecPerm, double magPerm)
SurfaceProperties
object with the specified parameters.
diff
- The diffuse color of the object.att
- The attenuation of a ray caused by the object.specCoeff
- The specular coefficient of the object.specExp
- The specular exponent of the object.elecPerm
- The electric permittivitty of the object.magPerm
- The magnetic permeability of the object.Method Detail |
---|
public java.lang.Object clone()
CloneableEx
clone
in interface CloneableEx
clone
in class java.lang.Object
public void setDiffuse(javax.vecmath.Color3f diffuse)
diffuse
- The diffuse color to set.public javax.vecmath.Color3f getDiffuse()
public void setAttenuation(javax.vecmath.Color3f attenuation)
attenuation
- The attenuation to set.public javax.vecmath.Color3f getAttenuation()
public void setSpecularCoefficient(double specularCoefficient)
specularCoefficient
- The specular coefficient to set.public double getSpecularCoefficient()
public void setSpecularExponent(double specularExponent)
specularExponent
- The specular exponent to set.public double getSpecularExponent()
public void setElectricPermittivity(double electricPermittivity)
electricPermittivity
- The electric permittivity to set.public double getElectricPermittivity()
public void setMagneticPermeability(double magneticPermeability)
magneticPermeability
- The magnetic permeability to set.public double getMagneticPermeability()
public double getIndexOfRefraction()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |