roviz  0.7
Code Documentation of roviz
stream_widget.h
1 #ifndef STREAM_WIDGET_H
2 #define STREAM_WIDGET_H
3 
4 #include <QWidget>
5 #include <QOpenGLWidget>
6 #include "streams/stream_object.h"
7 #include "core/output_p.h"
8 
15 {
16 public:
18  virtual ~StreamWidget() = default;
19 
24  virtual void newObject(StreamObject obj) = 0;
25 
29  virtual void reset(void) = 0;
30 
35  virtual QWidget *qwidget(void) = 0;
36 
41  OutputPrivate *output(void);
42 
43 private:
44  OutputPrivate *out;
45 };
46 
47 #endif // STREAM_WIDGET_H
Base class of all objects that can be transported with a stream.
Definition: stream_object.h:39
Base class for all widgets representing a StreamObject.
Definition: stream_widget.h:14
virtual void newObject(StreamObject obj)=0
Called when a new image arrived.
Private part of the Ouput class.
Definition: output_p.h:16
virtual void reset(void)=0
Reset the widget to make it show the default image again.
OutputPrivate * output(void)
Get the output associated with this widget.
Definition: stream_widget.cpp:9
virtual QWidget * qwidget(void)=0
Convert this widget to a QWidget.