ShapeQueryParameters

class ShapeQueryParameters(direct: bool | Evaluatable[bool] = True, indirect: bool | Evaluatable[bool] = True, indet_scale: float | Evaluatable[float] = 1.0, indet_angle: float | Evaluatable[float] = 0.0, indet_fit_max: bool | Evaluatable[bool] = False, indet_fit_uniform_scale: bool | Evaluatable[bool] = True)

ShapeQueryParameters is a dataclass that holds parameters used in a shape’s query() process.

Attributes

direct

Direct queries match transformations without reflections.

indet_angle

Angle used for indeterminate isometry and similarity matchings of single points or single circles.

indet_fit_max

When indeterminate matching under similarity and affinity, whether to scale/stretch the query to align maximal lines (only active with zero RPs).

indet_fit_uniform_scale

When indeterminate matching under affinity, if indet_fit_max=True, scale if indet_fit_max_uniform_scale=True, stretch if indet_fit_max_uniform_scale=False.

indet_scale

Scale used for indeterminate similarity matchings.

indirect

Indirect queries match transformations with reflections.

Methods

maybe_evaluate

Evaluate these ShapeQueryParameters, as necessary, with the provided context dictionary.

maybe_evaluate(context: dict = None) ShapeQueryParameters

Evaluate these ShapeQueryParameters, as necessary, with the provided context dictionary.

See also maybe_evaluate().

direct: bool | Evaluatable[bool] = True

Direct queries match transformations without reflections. Can be combined with indirect=True.

indet_angle: float | Evaluatable[float] = 0.0

Angle used for indeterminate isometry and similarity matchings of single points or single circles.

indet_fit_max: bool | Evaluatable[bool] = False

When indeterminate matching under similarity and affinity, whether to scale/stretch the query to align maximal lines (only active with zero RPs).

indet_fit_uniform_scale: bool | Evaluatable[bool] = True

When indeterminate matching under affinity, if indet_fit_max=True, scale if indet_fit_max_uniform_scale=True, stretch if indet_fit_max_uniform_scale=False.

indet_scale: float | Evaluatable[float] = 1.0

Scale used for indeterminate similarity matchings.

indirect: bool | Evaluatable[bool] = True

Indirect queries match transformations with reflections. Can be combined with direct=True