com.threerings.probs
Class ColorFunctionVariable
java.lang.Object
com.threerings.util.DeepObject
com.threerings.probs.ColorFunctionVariable
- All Implemented Interfaces:
- Exportable, com.threerings.io.Streamable, Copyable, Cloneable
- Direct Known Subclasses:
- ColorFunctionVariable.Fixed, ColorFunctionVariable.VariableConstant, ColorFunctionVariable.VariableLinear
@EditorTypes(value={ColorFunctionVariable.Fixed.class,ColorFunctionVariable.VariableConstant.class,ColorFunctionVariable.VariableLinear.class},
label="mode")
public abstract class ColorFunctionVariable- extends DeepObject
- implements Exportable, com.threerings.io.Streamable
A ColorFunction random variable.
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
com.threerings.io.Streamable.Closure |
ColorFunctionVariable
public ColorFunctionVariable()
getValue
public abstract ColorFunction getValue(ColorFunction result)
- Computes a sample value according to the variable's distribution.
- Parameters:
result - an object to repopulate, if possible.
- Returns:
- either the result object, if it could be repopulated, or a new object
containing the result.
Copyright © 2011. All Rights Reserved.