TransformationManager
TransformationManager
Local manager for geometric transformation lifecycle and tag assignment.
Create an empty transformation manager with tags starting at 1.
Attributes
Methods:
__iter__
Iterate over managed transformations in tag order.
add
Add an existing transformation and assign a tag if needed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
transformation
|
GeometricTransformation
|
Unmanaged or already-managed transformation. |
required |
Returns:
| Type | Description |
|---|---|
GeometricTransformation
|
The same transformation after it is stored by this manager. |
get
Return the transformation with tag if it exists.
get_all
Return a shallow copy of all managed transformations keyed by tag.
set_tag_start
Set the first tag used by this manager and retag existing objects.
transformation2d
transformation2d(transf_type: str, d_xi: float = 0.0, d_yi: float = 0.0, d_xj: float = 0.0, d_yj: float = 0.0, description: str = '') -> GeometricTransformation2D
Create and manage a 2D geometric transformation.
transformation3d
transformation3d(transf_type: str, vecxz_x: float | str, vecxz_y: float | str, vecxz_z: float | str, d_xi: float | str = 0.0, d_yi: float | str = 0.0, d_zi: float | str = 0.0, d_xj: float | str = 0.0, d_yj: float | str = 0.0, d_zj: float | str = 0.0, description: str = '') -> GeometricTransformation3D
Create and manage a 3D geometric transformation.
_next_available_tag
Return the next unused tag in this manager's local tag space.