ddt 1.4.0
 
Loading...
Searching...
No Matches
DdtDataStreamWidget Class Reference

#include <ddtDataStreamWidget.hpp>

Inheritance diagram for DdtDataStreamWidget:
DdtWidget

Public Slots

bool PopulatePublisherListCombo (QString localbroker_uri, QString remotebroker_uri)
 

Signals

void AttachDataStream (QString data_stream_id)
 
void DetachDataStream (QString data_stream_id)
 
void LastBrokerConnection (QString data_stream_id)
 
void RefreshRateChanged (bool enabled, double interval_seconds)
 

Public Member Functions

 DdtDataStreamWidget (QWidget *parent=nullptr)
 
virtual ~DdtDataStreamWidget ()
 
void set_logger (ddt::DdtLogger *in_logger)
 
- Public Member Functions inherited from DdtWidget
 DdtWidget (QWidget *parent=nullptr)
 DdtWidget.
 
virtual ~DdtWidget ()=default
 
QWidget * AddParentWidget (QLayout *child_layout)
 AddParentWidget This will add the given layout to a QGroupBox Widget to integrate in the parent layout.
 
void connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 connect Group of overloaded functions that use the QObject::connect method with the Qt::QueuedConnection flag. This defines Qt Signal and Slots connection the same way thought out the QApplication.
 
void connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
void connect (const QObject *sender, const char *signal, const char *member)
 
template<typename Func1, typename Func2>
void connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot)
 connect Template version of QObject::connection with fixed Qt::QueuedConnection flag. Normally used to connect a signal with a lambda function.
 

Static Public Attributes

static constexpr unsigned NEW_DATA_WATCHDOG_TIMEOUT = 1000
 

Protected Slots

void AttachDataStream ()
 
void DetachDataStream ()
 
void SetDataStream (QString startup_data_stream)
 
void CurrentStatus (QString stream_id, ConnectionStatus status)
 
void FlickerStatus ()
 
void ConnectionLost ()
 
void DisplayURIsDialog ()
 
void EmitRefreshRateChanged ()
 

Protected Attributes

ddt::DdtLoggerlogger
 
int last_index_selected
 
QString current_localbroker_uri
 
QString current_remotebroker_uri
 

Detailed Description

Class for the Data Stream Widget that can be used to connect an Image Widget to a Data Stream

Constructor & Destructor Documentation

◆ DdtDataStreamWidget()

DdtDataStreamWidget::DdtDataStreamWidget ( QWidget * parent = nullptr)
explicit

Constructor

Creates a DDT Data Stream Widget

Parameters
parentPointer to the parent widget

◆ ~DdtDataStreamWidget()

DdtDataStreamWidget::~DdtDataStreamWidget ( )
virtualdefault

Destructor

Member Function Documentation

◆ AttachDataStream [1/2]

void DdtDataStreamWidget::AttachDataStream ( )
protectedslot

Slot that shall be called when the attach button was pressed

◆ AttachDataStream [2/2]

void DdtDataStreamWidget::AttachDataStream ( QString data_stream_id)
signal

Signal that is send when a data stream shall be attached to the image widget

Parameters
data_stream_idID of the data stream to connect to (in first version the URI)

◆ ConnectionLost

void DdtDataStreamWidget::ConnectionLost ( )
protectedslot

Slot called by the watchdog timer when no data has been received within the configured interval.

◆ CurrentStatus

void DdtDataStreamWidget::CurrentStatus ( QString stream_id,
ConnectionStatus status )
protectedslot

Receives the current status of a stream

◆ DetachDataStream [1/2]

void DdtDataStreamWidget::DetachDataStream ( )
protectedslot

Slot that shall be called when the detach button was pressed

◆ DetachDataStream [2/2]

void DdtDataStreamWidget::DetachDataStream ( QString data_stream_id)
signal

Signal that is send when the connected data stream should be disconnected

Parameters
data_stream_idID of the data stream

◆ DisplayURIsDialog

void DdtDataStreamWidget::DisplayURIsDialog ( )
protectedslot

Create and show the dialog to input local and remote brokers URIs

◆ EmitRefreshRateChanged

void DdtDataStreamWidget::EmitRefreshRateChanged ( )
protectedslot

Slot invoked when either the refresh-rate checkbox or spin box value changes; forwards the current state via RefreshRateChanged.

◆ FlickerStatus

void DdtDataStreamWidget::FlickerStatus ( )
protectedslot

Reset the status when flickering the LED

◆ LastBrokerConnection

void DdtDataStreamWidget::LastBrokerConnection ( QString data_stream_id)
signal

Signal that is send when datastream list is retrieve from a broker connection

Parameters
data_stream_idID of the data stream

◆ PopulatePublisherListCombo

bool DdtDataStreamWidget::PopulatePublisherListCombo ( QString localbroker_uri,
QString remotebroker_uri )
slot

Populate the combo box with the entries from a datastream list

◆ RefreshRateChanged

void DdtDataStreamWidget::RefreshRateChanged ( bool enabled,
double interval_seconds )
signal

Signal emitted when the user changes the image-display refresh-rate settings.

Parameters
enabledtrue if the user enabled the refresh-rate limit
interval_secondsDisplay probe interval in seconds (floating point); receivers should only actually display an incoming frame when at least this much time has elapsed since the last displayed frame. Ignored by receivers when enabled is false.

◆ set_logger()

void DdtDataStreamWidget::set_logger ( ddt::DdtLogger * in_logger)

Set logger

Parameters
in_loggerThe logger object

◆ SetDataStream

void DdtDataStreamWidget::SetDataStream ( QString startup_data_stream)
protectedslot

Slot that will receive the name of the startup data stream

Member Data Documentation

◆ current_localbroker_uri

QString DdtDataStreamWidget::current_localbroker_uri
protected

Current URI of local Broker streaming data

◆ current_remotebroker_uri

QString DdtDataStreamWidget::current_remotebroker_uri
protected

Current URI of remote Broker streaming data

◆ last_index_selected

int DdtDataStreamWidget::last_index_selected
protected

Last

◆ logger

ddt::DdtLogger* DdtDataStreamWidget::logger
protected

Logger object

◆ NEW_DATA_WATCHDOG_TIMEOUT

unsigned DdtDataStreamWidget::NEW_DATA_WATCHDOG_TIMEOUT = 1000
staticconstexpr

The documentation for this class was generated from the following files: