|
Rings Version 0.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectthreeD.raytracer.shaders.DiffuseShader
A DiffuseShader object provides a shading method for diffuse surfaces. The DiffuseShader class uses a lambertian shading algorithm.
| Nested Class Summary |
| Nested classes inherited from class threeD.raytracer.util.Editable |
Editable.Selection |
| Field Summary | |
static boolean |
produceOutput
|
| Constructor Summary | |
DiffuseShader()
Constructs a new DiffuseShader object. |
|
| Method Summary | |
RGB |
evaluate(java.lang.Object[] args)
Produces a color using the specified arguments. |
Producer[] |
getInputPropertyValues()
|
java.lang.String[] |
getPropertyDescriptions()
Returns a zero length array. |
java.lang.String[] |
getPropertyNames()
Returns a zero length array. |
java.lang.Class[] |
getPropertyTypes()
Returns a zero length array. |
java.lang.Object[] |
getPropertyValues()
Returns a zero length array. |
void |
setInputPropertyValue(int index,
Producer p)
Does nothing. |
void |
setPropertyValue(java.lang.Object value,
int index)
Sets the value of the property of this Editable object at the specified index to the specified value. |
void |
setPropertyValues(java.lang.Object[] values)
Does nothing. |
RGB |
shade(ShaderParameters p)
Method specified by the Shader interface. |
java.lang.String |
toString()
Returns "Diffuse Shader". |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static boolean produceOutput
| Constructor Detail |
public DiffuseShader()
| Method Detail |
public RGB shade(ShaderParameters p)
shade in interface Shaderpublic RGB evaluate(java.lang.Object[] args)
ColorProducer
evaluate in interface ColorProducerargs - Arguments.
java.lang.IllegalArgumentException - If args[0] is not a ShaderParameters object.public java.lang.String[] getPropertyNames()
getPropertyNames in interface Editablepublic java.lang.String[] getPropertyDescriptions()
getPropertyDescriptions in interface Editablepublic java.lang.Class[] getPropertyTypes()
getPropertyTypes in interface Editablepublic java.lang.Object[] getPropertyValues()
getPropertyValues in interface Editable
public void setPropertyValue(java.lang.Object value,
int index)
Editable
setPropertyValue in interface Editablejava.lang.IndexOutOfBoundsExceptionpublic void setPropertyValues(java.lang.Object[] values)
setPropertyValues in interface Editablepublic Producer[] getInputPropertyValues()
getInputPropertyValues in interface Editable
public void setInputPropertyValue(int index,
Producer p)
setInputPropertyValue in interface Editableindex - Index of input property (array index from this.getInputPropertyValue).p - Producer object to use for input property.public java.lang.String toString()
|
Rings Version 0.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||