pyampp.gxbox.selector_api
Classes
Coordinate representation used by the GUI center fields. |
|
Workflow-relevant box geometry values in the same shape as pyAMPP GUI fields. |
|
Inputs needed to launch a future standalone map/box selector GUI. |
|
Observer-plane image FOV used for synthetic image framing and canvas centering. |
|
Observer-aligned 3D FOV box. |
|
Accepted result returned by the standalone selector dialog. |
|
Callback protocol for receiving accepted geometry selections. |
Module Contents
- class pyampp.gxbox.selector_api.CoordMode[source]
Bases:
str,enum.EnumCoordinate representation used by the GUI center fields.
- class pyampp.gxbox.selector_api.BoxGeometrySelection[source]
Workflow-relevant box geometry values in the same shape as pyAMPP GUI fields.
These map directly to the existing
PyAmppGUIinput widgets: -coord_x/coord_y->coord_x_edit/coord_y_edit-grid_x/grid_y/grid_z->grid_*_edit-dx_km->res_edit(CLI--dx-km)
- class pyampp.gxbox.selector_api.SelectorSessionInput[source]
Inputs needed to launch a future standalone map/box selector GUI.
map_idsandinitial_map_idare UI-only state for visualization and are not part of the geometry return contract.- geometry: BoxGeometrySelection[source]
- fov: DisplayFovSelection | None = None[source]
- fov_box: DisplayFovBoxSelection | None = None[source]
- base_geometry: BoxGeometrySelection | None = None[source]
- class pyampp.gxbox.selector_api.DisplayFovSelection[source]
Observer-plane image FOV used for synthetic image framing and canvas centering.
This is intentionally separate from the model box geometry. Values are expressed in helioprojective (observer-plane) arcsec, regardless of the red-box input coordinate mode.
- class pyampp.gxbox.selector_api.DisplayFovBoxSelection[source]
Observer-aligned 3D FOV box.
The x/y footprint matches the image-plane FOV rectangle in helioprojective arcsec. The z extent is stored in observer-centric heliocentric coordinates (Mm) along the line of sight, where larger values are closer to the observer.
- classmethod from_display_fov(fov: DisplayFovSelection, z_min_mm: float, z_max_mm: float, *, observer_key: str = 'earth') DisplayFovBoxSelection[source]
- class pyampp.gxbox.selector_api.SelectorDialogResult[source]
Accepted result returned by the standalone selector dialog.
- geometry: BoxGeometrySelection[source]
- fov: DisplayFovSelection | None = None[source]
- class pyampp.gxbox.selector_api.GeometrySelectionConsumer[source]
Bases:
ProtocolCallback protocol for receiving accepted geometry selections.
- apply_geometry_selection(selection: BoxGeometrySelection) None[source]
Apply an accepted geometry selection to the host GUI/application.