OperationInterface#

Module for the Operation Interface.

class OperationInterface(geometries)[source]#

Bases: DomainInterface

Abstract class for set operations defined on geometric domains.

Initialization of the OperationInterface class.

Parameters:

geometries (list[DomainInterface]) – A list of instances of the DomainInterface class on which the set operation is performed.

property sample_modes#

List of available sampling modes.

Returns:

List of available sampling modes.

Return type:

list[str]

property geometries#

The domains on which to perform the set operation.

Returns:

The domains on which to perform the set operation.

Return type:

list[DomainInterface]

property variables#

List of variables of the domain.

Returns:

List of variables of the domain.

Return type:

list[str]

abstract is_inside(point, check_border=False)[source]#

Abstract method to check if a point lies inside the resulting domain after performing the set operation.

Parameters:
  • point (LabelTensor) – Point to be checked.

  • check_border (bool) – If True, the border is considered inside the resulting domain. Default is False.

Returns:

True if the point is inside the domain, False otherwise.

Return type:

bool