Bases: object
An object that transforms a coordinate from one system to another. Subclasses must implement __call__ with the provided signature. They should also call this superclass’s __init__ in their __init__.
| Parameters: | fromsys : class
tosys : class
priority : number
register_graph : TransformGraph or None
|
|---|
Methods Summary
| __call__(fromcoord, toframe) | Does the actual coordinate transformation from the fromsys class to the tosys class. |
| register(graph) | Add this transformation to the requested Transformation graph, replacing anything already connecting these two coordinates. |
| unregister(graph) | Remove this transformation from the requested transformation graph. |
Methods Documentation
Does the actual coordinate transformation from the fromsys class to the tosys class.
| Parameters: | fromcoord : fromsys object
toframe : object
|
|---|---|
| Returns: | tocoord : tosys object
|
Add this transformation to the requested Transformation graph, replacing anything already connecting these two coordinates.
| Parameters: | graph : a TransformGraph object
|
|---|
Remove this transformation from the requested transformation graph.
| Parameters: | graph : a TransformGraph object
|
|---|---|
| Raises: | ValueError
|