|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.j3d.threeD.raytracer.textures.StripeTexture
public class StripeTexture
The StripeTexture object can be used to stripe a surface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.sf.j3d.threeD.raytracer.util.Editable |
|---|
Editable.Selection |
| Field Summary | |
|---|---|
static int |
XAxis
|
static int |
YAxis
|
static int |
ZAxis
|
| Constructor Summary | |
|---|---|
StripeTexture()
Constructs a StripeTexture object that can be used to stripe a surface. |
|
StripeTexture(Object[] props)
Constructs a StripeTexture object using the specified properties. |
|
| Method Summary | |
|---|---|
RGB |
evaluate(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,
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()
|
String[] |
getPropertyDescriptions()
Returns an array of String objects with descriptions for each editable property of this Editable object. |
String[] |
getPropertyNames()
Returns an array of String objects with names for each editable property of this Editable object. |
Class[] |
getPropertyTypes()
Returns an array of Class objects representing the class types of each editable property of this Editable object. |
Object[] |
getPropertyValues()
Returns the values of the properties of this Editable object as an Object array. |
void |
setAxis(int axis)
|
void |
setFirstColor(RGB color)
|
void |
setInputPropertyValue(int index,
Producer p)
Sets the values of properties of this HighlightShader object to those specified. |
void |
setOffset(double off)
|
void |
setPropertyValue(Object value,
int index)
Sets the value of the property of this StripeTexture object at the specified index to the specified value. |
void |
setPropertyValues(Object[] values)
Sets the values of properties of this StripeTexture object to those specified. |
void |
setSecondColor(RGB color)
|
void |
setSmooth(boolean s)
|
void |
setStripeWidth(double w)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int XAxis
public static final int YAxis
public static final int ZAxis
| Constructor Detail |
|---|
public StripeTexture()
public StripeTexture(Object[] props)
| Method Detail |
|---|
public RGB getColorAt(Vector point)
Texture
getColorAt in interface Texture
public RGB getColorAt(Vector point,
Object[] props)
Texture
getColorAt in interface TextureIllegalArgumentException - If one of the objects specified is not of the correct type.public RGB evaluate(Object[] args)
ColorProducer
evaluate in interface ColorProducerargs[] - {point, arg0, arg1, ...}
IllegalArgumentException - If args does not contain the correct object types.ColorProducer.evaluate(java.lang.Object[])public String[] getPropertyNames()
Editable
getPropertyNames in interface Editablepublic String[] getPropertyDescriptions()
Editable
getPropertyDescriptions in interface Editablepublic Class[] getPropertyTypes()
Editable
getPropertyTypes in interface Editablepublic Object[] getPropertyValues()
Editable
getPropertyValues in interface Editable
public void setPropertyValue(Object value,
int index)
setPropertyValue in interface EditableIllegalArgumentException - If the object specified is not of the correct type.
IndexOutOfBoundsException - If the index specified does not correspond to an editable property of this
StripeTexture object.public void setPropertyValues(Object[] values)
setPropertyValues in interface EditableIllegalArgumentException - If one of the objects specified is not of the correct type.
(Note: none of the values after the erroneous value will be set)
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.
IllegalArgumentException - If the Producer object specified is not of the correct type.
IndexOutOfBoundsException - If the index > 1.public void setStripeWidth(double w)
public void setSmooth(boolean s)
public void setAxis(int axis)
public void setFirstColor(RGB color)
public void setSecondColor(RGB color)
public void setOffset(double off)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||