|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.TextureParameter
public class TextureParameter
This class describes a parameter which affects the appearance of an object, and can vary over the object's surface. Every parameter is described by a name, the Texture which it belongs to, and the min, max, and default values.
Field Summary | |
---|---|
double |
defaultVal
|
int |
identifier
|
double |
maxVal
|
double |
minVal
|
java.lang.String |
name
|
static int |
NORMAL_PARAMETER
|
java.lang.Object |
owner
|
int |
type
|
static int |
X_COORDINATE
|
static int |
Y_COORDINATE
|
static int |
Z_COORDINATE
|
Constructor Summary | |
---|---|
TextureParameter(java.lang.Object owner,
java.lang.String name,
double minVal,
double maxVal,
double defaultVal)
|
Method Summary | |
---|---|
void |
assignNewID()
Assign a new ID number to this parameter. |
TextureParameter |
duplicate()
|
TextureParameter |
duplicate(java.lang.Object owner)
Create a TextureParameter which is a duplicate of an existing one, but with a different owner. |
boolean |
equals(java.lang.Object o)
|
Widget |
getEditingWidget(double currentValue)
Get a Widget which can be used to select a value for this parameter. |
static int |
getUniqueID()
Get a unique ID number which can be assigned to a parameter. |
int |
hashCode()
|
void |
setID(int newid)
Set the ID number for this parameter. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.lang.Object owner
public final java.lang.String name
public final double minVal
public final double maxVal
public final double defaultVal
public int identifier
public int type
public static final int NORMAL_PARAMETER
public static final int X_COORDINATE
public static final int Y_COORDINATE
public static final int Z_COORDINATE
Constructor Detail |
---|
public TextureParameter(java.lang.Object owner, java.lang.String name, double minVal, double maxVal, double defaultVal)
Method Detail |
---|
public TextureParameter duplicate()
public TextureParameter duplicate(java.lang.Object owner)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void assignNewID()
public static int getUniqueID()
public void setID(int newid)
public Widget getEditingWidget(double currentValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |