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’squery()
process.Attributes
Direct queries match transformations without reflections.
Angle used for indeterminate isometry and similarity matchings of single points or single circles.
When indeterminate matching under similarity and affinity, whether to scale/stretch the query to align maximal lines (only active with zero RPs).
When indeterminate matching under affinity, if
indet_fit_max=True
, scale ifindet_fit_max_uniform_scale=True
, stretch ifindet_fit_max_uniform_scale=False
.Scale used for indeterminate similarity matchings.
Indirect queries match transformations with reflections.
Methods
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 ifindet_fit_max_uniform_scale=True
, stretch ifindet_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