Aravis.Evaluator

g Aravis.Evaluator Aravis.Evaluator GObject.Object GObject.Object GObject.Object->Aravis.Evaluator

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (expression)

evaluate_as_double ()

evaluate_as_int64 ()

get_constant (name)

get_expression ()

get_sub_expression (name)

set_constant (name, constant)

set_double_variable (name, v_double)

set_expression (expression)

set_int64_variable (name, v_int64)

set_sub_expression (name, expression)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Aravis.Evaluator(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Aravis.EvaluatorClass

classmethod new(expression)
Parameters:

expression (str or None) – an evaluator expression

Returns:

a new Aravis.Evaluator object.

Return type:

Aravis.Evaluator

Creates a new Aravis.Evaluator object. The syntax is described in the genicam standard specification.

evaluate_as_double()
Raises:

GLib.Error

Return type:

float

evaluate_as_int64()
Raises:

GLib.Error

Return type:

int

get_constant(name)
Parameters:

name (str) – constant name

Returns:

The formula of the constant corresponding to name, None if not defined.

Return type:

str

New in version 0.6.0.

get_expression()
Return type:

str

get_sub_expression(name)
Parameters:

name (str) – sub-expression name

Returns:

The formula of the sub-expression corresponding to name, None if not defined.

Return type:

str

New in version 0.6.0.

set_constant(name, constant)
Parameters:
  • name (str) – constant name

  • constant (str or None) – constant as a string

Assign a string to a constant. If constant == None, the constant previously assigned to name will be removed.

New in version 0.6.0.

set_double_variable(name, v_double)
Parameters:
set_expression(expression)
Parameters:

expression (str) –

set_int64_variable(name, v_int64)
Parameters:
  • name (str) –

  • v_int64 (int) –

set_sub_expression(name, expression)
Parameters:
  • name (str) – sub-expression name

  • expression (str or None) – sub-pexression formula

Assign a formula to a sub-expression. If expression == None, the sub-expression previously assigned to name will be removed. A sub-expression may not reference another sub-expression.

New in version 0.6.0.