AppBridge
plantimager.controller.AppBridge Link
AppBridge Link
AppBridge(parent=None)
Bases: QObject
Singleton class which is the main bridge of the application.
AppBridge is a shared object accessible across the application. It initializes the zmq context and a device registry. When a new device is registered it creates the appropriate bridge for the application.
Attributes:
Name | Type | Description |
---|---|---|
context |
Context
|
Unique ZMQ context of the application. |
registry |
DeviceRegistry
|
Device registry of the application. |
device_list |
list[str]
|
List of device names. |
device_bridges |
list[CameraBridge]
|
List of camera bridges. |
Source code in plantimager/controller/AppBridge.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
|
getCameraBridgeAtIndex Link
getCameraBridgeAtIndex(index)
(Slot) Returns the camera bridge at a given index.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
index
|
int
|
Index of the camera bridge. |
required |
Returns:
Type | Description |
---|---|
CameraBridge
|
|
Source code in plantimager/controller/AppBridge.py
101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|
reboot_host Link
reboot_host()
Reboots the host.
Source code in plantimager/controller/AppBridge.py
202 203 204 205 |
|
restart_app Link
restart_app()
Reboots the app.
Source code in plantimager/controller/AppBridge.py
207 208 209 210 |
|
shutdown_host Link
shutdown_host()
Shuts down the host.
Source code in plantimager/controller/AppBridge.py
197 198 199 200 |
|