artofillusion
Class TextureParameter

java.lang.Object
  extended by artofillusion.TextureParameter

public class TextureParameter
extends java.lang.Object

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

owner

public final java.lang.Object owner

name

public final java.lang.String name

minVal

public final double minVal

maxVal

public final double maxVal

defaultVal

public final double defaultVal

identifier

public int identifier

type

public int type

NORMAL_PARAMETER

public static final int NORMAL_PARAMETER
See Also:
Constant Field Values

X_COORDINATE

public static final int X_COORDINATE
See Also:
Constant Field Values

Y_COORDINATE

public static final int Y_COORDINATE
See Also:
Constant Field Values

Z_COORDINATE

public static final int Z_COORDINATE
See Also:
Constant Field Values
Constructor Detail

TextureParameter

public TextureParameter(java.lang.Object owner,
                        java.lang.String name,
                        double minVal,
                        double maxVal,
                        double defaultVal)
Method Detail

duplicate

public TextureParameter duplicate()

duplicate

public TextureParameter duplicate(java.lang.Object owner)
Create a TextureParameter which is a duplicate of an existing one, but with a different owner.


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

assignNewID

public void assignNewID()
Assign a new ID number to this parameter.


getUniqueID

public static int getUniqueID()
Get a unique ID number which can be assigned to a parameter.


setID

public void setID(int newid)
Set the ID number for this parameter. (Use with extreme caution!)


getEditingWidget

public Widget getEditingWidget(double currentValue)
Get a Widget which can be used to select a value for this parameter. This means either a ValueSlider (if the parameter has a finite range), or a ValueField with appropriate constraints set (if the range is unbounded on either end).



Copyright © 1999-2011 by Peter Eastman.