ToolX 1.11.1 [e3f477f]
A GUI debug tool chain for diagnosing GVA systems
Loading...
Searching...
No Matches
GigEDeviceTab Class Reference
Inheritance diagram for GigEDeviceTab:
Inheritance graph
Collaboration diagram for GigEDeviceTab:
Collaboration graph

Public Slots

void toggle ()
 Start the device if stopped, stop it if running.
void updateStatus ()
 Refresh the state label.

Public Member Functions

 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.

Private Slots

void pixelFormatChanged ()
 The pixel format changed, update which patterns are available.
void patternChanged (int index)
 The pattern changed, apply it to the running device.

Private Member Functions

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.

Private Attributes

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.

Constructor & Destructor Documentation

◆ GigEDeviceTab()

GigEDeviceTab::GigEDeviceTab ( Ui::Dialog & ui,
QObject * parent = nullptr )
explicit

Construct a new GigE device tab and wire up the widgets.

Parameters
uithe main dialogue UI
parentthe parent object

Member Function Documentation

◆ 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
devicethe object made by toJson()

◆ 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: