CustusX  2023.01.05-dev+develop.0da12
An IGT application
cxVideoServiceNull.cpp
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 
12 #include "cxVideoServiceNull.h"
13 
14 #include "cxStreamerService.h"
15 #include "cxStreamerServiceNull.h"
16 #include "cxNullDeleter.h"
17 #include "cxBasicVideoSource.h"
18 
19 namespace cx
20 {
21 
23 {
24 }
25 
27 {
28  return VideoSourcePtr(new BasicVideoSource());
29 }
30 
31 std::vector<VideoSourcePtr> VideoServiceNull::getVideoSources()
32 {
33  return std::vector<VideoSourcePtr>();
34 }
35 
36 void VideoServiceNull::setConnectionMethod(QString connectionMethod)
37 {
38 }
39 
41 {
42  return "";
43 }
44 
46 {
47 }
48 
50 {
51 }
52 
54 {
55  return false;
56 }
57 
59 {
60 }
61 
62 std::vector<TimelineEvent> VideoServiceNull::getPlaybackEvents()
63 {
64  return std::vector<TimelineEvent>();
65 }
66 
68 {
70 }
71 
72 QList<StreamerServicePtr> VideoServiceNull::getStreamerServices()
73 {
74  printWarning();
75  return QList<StreamerServicePtr>();
76 }
78 {
79  return true;
80 }
81 
82 void VideoServiceNull::printWarning()
83 {
84 // reportWarning("Trying to use VideoServiceNull. Is VideoService (org.custusx.core.video) disabled?");
85 }
86 
87 } //cx
virtual bool isConnected() const
virtual StreamerServicePtr getStreamerService(QString uid)
virtual void setPlaybackMode(PlaybackTimePtr controller)
virtual QList< StreamerServicePtr > getStreamerServices()
virtual VideoSourcePtr getActiveVideoSource()
virtual QString getConnectionMethod()
virtual std::vector< VideoSourcePtr > getVideoSources()
boost::shared_ptr< class PlaybackTime > PlaybackTimePtr
virtual void openConnection()
virtual std::vector< TimelineEvent > getPlaybackEvents()
virtual void setActiveVideoSource(QString uid)
virtual void closeConnection()
boost::shared_ptr< class VideoSource > VideoSourcePtr
VideoSource controlled by a vtkImageData.
boost::shared_ptr< class StreamerService > StreamerServicePtr
virtual void setConnectionMethod(QString connectionMethod)
Null implementation of the StreamerService.
Namespace for all CustusX production code.