MeiCam SDK For Android  1.0.0
Public Member Functions | Static Public Attributes | List of all members
com.meicam.sdk.NvsFxDescription.ParamInfoObject Class Reference

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"
 

Detailed Description

Special effect parameter information class, mainly the details of the special effect parameters.

Member Function Documentation

final boolean com.meicam.sdk.NvsFxDescription.ParamInfoObject.getBoolean ( String  name)
inline

Gets the default value of the Boolean type of the effect parameter.

Parameters
nameThe definition of the default value of the Boolean value to be obtained,please refer toPARAM_BOOL_DEF_VAL
Returns
Returns the default value of the Boolean type of the effect parameter.
See also
com.meicam.sdk.NvsFx.setBooleanVal
final double com.meicam.sdk.NvsFxDescription.ParamInfoObject.getFloat ( String  name)
inline

Gets the default value or range of values for the effect parameter of float type.

Parameters
nameThe 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.

Returns
Returns the default or range of values of effect parameter of float type.
See also
com.meicam.sdk.NvsFx.setFloatVal
final int com.meicam.sdk.NvsFxDescription.ParamInfoObject.getInteger ( String  name)
inline

Gets the default value or range of values for the effect parameter of integer type.

Parameters
nameThe 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.

Returns
Returns the default or range of values for effect parameter of integer type.
See also
com.meicam.sdk.NvsFx.setIntVal
final Object com.meicam.sdk.NvsFxDescription.ParamInfoObject.getObject ( String  name)
inline

Gets the object of the menu parameter value.

Parameters
nameThe definition of the menu parameter object to get,please refer toPARAM_MENU_ARRAY.
Returns
Return the obtained menu parameter object
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.getString ( String  name)
inline

Gets the string parameter and the default value or type of the effect parameter.

Parameters
nameThe 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.

Returns
Returns the obtained string parameter and the default value or type of the effect parameter.
See also
com.meicam.sdk.NvsFx.setStringVal
com.meicam.sdk.NvsFx.setColorVal
com.meicam.sdk.NvsFx.setPosition2DVal

Member Data Documentation

final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_BOOL_DEF_VAL = "boolDefVal"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_COLOR_DEF_A = "colorDefA"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_COLOR_DEF_B = "colorDefB"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_COLOR_DEF_G = "colorDefG"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_COLOR_DEF_R = "colorDefR"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_FLOAT_DEF_VAL = "floatDefVal"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_FLOAT_MAX_VAL = "floatMaxVal"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_FLOAT_MIN_VAL = "floatMinVal"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_INT_DEF_VAL = "intDefVal"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_INT_MAX_VAL = "intMaxVal"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_INT_MIN_VAL = "intMinVal"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_MENU_ARRAY = "menuArray"
static

final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_MENU_DEF_VAL = "menuDefVal"
static

final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_NAME = "paramName"
static

final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_POSITION2D_DEF_X = "position2DDefX"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_POSITION2D_DEF_Y = "position2DDefY"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_POSITION3D_DEF_X = "position3DDefX"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_POSITION3D_DEF_Y = "position3DDefY"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_POSITION3D_DEF_Z = "position3DDefZ"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_STRING_DEF = "stringDef"
static

final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_STRING_TYPE = "stringType"
static

final int com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_STRING_TYPE_DIRECTORYPATH = 3
static

Directory path.

final int com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_STRING_TYPE_FILEPATH = 2
static

File path.

final int com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_STRING_TYPE_INVALID = -1
static

Invalid.

final int com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_STRING_TYPE_LABEL = 4
static

Label.

final int com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_STRING_TYPE_MULTILINE = 1
static

Multi-line.

final int com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_STRING_TYPE_SINGLELINE = 0
static

Single line.

final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_TYPE = "paramType"
static

final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_TYPE_BOOL = "BOOL"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_TYPE_COLOR = "COLOR"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_TYPE_FLOAT = "FLOAT"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_TYPE_INT = "INT"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_TYPE_MENU = "MENU"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_TYPE_POSITION2D = "POSITION2D"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_TYPE_POSITION3D = "POSITION3D"
static
final String com.meicam.sdk.NvsFxDescription.ParamInfoObject.PARAM_TYPE_STRING = "STRING"
static

The documentation for this class was generated from the following file: