public class GLMusicUC extends GLResourceUniformControl
| Modifier and Type | Field and Description |
|---|---|
static String |
SUPPORTED_EXTENSIONS |
GROUP_CAMERA, GROUP_DEFAULT, QUALIFIED_SEPARATOR| Constructor and Description |
|---|
GLMusicUC(String name,
org.synthclipse.core.parser.Control control,
String typeString) |
GLMusicUC(String name,
org.synthclipse.core.parser.Control control,
String typeString,
String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyUniformValue() |
void |
dispose(javax.media.opengl.GL gl) |
Class<GLMusicUC> |
getControlClass() |
ControlType |
getControlType() |
String |
getDefaultValue() |
String |
getPath() |
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.
|
int |
getUnit() |
boolean |
isActive() |
boolean |
isLoaded() |
void |
load(javax.media.opengl.GL gl) |
void |
loadAllDefaults() |
void |
loadDefaultValue() |
Object |
parsePresetValue(String text)
Parses String
text to a value that is displayed in an editor of the Uniform Control. |
File |
resolveFile(String path) |
void |
setDefaultValue(String defaultValue) |
void |
setLoaded(boolean loaded) |
void |
setMusicTextureID(int texId) |
void |
setPath(String path) |
void |
setPresetValue(Object value)
Sets a value that is displayed in an editor of the Uniform Control.
|
void |
setUniformValue(Object value) |
void |
setUnit(int unit) |
String |
toGLSLVariableDefinition()
Converts UniformControl to GLSL variable definition,
without "uniform" qualifier at the beginning.
|
String |
toString() |
getGLSLType, getProgram, getProgramName, getUniform, isValid, reset, setProgram, setUniform, setValidcalculateNameGroupHashCode, equals, getControl, getDescription, getGroup, getKeyFrames, getName, getNameGroupHashCode, getQualifiedName, getRepeatDirection, getRepeatMode, setDescription, setEventDispatcher, setGroup, setKeyFrames, setNameGroupHashCode, setRepeatDirection, setRepeatMode, triggerValueChangedEvent, valueChangedgetClass, hashCode, notify, notifyAll, wait, wait, waitgetControl, getDescription, getGroup, getKeyFrames, getName, getNameGroupHashCode, getQualifiedName, getRepeatDirection, getRepeatMode, setDescription, setEventDispatcher, setGroup, setKeyFrames, setNameGroupHashCode, setRepeatDirection, setRepeatModevalueChangedpublic static final String SUPPORTED_EXTENSIONS
public GLMusicUC(String name, org.synthclipse.core.parser.Control control, String typeString)
public void applyUniformValue()
public void loadAllDefaults()
public void loadDefaultValue()
public String getPath()
public void setPath(String path)
public String toGLSLVariableDefinition()
public void setUniformValue(Object value)
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public boolean isLoaded()
isLoaded in class GLResourceUniformControlpublic void setLoaded(boolean loaded)
setLoaded in class GLResourceUniformControlpublic int getUnit()
public void setUnit(int unit)
public void setMusicTextureID(int texId)
public void load(javax.media.opengl.GL gl)
throws org.synthclipse.core.SynthclipseException
load in class GLResourceUniformControlorg.synthclipse.core.SynthclipseExceptionpublic void dispose(javax.media.opengl.GL gl)
dispose in class GLResourceUniformControlpublic ControlType getControlType()
public boolean isActive()
isActive in interface IUniformControlisActive in class AbstractUniformControlpublic File resolveFile(String path) throws FileNotFoundException
FileNotFoundExceptionpublic Object getPresetValue()
org.synthclipse.core.uniform.preset.IPresetValuepublic void setPresetValue(Object value)
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)org.synthclipse.core.parser.ParsingExceptionpublic Object getPresetDefaultValue()
org.synthclipse.core.uniform.preset.IPresetValue