get_param_typesT_get_param_typesGetParamTypesGetParamTypesget_param_types (Operator)

Name

get_param_typesT_get_param_typesGetParamTypesGetParamTypesget_param_types — Get default data type for the control parameters of a HALCON-operator.

Signature

get_param_types( : : OperatorName : InpCtrlParType, OutpCtrlParType)

Herror T_get_param_types(const Htuple OperatorName, Htuple* InpCtrlParType, Htuple* OutpCtrlParType)

void GetParamTypes(const HTuple& OperatorName, HTuple* InpCtrlParType, HTuple* OutpCtrlParType)

static HTuple HInfo::GetParamTypes(const HString& OperatorName, HTuple* OutpCtrlParType)

static HTuple HInfo::GetParamTypes(const char* OperatorName, HTuple* OutpCtrlParType)

static HTuple HInfo::GetParamTypes(const wchar_t* OperatorName, HTuple* OutpCtrlParType)   ( Windows only)

static void HOperatorSet.GetParamTypes(HTuple operatorName, out HTuple inpCtrlParType, out HTuple outpCtrlParType)

static HTuple HInfo.GetParamTypes(string operatorName, out HTuple outpCtrlParType)

def get_param_types(operator_name: str) -> Tuple[Sequence[str], Sequence[str]]

Description

The operator get_param_typesget_param_typesGetParamTypesGetParamTypesGetParamTypesget_param_types returns the default data type for each input and output control parameter. The default type of a parameter is the type used in “simple mode” in HALCON/C. This concerns parameters which allow more than one type as for example write_stringwrite_stringWriteStringWriteStringWriteStringwrite_string. Hereby the types of input parameters are combined in the variable InpCtrlParTypeInpCtrlParTypeInpCtrlParTypeInpCtrlParTypeinpCtrlParTypeinp_ctrl_par_type, whereas the types of output parameters are combined in the variable OutpCtrlParTypeOutpCtrlParTypeOutpCtrlParTypeOutpCtrlParTypeoutpCtrlParTypeoutp_ctrl_par_type. The following types are possible:

'integer'"integer""integer""integer""integer""integer":

an integer.

'integer tuple':

an integer or a tuple of integers.

'real'"real""real""real""real""real":

a floating point number.

'real tuple':

a floating point number or a tuple of floating point numbers.

'string'"string""string""string""string""string":

a string.

'string tuple':

a string or a tuple of strings.

'no_default'"no_default""no_default""no_default""no_default""no_default":

individual value of which the type cannot be determined.

'no_default tuple':

individual value or tuple of values of which the type cannot be determined.

'default'"default""default""default""default""default":

individual value of unknown type, whereby the systems assumes it to be an integer.

Execution Information

Parameters

OperatorNameOperatorNameOperatorNameOperatorNameoperatorNameoperator_name (input_control)  proc_name HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Name of the operator.

Default: 'get_param_types' "get_param_types" "get_param_types" "get_param_types" "get_param_types" "get_param_types"

InpCtrlParTypeInpCtrlParTypeInpCtrlParTypeInpCtrlParTypeinpCtrlParTypeinp_ctrl_par_type (output_control)  string-array HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Default type of the input control parameters.

OutpCtrlParTypeOutpCtrlParTypeOutpCtrlParTypeOutpCtrlParTypeoutpCtrlParTypeoutp_ctrl_par_type (output_control)  string-array HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Default type of the output control parameters.

Result

The operator get_param_typesget_param_typesGetParamTypesGetParamTypesGetParamTypesget_param_types returns the value 2 ( H_MSG_TRUE) if the parameters are correct and the helpfiles are availabe. Otherwise an exception is raised.

Possible Predecessors

get_keywordsget_keywordsGetKeywordsGetKeywordsGetKeywordsget_keywords, search_operatorsearch_operatorSearchOperatorSearchOperatorSearchOperatorsearch_operator, get_operator_nameget_operator_nameGetOperatorNameGetOperatorNameGetOperatorNameget_operator_name, get_operator_infoget_operator_infoGetOperatorInfoGetOperatorInfoGetOperatorInfoget_operator_info

Alternatives

get_param_infoget_param_infoGetParamInfoGetParamInfoGetParamInfoget_param_info

See also

get_param_namesget_param_namesGetParamNamesGetParamNamesGetParamNamesget_param_names, get_param_numget_param_numGetParamNumGetParamNumGetParamNumget_param_num, get_operator_infoget_operator_infoGetOperatorInfoGetOperatorInfoGetOperatorInfoget_operator_info, get_operator_nameget_operator_nameGetOperatorNameGetOperatorNameGetOperatorNameget_operator_name

Module

Foundation