ShapeQuery
- class ShapeQuery(transformation: Type[HomogeneousTransformation] | Evaluatable[Type[HomogeneousTransformation]], shape: Shape, parameters: ShapeQueryParameters = ShapeQueryParameters(direct=True, indirect=True, indet_scale=1.0, indet_angle=0.0, indet_fit_max=False, indet_fit_uniform_scale=True), *, flavor_shape: Shape | None = None)
A
ShapeQueryrepresents a query used inquery().- Parameters:
transformation – The type of
HomogeneousTransformationto compute when querying.shape – The
Shapeto look for.parameters – The
ShapeQueryParametersto use when querying.flavor_shape – An optional
Shapethat gets included when displaying matches to a user.
Attributes
Returns the type of transformation indeterminacy present within the
shape.The
ShapeQueryParametersto use when searching for theshape.The
HomogeneousTransformationto use when searching for theshape.Methods
Set the evaluation context used when evaluating
transformationorparameters, as necessary.- set_dynamic_evaluation_context(context: dict)
Set the evaluation context used when evaluating
transformationorparameters, as necessary.See also
maybe_evaluate().
- property indet_type: Flag
Returns the type of transformation indeterminacy present within the
shape.If applied not in an automation, this property is used to request the fixed transformation parameter values from a user.
- property parameters: ShapeQueryParameters
The
ShapeQueryParametersto use when searching for theshape.
- property transformation: Type[HomogeneousTransformation]
The
HomogeneousTransformationto use when searching for theshape.