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  bool _enabled = false;
46  bool _xml_loaded = false;
47 
48  VideoDialog* _dialog = nullptr;
49 };
50 
51 #endif // STATE_PUBLISHER_VIDEO_VIEWER_H
PublisherVideo::enabled
bool enabled() const override
True if started.
Definition: video_viewer.h:28
PublisherVideo::setEnabled
virtual void setEnabled(bool enabled) override
Definition: video_viewer.cpp:87
PublisherVideo::_dialog
VideoDialog * _dialog
Definition: video_viewer.h:48
PublisherVideo::_xml_loaded
bool _xml_loaded
Definition: video_viewer.h:46
PublisherVideo::play
void play(double current_time) override
Definition: video_viewer.cpp:49
PublisherVideo::~PublisherVideo
virtual ~PublisherVideo()
Definition: video_viewer.cpp:16
PublisherVideo::xmlSaveState
bool xmlSaveState(QDomDocument &doc, QDomElement &parent_element) const override
Override this method to save the status of the plugin to XML.
Definition: video_viewer.cpp:54
statepublisher_base.h
zmq.hpp
PublisherVideo::PublisherVideo
PublisherVideo()
Definition: video_viewer.cpp:7
PublisherVideo::name
const char * name() const override
Name of the plugin type, NOT the particular instance.
Definition: video_viewer.h:23
PublisherVideo::_enabled
bool _enabled
Definition: video_viewer.h:45
PublisherVideo::updateState
void updateState(double current_time) override
Method called when the timetracker is moved manually to a certain position.
Definition: video_viewer.cpp:21
VideoDialog
Definition: video_dialog.h:33
PublisherVideo::xmlLoadState
bool xmlLoadState(const QDomElement &parent_element) override
Override this method to load the status of the plugin from XML.
Definition: video_viewer.cpp:66
video_dialog.h
PublisherVideo
Definition: video_viewer.h:12
PJ::StatePublisher
Definition: statepublisher_base.h:20


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:26