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, valueChangedgetClass, hashCode, notify, notifyAll, wait, wait, waitgetControl, getDescription, getGroup, getKeyFrames, getName, getNameGroupHashCode, getQualifiedName, getRepeatDirection, getRepeatMode, isValid, setDescription, setEventDispatcher, setGroup, setKeyFrames, setNameGroupHashCode, setRepeatDirection, setRepeatModevalueChangedpublic GLKeyboardUC(String name, org.synthclipse.core.parser.Control control)
public void applyUniformValue()
applyUniformValue in interface IUniformControlpublic void loadAllDefaults()
loadAllDefaults in interface IUniformControlpublic void loadDefaultValue()
loadDefaultValue in interface org.synthclipse.core.uniform.preset.IPresetValuepublic String toGLSLVariableDefinition()
toGLSLVariableDefinition in interface IGLUniformControlpublic void setUniformValue(Object value)
setUniformValue in interface IUniformControlpublic int getUnit()
public void setUnit(int unit)
public void setKeyboardTextureID(int texId)
public ControlType getControlType()
getControlType in interface IUniformControlpublic Class<GLKeyboardUC> getControlClass()
getControlClass in interface IUniformControlpublic boolean isActive()
isActive in interface IUniformControlisActive in class AbstractUniformControlpublic org.synthclipse.core.gl.GLSLUniform getUniform()
getUniform in interface IGLUniformControlpublic void setUniform(org.synthclipse.core.gl.GLSLUniform uniform)
setUniform in interface IGLUniformControlpublic org.synthclipse.core.gl.GLSLProgram getProgram()
getProgram in interface IGLUniformControlpublic void setProgram(org.synthclipse.core.gl.GLSLProgram program)
setProgram in interface IGLUniformControlpublic String getGLSLType()
getGLSLType in interface IGLUniformControlpublic String getProgramName()
getProgramName in interface IUniformControlgetProgramName in class AbstractUniformControlpublic Object getPresetValue()
org.synthclipse.core.uniform.preset.IPresetValuegetPresetValue in interface org.synthclipse.core.uniform.preset.IPresetValuepublic void setPresetValue(Object value)
org.synthclipse.core.uniform.preset.IPresetValuesetPresetValue in interface org.synthclipse.core.uniform.preset.IPresetValuepublic Object parsePresetValue(String text) throws org.synthclipse.core.parser.ParsingException
org.synthclipse.core.uniform.preset.IPresetValuetext 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.IPresetValueorg.synthclipse.core.parser.ParsingExceptionpublic Object getPresetDefaultValue()
org.synthclipse.core.uniform.preset.IPresetValuegetPresetDefaultValue in interface org.synthclipse.core.uniform.preset.IPresetValue