NorMIT-nav  22.09
An IGT application
cxLayoutVideoSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 #ifndef CXLAYOUTVIDEOSOURCE_H
12 #define CXLAYOUTVIDEOSOURCE_H
13 
14 #include "cxVideoSource.h"
15 #include "org_custusx_webserver_Export.h"
16 #include <QPointer>
17 
18 namespace cx
19 {
20 class ViewCollectionWidget;
21 
25 class org_custusx_webserver_EXPORT LayoutVideoSource : public VideoSource
26 {
27  Q_OBJECT
28 public:
29  explicit LayoutVideoSource(ViewCollectionWidget* widget);
30 
31 
32  virtual QString getUid();
33  virtual QString getName();
34  virtual vtkImageDataPtr getVtkImageData();
35  virtual double getTimestamp();
36  virtual TimeInfo getAdvancedTimeInfo();
37 
38  virtual QString getInfoString() const { return ""; }
39  virtual QString getStatusString() const { return ""; }
40 
41  virtual void start();
42  virtual void stop();
43 
44  virtual bool validData() const;
45  virtual bool isConnected() const;
46  virtual bool isStreaming() const;
47 
48 private:
49  QPointer<ViewCollectionWidget> mWidget;
50  void onRendered();
51  vtkImageDataPtr mGrabbed;
52  QDateTime mTimestamp;
53  bool mStreaming;
54 };
55 
56 } // namespace cx
57 
58 #endif // CXLAYOUTVIDEOSOURCE_H
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::VideoSource
video source interface.
Definition: cxVideoSource.h:43
vtkImageDataPtr
vtkSmartPointer< class vtkImageData > vtkImageDataPtr
Definition: cxVideoConnectionWidget.h:30
cx::LayoutVideoSource::getInfoString
virtual QString getInfoString() const
an information text intended to be visible along with the data stream at all times
Definition: cxLayoutVideoSource.h:38
cxVideoSource.h
cx::TimeInfo
Definition: cxData.h:43
cx::LayoutVideoSource::getStatusString
virtual QString getStatusString() const
status text describing the stream state, display instead of stream when the stream is invalid.
Definition: cxLayoutVideoSource.h:39
cx::LayoutVideoSource
Definition: cxLayoutVideoSource.h:25
cx::ViewCollectionWidget
Definition: cxViewCollectionWidget.h:39