dataload_zcm.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QObject>
4 #include <QtPlugin>
5 #include <QWidget>
6 
7 #include <string>
8 #include <unordered_set>
9 
11 #include "config_zcm.h"
12 #include "ui_dataload_zcm.h"
13 
14 using namespace PJ;
15 
17 {
18  Q_OBJECT
19  Q_PLUGIN_METADATA(IID "facontidavide.PlotJuggler3.DataLoader")
20  Q_INTERFACES(PJ::DataLoader)
21 
22 public:
23  DataLoadZcm();
24 
25  virtual ~DataLoadZcm();
26 
27  const char* name() const override;
28 
29  const std::vector<const char*>& compatibleFileExtensions() const override;
30 
31  bool readDataFromFile(PJ::FileLoadInfo* fileload_info,
32  PlotDataMapRef& destination) override;
33 
34  bool xmlSaveState(QDomDocument& doc, QDomElement& parent_element) const override;
35 
36  bool xmlLoadState(const QDomElement& parent_element) override;
37 
38 private:
39  QDialog* _dialog;
41  Ui::DialogZcm* _ui;
42 
43  std::unordered_set<std::string> _all_channels;
45 
46  std::unordered_set<std::string> _selected_channels;
47 
48  bool refreshChannels(const std::string& filepath);
49  bool launchDialog(const std::string& filepath);
50 };
DataLoadZcm::_all_channels_filepath
std::string _all_channels_filepath
Definition: dataload_zcm.h:44
PJ::FileLoadInfo
Definition: dataloader_base.h:18
ConfigZCM
Definition: config_zcm.h:10
config_zcm.h
DataLoadZcm::_selected_channels
std::unordered_set< std::string > _selected_channels
Definition: dataload_zcm.h:46
DataLoadZcm::_ui
Ui::DialogZcm * _ui
Definition: dataload_zcm.h:41
DataLoadZcm
Definition: dataload_zcm.h:16
dataloader_base.h
PJ::DataLoader
The DataLoader plugin type is used to load files.
Definition: dataloader_base.h:34
DataLoadZcm::_dialog
QDialog * _dialog
Definition: dataload_zcm.h:39
DataLoadZcm::_all_channels
std::unordered_set< std::string > _all_channels
Definition: dataload_zcm.h:43
PJ
Definition: dataloader_base.h:16
DataLoadZcm::_config_widget
ConfigZCM * _config_widget
Definition: dataload_zcm.h:40
PJ::PlotDataMapRef
Definition: plotdata.h:34


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:44