tuple_constanttuple_constantTupleConstantTupleConstanttuple_constant (Operator)

Name

tuple_constanttuple_constantTupleConstantTupleConstanttuple_constant — Generate a tuple with the value of a HDevelop language constant.

Signature

tuple_constant( : : Name : Value)

Herror tuple_constant(const char* Name, Hlong* Value)

Herror T_tuple_constant(const Htuple Name, Htuple* Value)

void TupleConstant(const HTuple& Name, HTuple* Value)

static HTuple HTuple::TupleConstant(const HTuple& Name)

static void HOperatorSet.TupleConstant(HTuple name, out HTuple value)

static HTuple HTuple.TupleConstant(HTuple name)

def tuple_constant(name: str) -> Union[float, int, HHandle]

Description

tuple_constanttuple_constantTupleConstantTupleConstantTupleConstanttuple_constant generates a new tuple with the value of a HDevelop language constant.

Attention

H_INT64_MIN and H_INT64_MAX will both produce an error if 32-bit HALCON is being used, as they cannot be represented in the then 32-bit integer used in tuples.

H_INT_MIN and H_INT_MAX will produce different values depending on whether HALCON 32- or 64-bit is being used.

Execution Information

Parameters

NameNameNameNamenamename (input_control)  tuple HTuplestrHTupleHtuple (string) (string) (HString) (char*)

The name of the HDevelop language constant as string.

Default value: 'H_INT32_MIN' "H_INT32_MIN" "H_INT32_MIN" "H_INT32_MIN" "H_INT32_MIN" "H_INT32_MIN"

List of values: 'HNULL'"HNULL""HNULL""HNULL""HNULL""HNULL", 'H_FLOAT32_EPSILON'"H_FLOAT32_EPSILON""H_FLOAT32_EPSILON""H_FLOAT32_EPSILON""H_FLOAT32_EPSILON""H_FLOAT32_EPSILON", 'H_FLOAT32_MAX'"H_FLOAT32_MAX""H_FLOAT32_MAX""H_FLOAT32_MAX""H_FLOAT32_MAX""H_FLOAT32_MAX", 'H_FLOAT32_MIN'"H_FLOAT32_MIN""H_FLOAT32_MIN""H_FLOAT32_MIN""H_FLOAT32_MIN""H_FLOAT32_MIN", 'H_FLOAT32_MIN_POSITIVE'"H_FLOAT32_MIN_POSITIVE""H_FLOAT32_MIN_POSITIVE""H_FLOAT32_MIN_POSITIVE""H_FLOAT32_MIN_POSITIVE""H_FLOAT32_MIN_POSITIVE", 'H_FLOAT64_EPSILON'"H_FLOAT64_EPSILON""H_FLOAT64_EPSILON""H_FLOAT64_EPSILON""H_FLOAT64_EPSILON""H_FLOAT64_EPSILON", 'H_FLOAT64_MAX'"H_FLOAT64_MAX""H_FLOAT64_MAX""H_FLOAT64_MAX""H_FLOAT64_MAX""H_FLOAT64_MAX", 'H_FLOAT64_MIN'"H_FLOAT64_MIN""H_FLOAT64_MIN""H_FLOAT64_MIN""H_FLOAT64_MIN""H_FLOAT64_MIN", 'H_FLOAT64_MIN_POSITIVE'"H_FLOAT64_MIN_POSITIVE""H_FLOAT64_MIN_POSITIVE""H_FLOAT64_MIN_POSITIVE""H_FLOAT64_MIN_POSITIVE""H_FLOAT64_MIN_POSITIVE", 'H_FLOAT_INFINITY'"H_FLOAT_INFINITY""H_FLOAT_INFINITY""H_FLOAT_INFINITY""H_FLOAT_INFINITY""H_FLOAT_INFINITY", 'H_FLOAT_NAN'"H_FLOAT_NAN""H_FLOAT_NAN""H_FLOAT_NAN""H_FLOAT_NAN""H_FLOAT_NAN", 'H_FLOAT_NEG_INFINITY'"H_FLOAT_NEG_INFINITY""H_FLOAT_NEG_INFINITY""H_FLOAT_NEG_INFINITY""H_FLOAT_NEG_INFINITY""H_FLOAT_NEG_INFINITY", 'H_INT32_MAX'"H_INT32_MAX""H_INT32_MAX""H_INT32_MAX""H_INT32_MAX""H_INT32_MAX", 'H_INT32_MIN'"H_INT32_MIN""H_INT32_MIN""H_INT32_MIN""H_INT32_MIN""H_INT32_MIN", 'H_INT64_MAX'"H_INT64_MAX""H_INT64_MAX""H_INT64_MAX""H_INT64_MAX""H_INT64_MAX", 'H_INT64_MIN'"H_INT64_MIN""H_INT64_MIN""H_INT64_MIN""H_INT64_MIN""H_INT64_MIN", 'H_INT_MAX'"H_INT_MAX""H_INT_MAX""H_INT_MAX""H_INT_MAX""H_INT_MAX", 'H_INT_MIN'"H_INT_MIN""H_INT_MIN""H_INT_MIN""H_INT_MIN""H_INT_MIN", 'H_MSG_FAIL'"H_MSG_FAIL""H_MSG_FAIL""H_MSG_FAIL""H_MSG_FAIL""H_MSG_FAIL", 'H_MSG_FALSE'"H_MSG_FALSE""H_MSG_FALSE""H_MSG_FALSE""H_MSG_FALSE""H_MSG_FALSE", 'H_MSG_TRUE'"H_MSG_TRUE""H_MSG_TRUE""H_MSG_TRUE""H_MSG_TRUE""H_MSG_TRUE", 'H_MSG_VOID'"H_MSG_VOID""H_MSG_VOID""H_MSG_VOID""H_MSG_VOID""H_MSG_VOID", 'H_TYPE_ANY'"H_TYPE_ANY""H_TYPE_ANY""H_TYPE_ANY""H_TYPE_ANY""H_TYPE_ANY", 'H_TYPE_HANDLE'"H_TYPE_HANDLE""H_TYPE_HANDLE""H_TYPE_HANDLE""H_TYPE_HANDLE""H_TYPE_HANDLE", 'H_TYPE_INT'"H_TYPE_INT""H_TYPE_INT""H_TYPE_INT""H_TYPE_INT""H_TYPE_INT", 'H_TYPE_MIXED'"H_TYPE_MIXED""H_TYPE_MIXED""H_TYPE_MIXED""H_TYPE_MIXED""H_TYPE_MIXED", 'H_TYPE_REAL'"H_TYPE_REAL""H_TYPE_REAL""H_TYPE_REAL""H_TYPE_REAL""H_TYPE_REAL", 'H_TYPE_STRING'"H_TYPE_STRING""H_TYPE_STRING""H_TYPE_STRING""H_TYPE_STRING""H_TYPE_STRING", 'false'"false""false""false""false""false", 'true'"true""true""true""true""true"

ValueValueValueValuevaluevalue (output_control)  tuple HTupleUnion[float, int, HHandle]HTupleHtuple (integer / real / handle) (int / long / double / HHandle) (Hlong / double / HHandle) (Hlong / double / handle)

The value of the constant.

Module

Foundation