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
ShapeQuery
represents a query used inquery()
.- Parameters:
transformation – The type of
HomogeneousTransformation
to compute when querying.shape – The
Shape
to look for.parameters – The
ShapeQueryParameters
to use when querying.flavor_shape – An optional
Shape
that gets included when displaying matches to a user.
Attributes
Returns the type of transformation indeterminacy present within the
shape
.The
ShapeQueryParameters
to use when searching for theshape
.The
HomogeneousTransformation
to use when searching for theshape
.Methods
Set the evaluation context used when evaluating
transformation
orparameters
, as necessary.- set_dynamic_evaluation_context(context: dict)
Set the evaluation context used when evaluating
transformation
orparameters
, 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
ShapeQueryParameters
to use when searching for theshape
.
- property transformation: Type[HomogeneousTransformation]
The
HomogeneousTransformation
to use when searching for theshape
.