|
Rings Version 0.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectthreeD.raytracer.textures.StripeTexture
The StripeTexture object can be used to stripe a surface.
| Nested Class Summary |
| Nested classes inherited from class threeD.raytracer.util.Editable |
Editable.Selection |
| Constructor Summary | |
StripeTexture()
Constructs a StripeTexture object that can be used to stripe a surface. |
|
StripeTexture(java.lang.Object[] props)
Constructs a StripeTexture object using the specified properties. |
|
| Method Summary | |
RGB |
evaluate(java.lang.Object[] args)
Produces a color using the specified arguments. |
RGB |
getColorAt(Vector point)
Returns the color of the texture represented by this Texture object at the specified point as an RGB object using the arguments stored by this Texture object. |
RGB |
getColorAt(Vector point,
java.lang.Object[] props)
Returns the color of the texture represented by this Texture object at the specified point as an RGB object using the specified arguments. |
Producer[] |
getInputPropertyValues()
|
java.lang.String[] |
getPropertyDescriptions()
Returns an array of String objects with descriptions for each editable property of this Editable object. |
java.lang.String[] |
getPropertyNames()
Returns an array of String objects with names for each editable property of this Editable object. |
java.lang.Class[] |
getPropertyTypes()
Returns an array of Class objects representing the class types of each editable property of this Editable object. |
java.lang.Object[] |
getPropertyValues()
Returns the values of the properties of this Editable object as an Object array. |
void |
setInputPropertyValue(int index,
Producer p)
Sets the values of properties of this HighlightShader object to those specified. |
void |
setPropertyValue(java.lang.Object value,
int index)
Sets the value of the property of this StripeTexture object at the specified index to the specified value. |
void |
setPropertyValues(java.lang.Object[] values)
Sets the values of properties of this StripeTexture object to those specified. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StripeTexture()
public StripeTexture(java.lang.Object[] props)
| Method Detail |
public RGB getColorAt(Vector point)
Texture
getColorAt in interface Texture
public RGB getColorAt(Vector point,
java.lang.Object[] props)
Texture
getColorAt in interface Texturejava.lang.IllegalArgumentException - If one of the objects specified is not of the correct type.public RGB evaluate(java.lang.Object[] args)
ColorProducer
evaluate in interface ColorProducerargs - Arguments.
java.lang.IllegalArgumentException - If args does not contain the correct object types.ColorProducer.evaluate(java.lang.Object[])public java.lang.String[] getPropertyNames()
Editable
getPropertyNames in interface Editablepublic java.lang.String[] getPropertyDescriptions()
Editable
getPropertyDescriptions in interface Editablepublic java.lang.Class[] getPropertyTypes()
Editable
getPropertyTypes in interface Editablepublic java.lang.Object[] getPropertyValues()
Editable
getPropertyValues in interface Editable
public void setPropertyValue(java.lang.Object value,
int index)
setPropertyValue in interface Editablejava.lang.IllegalArgumentException - If the object specified is not of the correct type.
java.lang.IndexOutOfBoundsException - If the index specified does not correspond to an editable property of this
StripeTexture object.public void setPropertyValues(java.lang.Object[] values)
setPropertyValues in interface Editablejava.lang.IllegalArgumentException - If one of the objects specified is not of the correct type.
(Note: none of the values after the erroneous value will be set)
java.lang.IndexOutOfBoundsException - If the length of the specified array is longer than permitted.public 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.
java.lang.IllegalArgumentException - If the Producer object specified is not of the correct type.
java.lang.IndexOutOfBoundsException - If the index > 1.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 | |||||||||