MeiCam SDK For Android
1.0.0
|
Special effect parameter information class, mainly the details of the special effect parameters. More...
Public Member Functions | |
final int | getInteger (String name) |
Gets the default value or range of values for the effect parameter of integer type. More... | |
final double | getFloat (String name) |
Gets the default value or range of values for the effect parameter of float type. More... | |
final String | getString (String name) |
Gets the string parameter and the default value or type of the effect parameter. More... | |
final Object | getObject (String name) |
Gets the object of the menu parameter value. More... | |
final boolean | getBoolean (String name) |
Gets 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" |
static final String | PARAM_TYPE_FLOAT = "FLOAT" |
static final String | PARAM_TYPE_BOOL = "BOOL" |
static final String | PARAM_TYPE_MENU = "MENU" |
static final String | PARAM_TYPE_STRING = "STRING" |
static final String | PARAM_TYPE_COLOR = "COLOR" |
static final String | PARAM_TYPE_POSITION2D = "POSITION2D" |
static final String | PARAM_TYPE_POSITION3D = "POSITION3D" |
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 default value and value range of the effect parameter of float type | |
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 default value of the effect parameter of Boolean type | |
static final String | PARAM_BOOL_DEF_VAL = "boolDefVal" |
The default value of the effect parameter of color type | |
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 default value of the special effect of 2D coordinates type | |
static final String | PARAM_POSITION2D_DEF_X = "position2DDefX" |
static final String | PARAM_POSITION2D_DEF_Y = "position2DDefY" |
The default value of the special effect of 3D coordinates type | |
static final String | PARAM_POSITION3D_DEF_X = "position3DDefX" |
static final String | PARAM_POSITION3D_DEF_Y = "position3DDefY" |
static final String | PARAM_POSITION3D_DEF_Z = "position3DDefZ" |
Special effect parameter information class, mainly the details of the special effect parameters.
|
inline |
Gets 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 |
Gets 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 |
Gets 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 |
Gets the object of the menu parameter value.
name | The definition of the menu parameter object to get,please refer toPARAM_MENU_ARRAY. |
|
inline |
Gets 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 |
Sets 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 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |