public class GLKeyboardUC extends AbstractUniformControl implements IGLUniformControl
GROUP_CAMERA, GROUP_DEFAULT, QUALIFIED_SEPARATOR
Constructor and Description |
---|
GLKeyboardUC(String name,
org.synthclipse.core.parser.Control control) |
Modifier and Type | Method and Description |
---|---|
void |
applyUniformValue() |
Class<GLKeyboardUC> |
getControlClass() |
ControlType |
getControlType() |
String |
getGLSLType() |
Object |
getPresetDefaultValue()
Gets a default value that is displayed in an editor of the Uniform Control.
|
Object |
getPresetValue()
Gets a value that is displayed in an editor of the Uniform Control.
|
org.synthclipse.core.gl.GLSLProgram |
getProgram() |
String |
getProgramName() |
org.synthclipse.core.gl.GLSLUniform |
getUniform() |
int |
getUnit() |
boolean |
isActive() |
void |
loadAllDefaults() |
void |
loadDefaultValue() |
Object |
parsePresetValue(String text)
Parses String
text to a value that is displayed in an editor of the Uniform Control. |
void |
setKeyboardTextureID(int texId) |
void |
setPresetValue(Object value)
Sets a value that is displayed in an editor of the Uniform Control.
|
void |
setProgram(org.synthclipse.core.gl.GLSLProgram program) |
void |
setUniform(org.synthclipse.core.gl.GLSLUniform uniform) |
void |
setUniformValue(Object value) |
void |
setUnit(int unit) |
String |
toGLSLVariableDefinition()
Converts UniformControl to GLSL variable definition,
without "uniform" qualifier at the beginning.
|
String |
toString() |
calculateNameGroupHashCode, equals, getControl, getDescription, getGroup, getKeyFrames, getName, getNameGroupHashCode, getQualifiedName, getRepeatDirection, getRepeatMode, isValid, setDescription, setEventDispatcher, setGroup, setKeyFrames, setNameGroupHashCode, setRepeatDirection, setRepeatMode, triggerValueChangedEvent, valueChanged
getClass, hashCode, notify, notifyAll, wait, wait, wait
getControl, getDescription, getGroup, getKeyFrames, getName, getNameGroupHashCode, getQualifiedName, getRepeatDirection, getRepeatMode, isValid, setDescription, setEventDispatcher, setGroup, setKeyFrames, setNameGroupHashCode, setRepeatDirection, setRepeatMode
valueChanged
public GLKeyboardUC(String name, org.synthclipse.core.parser.Control control)
public void applyUniformValue()
applyUniformValue
in interface IUniformControl
public void loadAllDefaults()
loadAllDefaults
in interface IUniformControl
public void loadDefaultValue()
loadDefaultValue
in interface org.synthclipse.core.uniform.preset.IPresetValue
public String toGLSLVariableDefinition()
toGLSLVariableDefinition
in interface IGLUniformControl
public void setUniformValue(Object value)
setUniformValue
in interface IUniformControl
public int getUnit()
public void setUnit(int unit)
public void setKeyboardTextureID(int texId)
public ControlType getControlType()
getControlType
in interface IUniformControl
public Class<GLKeyboardUC> getControlClass()
getControlClass
in interface IUniformControl
public boolean isActive()
isActive
in interface IUniformControl
isActive
in class AbstractUniformControl
public org.synthclipse.core.gl.GLSLUniform getUniform()
getUniform
in interface IGLUniformControl
public void setUniform(org.synthclipse.core.gl.GLSLUniform uniform)
setUniform
in interface IGLUniformControl
public org.synthclipse.core.gl.GLSLProgram getProgram()
getProgram
in interface IGLUniformControl
public void setProgram(org.synthclipse.core.gl.GLSLProgram program)
setProgram
in interface IGLUniformControl
public String getGLSLType()
getGLSLType
in interface IGLUniformControl
public String getProgramName()
getProgramName
in interface IUniformControl
getProgramName
in class AbstractUniformControl
public Object getPresetValue()
org.synthclipse.core.uniform.preset.IPresetValue
getPresetValue
in interface org.synthclipse.core.uniform.preset.IPresetValue
public void setPresetValue(Object value)
org.synthclipse.core.uniform.preset.IPresetValue
setPresetValue
in interface org.synthclipse.core.uniform.preset.IPresetValue
public Object parsePresetValue(String text) throws org.synthclipse.core.parser.ParsingException
org.synthclipse.core.uniform.preset.IPresetValue
text
to a value that is displayed in an editor of the Uniform Control.
(e.g. float, Vector3, String)parsePresetValue
in interface org.synthclipse.core.uniform.preset.IPresetValue
org.synthclipse.core.parser.ParsingException
public Object getPresetDefaultValue()
org.synthclipse.core.uniform.preset.IPresetValue
getPresetDefaultValue
in interface org.synthclipse.core.uniform.preset.IPresetValue