video_viewer.h
Go to the documentation of this file.
1 #ifndef STATE_PUBLISHER_VIDEO_VIEWER_H
2 #define STATE_PUBLISHER_VIDEO_VIEWER_H
3 
4 #include <QObject>
5 #include <QtPlugin>
6 #include <zmq.hpp>
7 #include <thread>
8 #include <mutex>
10 #include "video_dialog.h"
11 
13 {
14  Q_OBJECT
15  Q_PLUGIN_METADATA(IID "facontidavide.PlotJuggler3.StatePublisher")
16  Q_INTERFACES(PJ::StatePublisher)
17 
18 public:
20 
21  virtual ~PublisherVideo();
22 
23  const char* name() const override
24  {
25  return "Video Viewer";
26  }
27 
28  bool enabled() const override
29  {
30  return _enabled;
31  }
32 
33  void updateState(double current_time) override;
34 
35  void play(double current_time) override;
36 
37  bool xmlSaveState(QDomDocument& doc, QDomElement& parent_element) const override;
38 
39  bool xmlLoadState(const QDomElement& parent_element) override;
40 
41 public slots:
42  virtual void setEnabled(bool enabled) override;
43 
44 private:
45 
46  bool _enabled = false;
47  bool _xml_loaded = false;
48 
49  VideoDialog* _dialog = nullptr;
50 };
51 
52 #endif // STATE_PUBLISHER_VIDEO_VIEWER_H
bool enabled() const override
True if started.
Definition: video_viewer.h:28
bool xmlSaveState(QDomDocument &doc, QDomElement &parent_element) const override
Override this method to save the status of the plugin to XML.
void updateState(double current_time) override
Method called when the timetracker is moved manually to a certain position.
const char * name() const override
Name of the plugin type, NOT the particular instance.
Definition: video_viewer.h:23
virtual ~PublisherVideo()
virtual void setEnabled(bool enabled) override
VideoDialog * _dialog
Definition: video_viewer.h:49
bool xmlLoadState(const QDomElement &parent_element) override
Override this method to load the status of the plugin from XML.
void play(double current_time) override


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:12:53