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

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

#include <ddtTestViewer.hpp>

Inheritance diagram for DdtTestViewer:

Public Slots

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

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

 DdtTestViewer (QWidget *parent=nullptr)
 
 ~DdtTestViewer () override
 
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

◆ DdtTestViewer()

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

Constructor

◆ ~DdtTestViewer()

DdtTestViewer::~DdtTestViewer ( )
override

Destructor

Will be called when DDT Viewer is closed

Member Function Documentation

◆ AttachDataFile

void DdtTestViewer::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 DdtTestViewer::AttachDataStream ( QString  data_stream)
signal

Signal that sends a stream URI to the image widget

Parameters
URIof the data stream

◆ closeEvent()

void DdtTestViewer::closeEvent ( QCloseEvent *  event)
overrideprotected

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

Parameters
event

◆ DetachStream

void DdtTestViewer::DetachStream ( )
signal

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

◆ HandleArguments

void DdtTestViewer::HandleArguments ( )
slot

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

◆ Init()

bool DdtTestViewer::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 DdtTestViewer::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.

◆ LoadTransparentPNG

void DdtTestViewer::LoadTransparentPNG ( )
slot

◆ ParseCommandline()

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

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

◆ SetDataStream

void DdtTestViewer::SetDataStream ( QString  startup_data_stream)
signal

Signal that sends the startup stream name

Parameters
DataStream used at startup

◆ SetImageScale

void DdtTestViewer::SetImageScale ( const QString  startup_image_scale)
signal

Signal that sends the default image scale

Parameters
Imagescale used at startup

◆ SetNoWaitNewData

void DdtTestViewer::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

◆ ShowModifiedDialog

void DdtTestViewer::ShowModifiedDialog ( )
slot

◆ SwitchRendering

void DdtTestViewer::SwitchRendering ( )
slot

Member Data Documentation

◆ logger

ddt::DdtLogger* DdtTestViewer::logger
protected

Logger object

◆ remote_control

ddt::DdtRemoteControl* DdtTestViewer::remote_control
protected

Remote control interface


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