ddt 1.4.0
 
Loading...
Searching...
No Matches
ddtTestViewer.hpp
Go to the documentation of this file.
1
10
11#ifndef DDT_DATAVISUALISATION_DDTTESTVIEWER_DDTTESTVIEWER_H
12#define DDT_DATAVISUALISATION_DDTTESTVIEWER_DDTTESTVIEWER_H
13
14#include <QMainWindow>
15
17
18#include "ddt/ddtLogger.hpp"
21
22namespace Ui {
23
24class DdtTestViewerForm;
25}
26
31class DdtTestViewer : public QMainWindow {
32 Q_OBJECT
33
34 public:
38 explicit DdtTestViewer(QWidget* parent = nullptr);
39
45 ~DdtTestViewer() override;
46
54 bool Init(int argc, char* argv[]);
55
61 void LastSegment(void);
62
63 protected:
68
73
74 private:
75 Ui::DdtTestViewerForm* ui;
76 QMap<QString, DdtDialog*> dialog_map_left;
77 QMap<QString, DdtDialog*> dialog_map_right;
78
79 QString startup_filename;
80 QString startup_localbroker_uri;
81 QString startup_remotebroker_uri;
82 QString startup_data_stream;
83 QString startup_image_scale;
84 QString startup_server_uri;
85 bool startup_timestamp;
86 QString startup_overlay_file;
87 bool startup_no_wait_new_data;
88
89 bool debug_log_enabled;
90
91 MyPickObjectDialog* my_dialog;
92
93 DdtRenderingPluginCPLInvers* my_rendering_plugin;
94 int current_rendering_id;
95
96 boost::signals2::connection left_connection;
97 boost::signals2::connection right_connection;
98
99 public slots:
104 void HandleArguments();
105
106 private:
110 void ConnectWidgets();
111
112 void ConnectWidgetPanning();
113 void ConnectWidgetScaleButton();
114
115 void ConnectWidgetLeftImageWidget();
116 void ConnectWidgetRightImageWidget();
117
118 // Create instances of all supported dialogs
119 void CreateDialogsLeft();
120 void CreateDialogsRight();
121
122 const void RegisterMetaTypes();
123
127 void ConnectRemoteControl();
128
136 void ProcessRemoteCommand(const std::string& image_widget_name,
137 const std::string& command_name,
138 const std::vector<std::string>& command_arguments);
139
140 protected:
146 void closeEvent(QCloseEvent* event) override;
147
154 bool ParseCommandline(int argc, char* argv[]);
155
156 public slots:
157 void LoadTransparentPNG();
158
159 void ShowModifiedDialog();
160
161 void SwitchRendering();
162
163 signals:
168 void AttachDataFile(QString filename);
169
174 void AttachDataStream(QString data_stream);
175
180
185 void SetDataStream(QString startup_data_stream);
186
191 void SetImageScale(const QString startup_image_scale);
192
198 void SetNoWaitNewData(const bool startup_no_wait_new_data);
199
204 void LoadOverlayFile(const QString startup_overlay_file);
205};
206
207#endif // DDT_DATAVISUALISATION_DDTTESTVIEWER_DDTTESTVIEWER_H
Definition ddtRenderingPluginCPLInvers.hpp:20
void LastSegment(void)
Definition ddtTestViewer.cpp:360
ddt::DdtRemoteControl * remote_control
Definition ddtTestViewer.hpp:72
void AttachDataFile(QString filename)
~DdtTestViewer() override
Definition ddtTestViewer.cpp:94
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:366
void HandleArguments()
HandleArguments Slot to handle commandline arguments after initialisation of the GUI.
Definition ddtTestViewer.cpp:476
DdtTestViewer(QWidget *parent=nullptr)
Definition ddtTestViewer.cpp:23
ddt::DdtLogger * logger
Definition ddtTestViewer.hpp:67
bool ParseCommandline(int argc, char *argv[])
Definition ddtTestViewer.cpp:498
bool Init(int argc, char *argv[])
Definition ddtTestViewer.cpp:26
void closeEvent(QCloseEvent *event) override
closeEvent Close event which is triggered when the main window shell be closed.
Definition ddtTestViewer.cpp:456
void DetachStream()
void ShowModifiedDialog()
Definition ddtTestViewer.cpp:394
void SwitchRendering()
Definition ddtTestViewer.cpp:375
void LoadOverlayFile(const QString startup_overlay_file)
Definition myPickObjectDialog.hpp:15
Definition ddtLogger.hpp:43
Definition ddtRemoteControl.hpp:45
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:22