public class ShaderParameter extends StyleParameter<Shader>
Shader
objects.Constructor and Description |
---|
ShaderParameter(String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static String[] |
getDefaultValues(int count)
Returns some suitable default values for a set of related
ShaderParameters.
|
String |
getName(Shader option)
Converts an option value object to a string which is used to identify
it as a string value of this parameter.
|
Shader |
shaderValue(Environment env)
Returns the value of this parameter as a Shader object.
|
getOptionList, getUsage, setUsage, stringifyOption
objectToString, setDefaultOption, stringToObject
addOption, addOption, choiceToString, clearOptions, getOption, getOptionNames, getOptions, getOptionValueList, stringToChoice
clearValue, getDescription, getName, getPosition, getPreferExplicit, getPrompt, getStringDefault, getValueClass, isNullPermitted, objectValue, setDescription, setDescription, setName, setNullPermitted, setPosition, setPreferExplicit, setPrompt, setStringDefault, setValue, setValueFromObject, setValueFromString, stringValue, toArray, toString
public ShaderParameter(String name)
name
- parameter namepublic Shader shaderValue(Environment env) throws TaskException
env
- execution environmentTaskException
public String getName(Shader option)
AbstractChoiceParameter
getName
in class AbstractChoiceParameter<Shader,Shader>
option
- option valuepublic static String[] getDefaultValues(int count)
count
- number of parameters to get defaults forCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.