eradiate.scenes.measure.TargetPoint¶
- class eradiate.scenes.measure.TargetPoint(xyz)[source]¶
Bases:
TargetPoint target specification.
- Parameters:
xyz (
quantityor array-like) – Point coordinates. Unit-enabled field (default: ucc[‘length’]).
- static convert(value)¶
Object converter method.
If
valueis a dictionary, this method usesnew()to instantiate aTargetchild class based on the"type"entry it contains.If
valueis a 3-vector, this method returns aTargetPointinstance.Otherwise, it returns
value.
- static new(target_type, *args, **kwargs)¶
Instantiate one of the supported child classes. This factory requires manual class registration. All position and keyword arguments are forwarded to the constructed type.
Currently supported classes:
point:TargetPointrectangle:TargetRectangle
- Parameters:
target_type (
{"point", "rectangle"}) – Identifier of one of the supported child classes.- Returns: