|
|
void | toggle () |
| | Start the device if stopped, stop it if running.
|
|
void | updateStatus () |
| | Refresh the state label.
|
|
| | GigEDeviceTab (Ui::Dialog &ui, QObject *parent=nullptr) |
| | Construct a new GigE device tab and wire up the widgets.
|
|
| ~GigEDeviceTab () final |
| | Stop the device and save the settings.
|
| bool | isRunning () const |
| | Whether the device is transmitting.
|
| QJsonObject | toJson () const |
| | The device settings as a JSON object for the configuration file.
|
| void | fromJson (const QJsonObject &device) |
| | Apply the device settings of a JSON object.
|
|
|
void | pixelFormatChanged () |
| | The pixel format changed, update which patterns are available.
|
|
void | patternChanged (int index) |
| | The pattern changed, apply it to the running device.
|
|
|
void | loadSettings () |
| | Load the saved settings into the widgets.
|
|
void | saveSettings () const |
| | Save the widget values.
|
|
void | setConfigEnabled (bool enabled) |
| | Enable or disable the configuration widgets.
|
|
toolx::streams::GigEDeviceConfig | currentConfig () const |
| | Build the device configuration from the widgets.
|
|
|
Ui::Dialog & | m_ui |
| | The main dialogue UI.
|
|
toolx::streams::GigEGenerator | m_generator |
| | The frame generator.
|
|
QTimer | m_timer |
| | Status refresh timer.
|
|
uint64_t | m_last_frames = 0 |
| | Frame count at the previous status update.
|
◆ GigEDeviceTab()
| GigEDeviceTab::GigEDeviceTab |
( |
Ui::Dialog & | ui, |
|
|
QObject * | parent = nullptr ) |
|
explicit |
Construct a new GigE device tab and wire up the widgets.
- Parameters
-
| ui | the main dialogue UI |
| parent | the parent object |
◆ fromJson()
| void GigEDeviceTab::fromJson |
( |
const QJsonObject & | device | ) |
|
Apply the device settings of a JSON object.
A running device is stopped first. Missing values keep their current setting.
- Parameters
-
◆ isRunning()
| bool GigEDeviceTab::isRunning |
( |
| ) |
const |
|
inline |
Whether the device is transmitting.
- Returns
- true while the device is running
◆ toJson()
| QJsonObject GigEDeviceTab::toJson |
( |
| ) |
const |
The device settings as a JSON object for the configuration file.
- Returns
- QJsonObject the device name, manufacturer, model, serial number, picture size, frame rate, pixel format and test card (both by name) and the SAP announcements setting
The documentation for this class was generated from the following files: