14#ifndef STREAMS_GIGE_DEVICE_TAB_H
15#define STREAMS_GIGE_DEVICE_TAB_H
24#include "../ui_toolx.h"
37 explicit GigEDeviceTab(Ui::Dialog &ui, QObject *parent =
nullptr);
57 QJsonObject
toJson()
const;
66 void fromJson(
const QJsonObject &device);
void fromJson(const QJsonObject &device)
Apply the device settings of a JSON object.
Definition gige_device_tab.cpp:93
void saveSettings() const
Save the widget values.
Definition gige_device_tab.cpp:223
toolx::streams::GigEGenerator m_generator
The frame generator.
Definition gige_device_tab.h:98
GigEDeviceTab(Ui::Dialog &ui, QObject *parent=nullptr)
Construct a new GigE device tab and wire up the widgets.
Definition gige_device_tab.cpp:36
bool isRunning() const
Whether the device is transmitting.
Definition gige_device_tab.h:49
~GigEDeviceTab() final
Stop the device and save the settings.
Definition gige_device_tab.cpp:70
void toggle()
Start the device if stopped, stop it if running.
Definition gige_device_tab.cpp:137
void setConfigEnabled(bool enabled)
Enable or disable the configuration widgets.
Definition gige_device_tab.cpp:240
uint64_t m_last_frames
Frame count at the previous status update.
Definition gige_device_tab.h:102
void loadSettings()
Load the saved settings into the widgets.
Definition gige_device_tab.cpp:206
toolx::streams::GigEDeviceConfig currentConfig() const
Build the device configuration from the widgets.
Definition gige_device_tab.cpp:251
QJsonObject toJson() const
The device settings as a JSON object for the configuration file.
Definition gige_device_tab.cpp:77
void pixelFormatChanged()
The pixel format changed, update which patterns are available.
Definition gige_device_tab.cpp:185
Ui::Dialog & m_ui
The main dialogue UI.
Definition gige_device_tab.h:96
void updateStatus()
Refresh the state label.
Definition gige_device_tab.cpp:165
QTimer m_timer
Status refresh timer.
Definition gige_device_tab.h:100
void patternChanged(int index)
The pattern changed, apply it to the running device.
Definition gige_device_tab.cpp:201
Transmits test patterns as a GigE Vision device (camera emulation).