OmeroGateway¶
OmeroGateway ¶
Bases: QObject
Singleton gateway for OMERO server connections.
Signals
connected(str) Emitted with the server host when a connection is established. disconnected() Emitted when the connection is closed. error(str) Emitted with a human-readable message on connection failure.
connect ¶
connect(host: str, port: int, username: str, password: str, *, remember_session: bool = False) -> bool
Open a connection to the OMERO server.
Returns True on success. On failure emits :pyqtSignal:error
and returns False.
try_restore_session ¶
Try to reconnect using a cached OMERO session UUID.
Returns True if the cached session was reused successfully. Invalid or expired cached sessions are cleared automatically.
shutdown_for_exit ¶
Release the local client at app shutdown without closing a valid cached session.
runtime_login_fields ¶
Return in-memory login values cached for the current app run only.
get_experimenters_in_group ¶
Return list of (id, full_name) tuples for a group.
pixels_wrapper ¶
Return a NonCachedPixelsWrapper for image.
Helper: raw_pixels_store¶
raw_pixels_store ¶
Context manager that yields an ICE RawPixelsStore for image, ensuring proper cleanup.
Helper: NonCachedPixelsWrapper¶
NonCachedPixelsWrapper ¶
Thin wrapper that creates a fresh RawPixelsStore on every call.
Avoids reuse issues that can occur when a single store is shared across multiple fetch operations.