ddt  0.1
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DdtViewer Class Reference

The DdtViewer class Main class of the DDT Standard Viewer. More...

#include <ddtViewer.hpp>

Inheritance diagram for DdtViewer:

Public Slots

void HandleArguments ()
 HandleArguments Slot to handle commandline arguments after initialisation of the GUI. More...
 

Signals

void AttachDataFile (QString filename)
 
void AttachDataStream (QString data_stream)
 
void DetachStream ()
 
void SetDataStream (QString startup_data_stream)
 
void SetImageScale (const QString startup_image_scale)
 
void SetNoWaitNewData (const bool startup_no_wait_new_data)
 

Public Member Functions

 DdtViewer (QWidget *parent=nullptr)
 
virtual ~DdtViewer ()
 
bool Init (int argc, char *argv[])
 
void LastSegment (void)
 

Protected Member Functions

void closeEvent (QCloseEvent *event) override
 closeEvent Close event which is triggered when the main window shell be closed. More...
 
bool ParseCommandline (int argc, char *argv[])
 

Protected Attributes

ddt::DdtLoggerlogger
 
ddt::DdtRemoteControlremote_control
 

Detailed Description

The DdtViewer class Main class of the DDT Standard Viewer.

Constructor & Destructor Documentation

◆ DdtViewer()

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

Constructor

◆ ~DdtViewer()

DdtViewer::~DdtViewer ( )
virtual

Destructor

Will be called when DDT Viewer is closed

Member Function Documentation

◆ AttachDataFile

void DdtViewer::AttachDataFile ( QString  filename)
signal

Signal that sends a filename of a file to open

Parameters
filenamefilename and path of the file to open at startup

◆ AttachDataStream

void DdtViewer::AttachDataStream ( QString  data_stream)
signal

Signal that sends a stream URI to the image widget

Parameters
URIof the data stream

◆ closeEvent()

void DdtViewer::closeEvent ( QCloseEvent *  event)
overrideprotected

closeEvent Close event which is triggered when the main window shell be closed.

Parameters
event

◆ DetachStream

void DdtViewer::DetachStream ( )
signal

Signal that is sent to the image widget when the window closes

◆ HandleArguments

void DdtViewer::HandleArguments ( )
slot

HandleArguments Slot to handle commandline arguments after initialisation of the GUI.

◆ Init()

bool DdtViewer::Init ( int  argc,
char *  argv[] 
)

Initialization

Creates a DDT Viewer object

Parameters
argcnumber of commandline arguments
argvarray of commandline arguments
parentpointer to the parent widget

◆ LastSegment()

void DdtViewer::LastSegment ( void  )

Function to be registered as callback in the ImageWidget. It will be called when an image is received in the ImageWidget that has the "last segment" flag set.

◆ ParseCommandline()

bool DdtViewer::ParseCommandline ( int  argc,
char *  argv[] 
)
protected

Parse commandline arguments –file="<path to image file to open>" –stream="<URI to data stream>" –debug

◆ SetDataStream

void DdtViewer::SetDataStream ( QString  startup_data_stream)
signal

Signal that sends the startup stream name

Parameters
DataStream used at startup

◆ SetImageScale

void DdtViewer::SetImageScale ( const QString  startup_image_scale)
signal

Signal that sends the default image scale

Parameters
Imagescale used at startup

◆ SetNoWaitNewData

void DdtViewer::SetNoWaitNewData ( const bool  startup_no_wait_new_data)
signal

Signal that sends the default no_wait_new_data flag

Parameters
Defaultno_wait_new_data flag used at startup

Member Data Documentation

◆ logger

ddt::DdtLogger* DdtViewer::logger
protected

Logger object

◆ remote_control

ddt::DdtRemoteControl* DdtViewer::remote_control
protected

Remote control interface


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