MeiCam SDK For Android
3.14.0
|
effect parameter information class, mainly the details of the effect parameters. More...
Public Member Functions | |
final int | getInteger (String name) |
Get the default value or range of values for the effect parameter of integer type. More... | |
final double | getFloat (String name) |
Get the default value or range of values for the effect parameter of float type. More... | |
final String | getString (String name) |
Get the string parameter and the default value or type of the effect parameter. More... | |
final Object | getObject (String name) |
Get the object of the menu parameter value. More... | |
final boolean | getBoolean (String name) |
Get the default value of the boolean type of the effect parameter. More... | |
Static Public Attributes | |
static final String | PARAM_NAME = "paramName" |
static final String | PARAM_TYPE = "paramType" |
static final String | PARAM_STRING_TYPE = "stringType" |
static final String | PARAM_STRING_DEF = "stringDef" |
static final String | PARAM_MENU_DEF_VAL = "menuDefVal" |
static final String | PARAM_MENU_ARRAY = "menuArray" |
Effect parameter type | |
static final String | PARAM_TYPE_INT = "INT" |
int type More... | |
static final String | PARAM_TYPE_FLOAT = "FLOAT" |
float type More... | |
static final String | PARAM_TYPE_BOOL = "BOOL" |
bool type More... | |
static final String | PARAM_TYPE_MENU = "MENU" |
menu type More... | |
static final String | PARAM_TYPE_STRING = "STRING" |
string type More... | |
static final String | PARAM_TYPE_COLOR = "COLOR" |
color type More... | |
static final String | PARAM_TYPE_POSITION2D = "POSITION2D" |
2D coordinates type More... | |
static final String | PARAM_TYPE_POSITION3D = "POSITION3D" |
3D coordinates type More... | |
static final String | PARAM_TYPE_ARBITRARY = "ARBITRARY" |
custom arbitrary data type More... | |
String parameter type | |
static final int | PARAM_STRING_TYPE_INVALID = -1 |
Invalid. More... | |
static final int | PARAM_STRING_TYPE_SINGLELINE = 0 |
Single line. More... | |
static final int | PARAM_STRING_TYPE_MULTILINE = 1 |
Multi-line. More... | |
static final int | PARAM_STRING_TYPE_FILEPATH = 2 |
File path. More... | |
static final int | PARAM_STRING_TYPE_DIRECTORYPATH = 3 |
Directory path. More... | |
static final int | PARAM_STRING_TYPE_LABEL = 4 |
Label. More... | |
The default value and value range of the effect parameter of integer type | |
static final String | PARAM_INT_DEF_VAL = "intDefVal" |
static final String | PARAM_INT_MIN_VAL = "intMinVal" |
static final String | PARAM_INT_MAX_VAL = "intMaxVal" |
The effect's float type parameter default value and value range | |
static final String | PARAM_FLOAT_DEF_VAL = "floatDefVal" |
static final String | PARAM_FLOAT_MIN_VAL = "floatMinVal" |
static final String | PARAM_FLOAT_MAX_VAL = "floatMaxVal" |
The effect's default boolean type parameter value | |
static final String | PARAM_BOOL_DEF_VAL = "boolDefVal" |
The effect's color type parameter value | |
static final String | PARAM_COLOR_DEF_R = "colorDefR" |
static final String | PARAM_COLOR_DEF_G = "colorDefG" |
static final String | PARAM_COLOR_DEF_B = "colorDefB" |
static final String | PARAM_COLOR_DEF_A = "colorDefA" |
The effect's 2D coordinates type default value | |
static final String | PARAM_POSITION2D_DEF_X = "position2DDefX" |
static final String | PARAM_POSITION2D_DEF_Y = "position2DDefY" |
The effect's 3D coordinates type default value | |
static final String | PARAM_POSITION3D_DEF_X = "position3DDefX" |
static final String | PARAM_POSITION3D_DEF_Y = "position3DDefY" |
static final String | PARAM_POSITION3D_DEF_Z = "position3DDefZ" |
effect parameter information class, mainly the details of the effect parameters.
|
inline |
Get the default value of the boolean type of the effect parameter.
name | The definition of the default value of the boolean value to be obtained,please refer toPARAM_BOOL_DEF_VAL |
|
inline |
Get the default value or range of values for the effect parameter of float type.
name | The name of the default value or range of value for the effect parameter of float type to be obtained |
For instance, setting PARAM_FLOAT_DEF_VAL means to obtain the default value of effect parameter of float type. PARAM_FLOAT_MIN_VAL indicates the minimum value of effect parameter of float type. PARAM_FLOAT_MAX_VAL indicates the maximum value of effect parameter of float type. When using the setFloatVal to set the effect parameter of float type, users need to set the value between the minimum and maximum values that obtained.
The default values of effect parameters of color, 2D coordinates, and 3D coordinates type can also be obtained via this method. Example: Sets PARAM_COLOR_DEF_R to get the value of the red attribute of color. Sets PARAM_POSITION2D_DEF_X to get the X value of 2D coordinates. Sets PARAM_POSITION3D_DEF_X to get the X value of 3D coordinates.
|
inline |
Get the default value or range of values for the effect parameter of integer type.
name | The name of the range of values for the effect parameter of integer type to be obtained |
For instance, setting PARAM_INT_DEF_VAL means to get the default value of effect parameter of integer type. PARAM_INT_MIN_VAL indicates the minimum value of effect parameter of integer type. PARAM_INT_MAX_VAL indicates the maximum value of effect parameter of integer type. When using the method setIntVal to get the integer value of the effect parameter, users need to set the integer value between the minimum and maximum values that obtained.
|
inline |
Get the object of the menu parameter value.
name | The definition of the menu parameter object to get,please refer toPARAM_MENU_ARRAY. |
|
inline |
Get the string parameter and the default value or type of the effect parameter.
name | The default value or type definition of the string parameter to be obtained |
Set PARAM_STRING_TYPE to get the type of the string parameter (type includesPARAM_STRING_TYPE_*). PARAM_STRING_DEF is the default value for getting string parameter. PARAM_MENU_DEF_VAL is the default value for getting menu parameter. PARAM_TYPE is the type of the effect parameter(type includesPARAM_TYPE_*). PARAM_NAME is the name of the effect parameter.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Directory path.
|
static |
File path.
|
static |
Invalid.
|
static |
Label.
|
static |
Multi-line.
|
static |
Single line.
|
static |
custom arbitrary data type
|
static |
bool type
|
static |
color type
|
static |
float type
|
static |
int type
|
static |
menu type
|
static |
2D coordinates type
|
static |
3D coordinates type
|
static |
string type