ddt 1.2.1
Loading...
Searching...
No Matches
ddtTestViewer.hpp
Go to the documentation of this file.
1
20#ifndef DDT_DATAVISUALISATION_DDTTESTVIEWER_DDTTESTVIEWER_H
21#define DDT_DATAVISUALISATION_DDTTESTVIEWER_DDTTESTVIEWER_H
22
23#include <QMainWindow>
24
26
27#include "ddt/ddtLogger.hpp"
30
31namespace Ui {
32
33class DdtTestViewerForm;
34}
35
40class DdtTestViewer : public QMainWindow {
41 Q_OBJECT
42
43 public:
47 explicit DdtTestViewer(QWidget* parent = nullptr);
48
54 ~DdtTestViewer() override;
55
63 bool Init(int argc, char* argv[]);
64
70 void LastSegment(void);
71
72 protected:
77
82
83 private:
84 Ui::DdtTestViewerForm* ui;
85 QMap<QString, DdtDialog*> dialog_map_left;
86 QMap<QString, DdtDialog*> dialog_map_right;
87
88 QString startup_filename;
89 QString startup_localbroker_uri;
90 QString startup_remotebroker_uri;
91 QString startup_data_stream;
92 QString startup_image_scale;
93 QString startup_server_uri;
94 bool startup_timestamp;
95 QString startup_overlay_file;
96 bool startup_no_wait_new_data;
97
98 bool debug_log_enabled;
99
100 MyPickObjectDialog* my_dialog;
101
102 DdtRenderingPluginCPLInvers* my_rendering_plugin;
103 int current_rendering_id;
104
105 boost::signals2::connection left_connection;
106 boost::signals2::connection right_connection;
107
108 public slots:
113 void HandleArguments();
114
115 private:
119 void ConnectWidgets();
120
121 void ConnectWidgetPanning();
122 void ConnectWidgetScaleButton();
123
124 void ConnectWidgetLeftImageWidget();
125 void ConnectWidgetRightImageWidget();
126
127 // Create instances of all supported dialogs
128 void CreateDialogsLeft();
129 void CreateDialogsRight();
130
131 const void RegisterMetaTypes();
132
136 void ConnectRemoteControl();
137
145 void ProcessRemoteCommand(const std::string& image_widget_name,
146 const std::string& command_name,
147 const std::vector<std::string>& command_arguments);
148
149 protected:
155 void closeEvent(QCloseEvent* event) override;
156
163 bool ParseCommandline(int argc, char* argv[]);
164
165 public slots:
166 void LoadTransparentPNG();
167
168 void ShowModifiedDialog();
169
170 void SwitchRendering();
171
172 signals:
177 void AttachDataFile(QString filename);
178
183 void AttachDataStream(QString data_stream);
184
189
194 void SetDataStream(QString startup_data_stream);
195
200 void SetImageScale(const QString startup_image_scale);
201
207 void SetNoWaitNewData(const bool startup_no_wait_new_data);
208
213 void LoadOverlayFile(const QString startup_overlay_file);
214};
215
216#endif // DDT_DATAVISUALISATION_DDTTESTVIEWER_DDTTESTVIEWER_H
217
Definition ddtRenderingPluginCPLInvers.hpp:29
The DdtViewer class Main class of the DDT Standard Viewer.
Definition ddtTestViewer.hpp:40
void LastSegment(void)
Definition ddtTestViewer.cpp:369
ddt::DdtRemoteControl * remote_control
Definition ddtTestViewer.hpp:81
void AttachDataFile(QString filename)
~DdtTestViewer() override
Definition ddtTestViewer.cpp:103
void SetImageScale(const QString startup_image_scale)
void SetNoWaitNewData(const bool startup_no_wait_new_data)
void SetDataStream(QString startup_data_stream)
void AttachDataStream(QString data_stream)
void LoadTransparentPNG()
Definition ddtTestViewer.cpp:375
void HandleArguments()
HandleArguments Slot to handle commandline arguments after initialisation of the GUI.
Definition ddtTestViewer.cpp:485
DdtTestViewer(QWidget *parent=nullptr)
Definition ddtTestViewer.cpp:32
ddt::DdtLogger * logger
Definition ddtTestViewer.hpp:76
bool ParseCommandline(int argc, char *argv[])
Definition ddtTestViewer.cpp:507
bool Init(int argc, char *argv[])
Definition ddtTestViewer.cpp:35
void closeEvent(QCloseEvent *event) override
closeEvent Close event which is triggered when the main window shell be closed.
Definition ddtTestViewer.cpp:465
void DetachStream()
void ShowModifiedDialog()
Definition ddtTestViewer.cpp:403
void SwitchRendering()
Definition ddtTestViewer.cpp:384
void LoadOverlayFile(const QString startup_overlay_file)
Definition myPickObjectDialog.hpp:24
Definition ddtLogger.hpp:51
Definition ddtRemoteControl.hpp:54
Class to wrap the usage of log4cplus as logging utility. This file provides a wrapper class for the u...
DDT Remote Control. Remote control interface for the DDT GUIs. Library class for the remote control i...
Example for a different rendering plugin. This is an example for a different rendering engine....
Class for the Pick Object dialog. Contains an additional GUI element. Class for the Pick Object dialo...
Definition ddtTestViewer.hpp:31