Modifier and Type | Class and Description |
---|---|
static class |
ParameterList.FloatParameter
Represents an array of floating point values.
|
static class |
ParameterList.InterpolationType |
protected static class |
ParameterList.Parameter |
Modifier and Type | Field and Description |
---|---|
protected FastHashMap<String,ParameterList.Parameter> |
list |
Constructor and Description |
---|
ParameterList()
Creates an empty ParameterList.
|
Modifier and Type | Method and Description |
---|---|
void |
addBoolean(String name,
boolean value)
Add the specified boolean as a parameter.
|
void |
addColor(String name,
Color value)
Add the specified color as a parameter.
|
void |
addFloat(String name,
float value)
Add the specified float as a parameter.
|
void |
addFloats(String name,
ParameterList.InterpolationType interp,
float[] data)
Add the specified floats as a parameter.
|
void |
addInteger(String name,
int value)
Add the specified integer as a parameter.
|
void |
addIntegerArray(String name,
int[] array)
Add the specified array of integers as a parameter.
|
void |
addMatrices(String name,
ParameterList.InterpolationType interp,
float[] data)
Add the specified matrices as a parameter.
|
void |
addPoints(String name,
ParameterList.InterpolationType interp,
float[] data)
Add the specified points as a parameter.
|
void |
addString(String name,
String value)
Add the specified string as a parameter.
|
void |
addStringArray(String name,
String[] array)
Add the specified array of integers as a parameter.
|
void |
addTexCoords(String name,
ParameterList.InterpolationType interp,
float[] data)
Add the specified texture coordinates as a parameter.
|
void |
addVectors(String name,
ParameterList.InterpolationType interp,
float[] data)
Add the specified vectors as a parameter.
|
void |
clear(boolean showUnused)
Clears the list of all its members.
|
boolean |
getBoolean(String name,
boolean defaultValue)
Get the specified boolean parameter from this list.
|
Color |
getColor(String name,
Color defaultValue)
Get the specified color parameter from this list.
|
float |
getFloat(String name,
float defaultValue)
Get the specified float parameter from this list.
|
ParameterList.FloatParameter |
getFloatArray(String name)
Get the specified float array parameter from this list.
|
int |
getInt(String name,
int defaultValue)
Get the specified integer parameter from this list.
|
int[] |
getIntArray(String name)
Get the specified integer array parameter from this list.
|
Matrix4 |
getMatrix(String name,
Matrix4 defaultValue)
Get the specified matrix parameter from this list.
|
ParameterList.FloatParameter |
getMatrixArray(String name)
Get the specified matrix array parameter from this list.
|
MovingMatrix4 |
getMovingMatrix(String name,
MovingMatrix4 defaultValue) |
Point3 |
getPoint(String name,
Point3 defaultValue)
Get the specified point parameter from this list.
|
ParameterList.FloatParameter |
getPointArray(String name)
Get the specified point array parameter from this list.
|
String |
getString(String name,
String defaultValue)
Get the specified string parameter from this list.
|
String[] |
getStringArray(String name,
String[] defaultValue)
Get the specified string array parameter from this list.
|
Point2 |
getTexCoord(String name,
Point2 defaultValue)
Get the specified texture coordinate parameter from this list.
|
ParameterList.FloatParameter |
getTexCoordArray(String name)
Get the specified texture coordinate array parameter from this list.
|
Vector3 |
getVector(String name,
Vector3 defaultValue)
Get the specified vector parameter from this list.
|
ParameterList.FloatParameter |
getVectorArray(String name)
Get the specified vector array parameter from this list.
|
void |
setFaceCount(int numFaces)
Setup how many faces should be used to check member count on "face"
interpolated parameters.
|
void |
setFaceVertexCount(int numFaceVerts)
Setup how many "face-vertices" should be used to check member count of
"facevarying" interpolated parameters.
|
void |
setVertexCount(int numVerts)
Setup how many vertices should be used to check member count of "vertex"
interpolated parameters.
|
protected final FastHashMap<String,ParameterList.Parameter> list
public void clear(boolean showUnused)
public void setFaceCount(int numFaces)
numFaces
- number of facespublic void setVertexCount(int numVerts)
numVerts
- number of verticespublic void setFaceVertexCount(int numFaceVerts)
numFaceVerts
- number of "face-vertices"public void addString(String name, String value)
null
values are
not permitted.name
- parameter namevalue
- parameter valuepublic void addInteger(String name, int value)
null
values are
not permitted.name
- parameter namevalue
- parameter valuepublic void addBoolean(String name, boolean value)
null
values are
not permitted.name
- parameter namevalue
- parameter valuepublic void addFloat(String name, float value)
null
values are
not permitted.name
- parameter namevalue
- parameter valuepublic void addColor(String name, Color value)
null
values are
not permitted.name
- parameter namevalue
- parameter valuepublic void addIntegerArray(String name, int[] array)
null
values are not permitted.name
- parameter namearray
- parameter valuepublic void addStringArray(String name, String[] array)
null
values are not permitted.name
- parameter namearray
- parameter valuepublic void addFloats(String name, ParameterList.InterpolationType interp, float[] data)
null
values are
not permitted.name
- parameter nameinterp
- interpolation typedata
- parameter valuepublic void addPoints(String name, ParameterList.InterpolationType interp, float[] data)
null
values are
not permitted.name
- parameter nameinterp
- interpolation typedata
- parameter valuepublic void addVectors(String name, ParameterList.InterpolationType interp, float[] data)
null
values are
not permitted.name
- parameter nameinterp
- interpolation typedata
- parameter valuepublic void addTexCoords(String name, ParameterList.InterpolationType interp, float[] data)
null
values are not permitted.name
- parameter nameinterp
- interpolation typedata
- parameter valuepublic void addMatrices(String name, ParameterList.InterpolationType interp, float[] data)
null
values are
not permitted.name
- parameter nameinterp
- interpolation typedata
- parameter valuepublic String getString(String name, String defaultValue)
name
- name of the parameterdefaultValue
- value to return if not foundpublic String[] getStringArray(String name, String[] defaultValue)
name
- name of the parameterdefaultValue
- value to return if not foundpublic int getInt(String name, int defaultValue)
name
- name of the parameterdefaultValue
- value to return if not foundpublic int[] getIntArray(String name)
name
- name of the parameternull
if
not foundpublic boolean getBoolean(String name, boolean defaultValue)
name
- name of the parameterdefaultValue
- value to return if not foundpublic float getFloat(String name, float defaultValue)
name
- name of the parameterdefaultValue
- value to return if not foundpublic Color getColor(String name, Color defaultValue)
name
- name of the parameterdefaultValue
- value to return if not foundpublic Point3 getPoint(String name, Point3 defaultValue)
name
- name of the parameterdefaultValue
- value to return if not foundpublic Vector3 getVector(String name, Vector3 defaultValue)
name
- name of the parameterdefaultValue
- value to return if not foundpublic Point2 getTexCoord(String name, Point2 defaultValue)
name
- name of the parameterdefaultValue
- value to return if not foundpublic Matrix4 getMatrix(String name, Matrix4 defaultValue)
name
- name of the parameterdefaultValue
- value to return if not foundpublic ParameterList.FloatParameter getFloatArray(String name)
name
- name of the parameternull
if
not foundpublic ParameterList.FloatParameter getPointArray(String name)
name
- name of the parameternull
if
not foundpublic ParameterList.FloatParameter getVectorArray(String name)
name
- name of the parameternull
if
not foundpublic ParameterList.FloatParameter getTexCoordArray(String name)
name
- name of the parameternull
if
not foundpublic ParameterList.FloatParameter getMatrixArray(String name)
name
- name of the parameternull
if
not foundpublic final MovingMatrix4 getMovingMatrix(String name, MovingMatrix4 defaultValue)
Copyright © 2018. All rights reserved.